vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <UI xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2 ..\FrameXML\UI.xsd">
3  
4 <!-- TargetList Unit StatusBar template -->
5 <Frame name="SH_HotList_StatusBarTemplate" hidden="false" virtual="true">
6 <Anchors>
7 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" />
8 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" />
9 </Anchors>
10 <Frames>
11 <Button name="$parent_UnitButton" setAllPoints="true">
12 <NormalText name="$parentLabel" inherits="TextStatusBarText" justifyH="LEFT" nonspacewrap="true">
13 <Anchors>
14 <Anchor point="LEFT" />
15 </Anchors>
16  
17 </NormalText>
18 <Scripts>
19 <OnLoad>
20 this:RegisterForClicks("LeftButtonUp","MiddleButtonUp","RightButtonUp","Button4Up","Button5Up");
21 </OnLoad>
22 </Scripts>
23 </Button>
24 <StatusBar name="$parent_StatusBar" drawLayer="ARTWORK" minValue="0" maxValue="1" defaultValue="0" setAllPoints="true">
25 <BarTexture file="Interface\TargetingFrame\UI-StatusBar" />
26 </StatusBar>
27 </Frames>
28 </Frame>
29  
30  
31  
32 <!-- options frame -->
33 <Frame name="SH_HotListFrame" enableMouse="true" movable="true" parent="UIParent" hidden="true">
34 <Size>
35 <AbsDimension x="130" y="81"/>
36 </Size>
37 <Anchors>
38 <Anchor point="TOPLEFT"/>
39 </Anchors>
40 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
41 <BackgroundInsets>
42 <AbsInset left="5" right="5" top="5" bottom="5"/>
43 </BackgroundInsets>
44 <TileSize>
45 <AbsValue val="16"/>
46 </TileSize>
47 <EdgeSize>
48 <AbsValue val="16"/>
49 </EdgeSize>
50 </Backdrop>
51  
52 <Frames>
53 <Frame name="$parentTitleButton">
54 <Anchors>
55 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" />
56 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" />
57 </Anchors>
58 <Size>
59 <AbsDimension y="20"/>
60 </Size>
61 <Layers>
62 <Layer level="BACKGROUND">
63 <!-- The title bar background -->
64 <Texture name="$parentBackground" >
65 <Anchors>
66 <Anchor point="TOPLEFT">
67 <Offset x="5" y="-5"/>
68 </Anchor>
69 <Anchor point="BOTTOMRIGHT">
70 <Offset x="-5" y="-2"/>
71 </Anchor>
72 </Anchors>
73 <Color r="1.0" g="1.0" b="1.0" a="1.0"/>
74 <Gradient orientation="VERTICAL">
75 <MinColor r="0.2" g="0" b="0" a="1" />
76 <MaxColor r="0.7" g="0" b="0" a="1" />
77 </Gradient>
78 </Texture>
79 <FontString name="$parentText" inherits="GameFontNormal" text="SMH HotList">
80 <Anchors>
81 <Anchor point="LEFT">
82 <Offset x="10" y="-2"/>
83 </Anchor>
84 </Anchors>
85 </FontString>
86 </Layer>
87 <Layer level="BORDER">
88 <!-- a dividing line between the title bar and the options -->
89 <Texture name="$parentLine" file="Interface\TradeSkillFrame\UI-TradeSkill-SkillBorder">
90 <Anchors>
91 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
92 <Offset>
93 <AbsDimension x="4" y="0"/>
94 </Offset>
95 </Anchor>
96 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
97 <Offset>
98 <AbsDimension x="-4" y="-4"/>
99 </Offset>
100 </Anchor>
101 </Anchors>
102 <TexCoords left="0.1" right="1.0" top="0" bottom="0.25"/>
103 </Texture>
104 </Layer>
105 </Layers>
106  
107 </Frame>
108  
109 <Button name="$parentOptionButton">
110 <Anchors>
111 <Anchor point="RIGHT" relativeTo="$parentTitleButton" relativePoint="RIGHT">
112 <Offset x="-5" y="-3"/>
113 </Anchor>
114 </Anchors>
115 <Size>
116 <AbsDimension x="18" y="18"/>
117 </Size>
118 <Scripts>
119 <OnClick>
120 ToggleDropDownMenu(1, nil, SH_HotListFrameDropDown, "SH_HotListFrameOptionButton", 10, 10);
121 </OnClick>
122 <OnShow>
123 UIDropDownMenu_Initialize(getglobal(this:GetParent():GetName().."DropDown"),SH_HotList_PrepareMenu,"MENU")
124 </OnShow>
125 </Scripts>
126 <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up" />
127 <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down" />
128 </Button>
129  
130 <Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true" />
131  
132 <Frame name="$parentCanvas">
133 <Anchors>
134 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
135 <Offset><AbsDimension x="5" y="-25"/></Offset>
136 </Anchor>
137 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
138 <Offset><AbsDimension x="-5" y="-25"/></Offset>
139 </Anchor>
140 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
141 <Offset><AbsDimension x="5" y="5"/></Offset>
142 </Anchor>
143 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
144 <Offset><AbsDimension x="-5" y="5"/></Offset>
145 </Anchor>
146 </Anchors>
147  
148 <Frames>
149 <Frame name="$parent_Unit1" inherits="SH_HotList_StatusBarTemplate" id="1"></Frame>
150 <Frame name="$parent_Unit2" inherits="SH_HotList_StatusBarTemplate" id="2"></Frame>
151 <Frame name="$parent_Unit3" inherits="SH_HotList_StatusBarTemplate" id="3"></Frame>
152 <Frame name="$parent_Unit4" inherits="SH_HotList_StatusBarTemplate" id="4"></Frame>
153 <Frame name="$parent_Unit5" inherits="SH_HotList_StatusBarTemplate" id="5"></Frame>
154 <Frame name="$parent_Unit6" inherits="SH_HotList_StatusBarTemplate" id="6"></Frame>
155 <Frame name="$parent_Unit7" inherits="SH_HotList_StatusBarTemplate" id="7"></Frame>
156 <Frame name="$parent_Unit8" inherits="SH_HotList_StatusBarTemplate" id="8"></Frame>
157 <Frame name="$parent_Unit9" inherits="SH_HotList_StatusBarTemplate" id="9"></Frame>
158 <Frame name="$parent_Unit10" inherits="SH_HotList_StatusBarTemplate" id="10"></Frame>
159 <Frame name="$parent_Unit11" inherits="SH_HotList_StatusBarTemplate" id="11"></Frame>
160 <Frame name="$parent_Unit12" inherits="SH_HotList_StatusBarTemplate" id="12"></Frame>
161 <Frame name="$parent_Unit13" inherits="SH_HotList_StatusBarTemplate" id="13"></Frame>
162 <Frame name="$parent_Unit14" inherits="SH_HotList_StatusBarTemplate" id="14"></Frame>
163 <Frame name="$parent_Unit15" inherits="SH_HotList_StatusBarTemplate" id="15"></Frame>
164  
165 </Frames>
166 <Scripts>
167 <OnShow>
168 this:RegisterEvent("UNIT_HEALTH")
169 this:RegisterEvent("UNIT_MAXHEALTH")
170 this:RegisterEvent("SPELLCAST_FAILED")
171 </OnShow>
172 <OnHide>
173 this:UnregisterEvent("UNIT_HEALTH")
174 this:UnregisterEvent("UNIT_MAXHEALTH")
175 this:UnregisterEvent("SPELLCAST_FAILED")
176 </OnHide>
177 <OnEvent>
178 SmartHeal:HotListOnEvent(event)
179 </OnEvent>
180 <OnUpdate>
181 SmartHeal:HotListVisualOnUpdate()
182 </OnUpdate>
183  
184 </Scripts>
185 </Frame>
186  
187  
188 </Frames>
189 <Scripts>
190 <OnLoad>
191 ResizeableFrame:SetFrameBorderSize(5,5,5,5)
192 ResizeableFrame:SetHeightIncrement(SmartHeal.HotListStatusBarHeight)
193 ResizeableFrame:SetMinHeight(47)
194 ResizeableFrame:SetOffsetHeight(5)
195 </OnLoad>
196 <OnHide>
197 this:StopMovingOrSizing();
198 </OnHide>
199 <OnMouseDown>
200 ResizeableFrame:OnMouseDown()
201 </OnMouseDown>
202 <OnMouseUp>
203 ResizeableFrame:OnMouseUp()
204 </OnMouseUp>
205 <OnDragStop>
206 ResizeableFrame:OnDragStop()
207 </OnDragStop>
208 <OnUpdate>
209 SmartHeal:AutoTargetUpdateBlackList(arg1)
210 ResizeableFrame:OnUpdate()
211 SmartHeal:setConfig("listlength",this:GetHeight(),"hotlist")
212 SmartHeal:setConfig("listwidth",this:GetWidth(),"hotlist")
213 local r,g,b=RGB_hextodec(SmartHeal:getConfig("BGColor","hotlist"))
214 local a=SmartHeal:getConfig("BGColorOpacity","hotlist")
215 this:SetBackdropColor(r,g,b,a)
216 </OnUpdate>
217  
218 </Scripts>
219 </Frame>
220  
221 <Frame name="SH_HotListHiddenFrame" parent="UIParent" hidden="false">
222 <Scripts>
223 <OnUpdate>
224 --if(SmartHeal.Loaded) then
225 if(GetNumPartyMembers()>0 and SmartHeal.Loaded) then
226 if (SmartHeal:getConfig("enable","hotlist") and SmartHeal:getConfig("enable")) then
227 if(not SH_HotListFrame:IsShown()) then
228 SH_HotListFrame:Show()
229 SH_HotListFrame:SetHeight(SmartHeal:getConfig("listlength","hotlist"))
230 SH_HotListFrame:SetWidth(SmartHeal:getConfig("listwidth","hotlist"))
231 end
232 else
233 if(SH_HotListFrame:IsShown()) then
234 SH_HotListFrame:Hide()
235 SmartHeal:ReinitializeHotList()
236 end
237 end
238 elseif(SH_HotListFrame:IsShown()) then
239 SH_HotListFrame:Hide()
240 SmartHeal:ReinitializeHotList()
241 end
242 </OnUpdate>
243 </Scripts>
244 </Frame>
245  
246 </UI>