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 <CheckButton name="DAB_ActionButtonTemplate" hidden="true" movable="true" parent="UIParent" virtual="true">
5 <Size><AbsDimension x="36" y="36"/></Size>
6 <Anchors>
7 <Anchor point="CENTER"/>
8 </Anchors>
9 <Frames>
10 <Model name="$parent_Cooldown" inherits="CooldownFrameTemplate">
11 <Layers>
12 <Layer level="OVERLAY">
13 <FontString name="$parentCount" inherits="NumberFontNormal" justifyH="CENTER">
14 <Size><AbsDimension x="36" y="36"/></Size>
15 <Anchors>
16 <Anchor point="CENTER"/>
17 </Anchors>
18 </FontString>
19 </Layer>
20 </Layers>
21 </Model>
22 </Frames>
23 <Layers>
24 <Layer level="BACKGROUND">
25 <Texture name="$parent_Background">
26 <Size><AbsDimension x="36" y="36"/></Size>
27 <Anchors>
28 <Anchor point="CENTER"/>
29 </Anchors>
30 </Texture>
31 </Layer>
32 <Layer level="BORDER">
33 <Texture name="$parent_Icon">
34 <Size><AbsDimension x="36" y="36"/></Size>
35 <Anchors>
36 <Anchor point="CENTER"/>
37 </Anchors>
38 </Texture>
39 </Layer>
40 <Layer level="ARTWORK">
41 <Texture name="$parent_Flash" file="Interface\Buttons\UI-QuickslotRed" hidden="true">
42 <Size><AbsDimension x="36" y="36"/></Size>
43 <Anchors>
44 <Anchor point="CENTER"/>
45 </Anchors>
46 </Texture>
47 <FontString name="$parent_HotKey" inherits="NumberFontNormalSmallGray" justifyH="RIGHT">
48 <Size><AbsDimension x="32" y="10"/></Size>
49 <Anchors>
50 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
51 <Offset><AbsDimension x="2" y="-2"/></Offset>
52 </Anchor>
53 </Anchors>
54 </FontString>
55 <FontString name="$parent_Count" inherits="NumberFontNormal" justifyH="RIGHT">
56 <Size><AbsDimension x="32" y="10"/></Size>
57 <Anchors>
58 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
59 <Offset><AbsDimension x="2" y="2"/></Offset>
60 </Anchor>
61 </Anchors>
62 </FontString>
63 <FontString name="$parent_Timer" inherits="NumberFontNormal" justifyH="CENTER">
64 <Size><AbsDimension x="36" y="36"/></Size>
65 <Anchors>
66 <Anchor point="CENTER"/>
67 </Anchors>
68 </FontString>
69 <Texture name="$parent_EquippedBorder" file="Interface\Buttons\UI-ActionButton-Border" hidden="true" alphaMode="ADD">
70 <Size><AbsDimension x="36" y="36"/></Size>
71 <Anchors>
72 <Anchor point="CENTER"/>
73 </Anchors>
74 </Texture>
75 </Layer>
76 <Layer level="OVERLAY">
77 <FontString name="$parent_Name" inherits="GameFontHighlightSmallOutline">
78 <Size><AbsDimension x="36" y="10"/></Size>
79 <Anchors>
80 <Anchor point="BOTTOM">
81 <Offset><AbsDimension x="0" y="2"/></Offset>
82 </Anchor>
83 </Anchors>
84 </FontString>
85 </Layer>
86 </Layers>
87 <NormalTexture name="$parent_Border" file="Interface\Buttons\UI-Quickslot2" hidden="true">
88 <Size><AbsDimension x="61" y="61"/></Size>
89 <Anchors>
90 <Anchor point="TOPLEFT">
91 <Offset><AbsDimension x="-12" y="12"/></Offset>
92 </Anchor>
93 </Anchors>
94 </NormalTexture>
95 <HighlightTexture name="$parent_Highlight" alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
96 <CheckedTexture name="$parent_Checked" alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
97 <Scripts>
98 <OnLoad>
99 DAB_ActionButton_OnLoad();
100 </OnLoad>
101 <OnEvent>
102 DAB_ActionButton_OnEvent(event);
103 </OnEvent>
104 <OnUpdate>
105 DAB_ActionButton_OnUpdate(arg1);
106 </OnUpdate>
107 <OnEnter>
108 DAB_ActionButton_OnEnter();
109 </OnEnter>
110 <OnLeave>
111 DAB_ActionButton_OnLeave();
112 </OnLeave>
113 <OnClick>
114 DAB_ActionButton_OnClick(this:GetID(), arg1);
115 </OnClick>
116 <OnHide>
117 if (DAB_Settings[DAB_INDEX].Buttons[this:GetID()].Bar == "F") then
118 DAB_Run_Script("OnHide", "Floaters", this:GetID());
119 end
120 this.cooldowncount = nil;
121 this.ccountlocked = nil;
122 </OnHide>
123 <OnShow>
124 DAB_ActionButton_Update();
125 DAB_ActionButton_UpdateState();
126 DAB_ActionButton_UpdateCooldown(this:GetID());
127 if (DAB_Settings[DAB_INDEX].Buttons[this:GetID()].Bar == "F") then
128 DAB_Run_Script("OnShow", "Floaters", this:GetID());
129 end
130 </OnShow>
131 <OnDragStart>
132 DAB_ActionButton_OnDragStart();
133 </OnDragStart>
134 <OnDragStop>
135 DAB_ActionButton_OnDragStop();
136 </OnDragStop>
137 <OnReceiveDrag>
138 DAB_ActionButton_OnReceiveDrag();
139 </OnReceiveDrag>
140 <OnMouseWheel>
141 DAB_ActionButton_OnMouseWheel(arg1);
142 </OnMouseWheel>
143 </Scripts>
144 </CheckButton>
145  
146 <Button name="DAB_ActionBarTemplate" movable="true" hidden="true" virtual="true" frameStrata="LOW">
147 <Size><AbsDimension x="100" y="100"/></Size>
148 <Frames>
149 <Button name="$parent_Label" inherits="DiscordLib_PlainBackgroundTemplate">
150 <Size><AbsDimension x="10" y="10"/></Size>
151 <Anchors>
152 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
153 </Anchors>
154 <Layers>
155 <Layer level="OVERLAY">
156 <FontString name="$parent_Text" inherits="GameFontNormal">
157 <Anchors>
158 <Anchor point="CENTER"/>
159 </Anchors>
160 </FontString>
161 </Layer>
162 </Layers>
163 <Scripts>
164 <OnLoad>
165 this:RegisterForDrag("LeftButton");
166 </OnLoad>
167 <OnDragStart>
168 DAB_Bar_OnDragStart(this:GetParent():GetID(), 1);
169 </OnDragStart>
170 <OnDragStop>
171 DAB_Bar_OnDragStop(this:GetParent():GetID());
172 </OnDragStop>
173 </Scripts>
174 </Button>
175 </Frames>
176 <Scripts>
177 <OnLoad>
178 this:RegisterForDrag("LeftButton");
179 </OnLoad>
180 <OnEnter>
181 DAB_Bar_OnEnter();
182 DAB_Run_Script("OnEnter", "Bar", this:GetID());
183 </OnEnter>
184 <OnEvent>
185 DAB_Run_Script("OnEvent", "Bar", this:GetID(), event);
186 </OnEvent>
187 <OnLeave>
188 if (this.moving) then
189 DAB_Bar_OnDragStart();
190 end
191 DAB_Bar_OnLeave();
192 DAB_Run_Script("OnLeave", "Bar", this:GetID());
193 </OnLeave>
194 <OnUpdate>
195 DAB_Bar_OnUpdate(arg1);
196 </OnUpdate>
197 <OnShow>
198 DAB_Run_Script("OnShow", "Bar", this:GetID());
199 </OnShow>
200 <OnHide>
201 if (this.moving) then
202 DAB_Bar_OnDragStart();
203 end
204 DAB_Bar_OnHide();
205 DAB_Run_Script("OnHide", "Bar", this:GetID());
206 </OnHide>
207 <OnDragStart>
208 DAB_Bar_OnDragStart();
209 </OnDragStart>
210 <OnDragStop>
211 DAB_Bar_OnDragStop();
212 </OnDragStop>
213 <OnMouseWheel>
214 DAB_Bar_OnMouseWheel(arg1);
215 DAB_Run_Script("OnMouseWheel", "Bar", this:GetID(), arg1);
216 </OnMouseWheel>
217 <OnClick>
218 if (this.moving) then
219 DAB_Bar_OnDragStop();
220 end
221 DAB_Run_Script("OnClickBefore", "Bar", this:GetID(), arg1);
222 DAB_Run_Script("OnClickAfter", "Bar", this:GetID(), arg1);
223 </OnClick>
224 </Scripts>
225 </Button>
226  
227 <Button name="DAB_ControlBoxTemplate" movable="true" hidden="true" virtual="true" frameStrata="LOW">
228 <Size><AbsDimension x="10" y="10"/></Size>
229 <Layers>
230 <Layer level="BACKGROUND">
231 <Texture name="$parent_Background">
232 <Size><AbsDimension x="10" y="10"/></Size>
233 <Anchors>
234 <Anchor point="CENTER"/>
235 </Anchors>
236 <Color r="1" g="1" b="1"/>
237 </Texture>
238 <Texture name="$parent_1">
239 <Size><AbsDimension x="10" y="1"/></Size>
240 <Anchors>
241 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
242 </Anchors>
243 <Color r="1" g="1" b="1"/>
244 </Texture>
245 <Texture name="$parent_2">
246 <Size><AbsDimension x="10" y="1"/></Size>
247 <Anchors>
248 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/>
249 </Anchors>
250 <Color r="1" g="1" b="1"/>
251 </Texture>
252 <Texture name="$parent_3">
253 <Size><AbsDimension x="1" y="12"/></Size>
254 <Anchors>
255 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT"/>
256 </Anchors>
257 <Color r="1" g="1" b="1"/>
258 </Texture>
259 <Texture name="$parent_4">
260 <Size><AbsDimension x="1" y="12"/></Size>
261 <Anchors>
262 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"/>
263 </Anchors>
264 <Color r="1" g="1" b="1"/>
265 </Texture>
266 </Layer>
267 <Layer level="ARTWORK">
268 <FontString name="$parent_Text" inherits="GameFontNormal" justifyH="CENTER" justifyV="CENTER">
269 <Anchors>
270 <Anchor point="CENTER"/>
271 </Anchors>
272 </FontString>
273 </Layer>
274 </Layers>
275 <Scripts>
276 <OnLoad>
277 this:RegisterForDrag("LeftButton");
278 this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
279 this:EnableMouseWheel(1);
280 </OnLoad>
281 <OnEnter>
282 DAB_ControlBox_OnEnter();
283 DAB_Run_Script("OnEnter", "ControlBox", this:GetID());
284 </OnEnter>
285 <OnLeave>
286 if (this.moving) then
287 DAB_ControlBox_OnDragStop();
288 end
289 DAB_ControlBox_OnLeave();
290 DAB_Run_Script("OnLeave", "ControlBox", this:GetID());
291 </OnLeave>
292 <OnClick>
293 DAB_Run_Script("OnClickBefore", "ControlBox", this:GetID(), arg1);
294 DAB_ControlBox_OnClick(arg1);
295 DAB_Run_Script("OnClickAfter", "ControlBox", this:GetID(), arg1);
296 </OnClick>
297 <OnEvent>
298 DAB_Run_Script("OnEvent", "ControlBox", this:GetID(), event);
299 </OnEvent>
300 <OnUpdate>
301 DAB_ControlBox_OnUpdate(arg1);
302 </OnUpdate>
303 <OnMouseWheel>
304 DAB_Run_Script("OnMouseWheel", "ControlBox", this:GetID(), arg1);
305 </OnMouseWheel>
306 <OnDragStart>
307 DAB_ControlBox_OnDragStart();
308 </OnDragStart>
309 <OnDragStop>
310 DAB_ControlBox_OnDragStop();
311 </OnDragStop>
312 <OnHide>
313 if (this.moving) then
314 DAB_ControlBox_OnDragStop();
315 end
316 DAB_Run_Script("OnHide", "ControlBox", this:GetID());
317 </OnHide>
318 <OnShow>
319 DAB_Run_Script("OnShow", "ControlBox", this:GetID());
320 </OnShow>
321 </Scripts>
322 </Button>
323  
324 <Button name="DAB_OtherBarTemplate" movable="true" hidden="true" virtual="true" frameStrata="LOW">
325 <Size><AbsDimension x="100" y="100"/></Size>
326 <Anchors>
327 <Anchor point="CENTER"/>
328 </Anchors>
329 <Scripts>
330 <OnLoad>
331 this:RegisterForDrag("LeftButton");
332 </OnLoad>
333 <OnEvent>
334 DAB_OtherBar_OnEvent(event);
335 </OnEvent>
336 <OnUpdate>
337 DAB_OtherBar_OnUpdate(arg1);
338 </OnUpdate>
339 <OnHide>
340 if (this.moving) then
341 DAB_OtherBar_OnDragStart();
342 end
343 </OnHide>
344 <OnLeave>
345 if (this.moving) then
346 DAB_OtherBar_OnDragStart();
347 end
348 </OnLeave>
349 <OnDragStart>
350 DAB_OtherBar_OnDragStart();
351 </OnDragStart>
352 <OnDragStop>
353 DAB_OtherBar_OnDragStop();
354 </OnDragStop>
355 </Scripts>
356 </Button>
357  
358 <Frame name="DAB_FloaterBoxTemplate" movable="true" hidden="true" parent="UIParent" virtual="true">
359 <Size><AbsDimension x="36" y="36"/></Size>
360 <Anchors>
361 <Anchor point="CENTER"/>
362 </Anchors>
363 </Frame>
364  
365 </Ui>