vanilla-wow-addons – Blame information for rev 1
?pathlinks?
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 | |||
3 | <Script file="localization.lua"/> |
||
4 | <Script file="GB_Get.lua"/> |
||
5 | <Script file="GB_Hooks.lua"/> |
||
6 | <Script file="GB_UnitFrames.lua"/> |
||
7 | <Script file="GB_Initialization.lua"/> |
||
8 | <Script file="GB_Main.lua"/> |
||
9 | <Script file="GB_Options.lua"/> |
||
10 | <Script file="GB_Bars.lua"/> |
||
11 | <Script file="GB_Buttons.lua"/> |
||
12 | <Script file="GB_MiniSpellbook.lua"/> |
||
13 | |||
14 | <Frame name="GB_BGTemplate" hidden="false" virtual="true"> |
||
15 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
16 | <EdgeSize> |
||
17 | <AbsValue val="16"/> |
||
18 | </EdgeSize> |
||
19 | <TileSize> |
||
20 | <AbsValue val="16"/> |
||
21 | </TileSize> |
||
22 | <BackgroundInsets> |
||
23 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
24 | </BackgroundInsets> |
||
25 | </Backdrop> |
||
26 | </Frame> |
||
27 | |||
28 | <Button name="GB_ActionButtonTemplate" hidden="true" virtual="true"> |
||
29 | <Size><AbsDimension x="36" y="36"/></Size> |
||
30 | <Anchors> |
||
31 | <Anchor point="TOPLEFT"/> |
||
32 | </Anchors> |
||
33 | <Layers> |
||
34 | <Layer level="BACKGROUND"> |
||
35 | <Texture name="$parent_Icon" file="Interface\AddOns\GroupButtons\EmptyButton"> |
||
36 | <Anchors> |
||
37 | <Anchor point="TOPLEFT"/> |
||
38 | <Anchor point="BOTTOMRIGHT"/> |
||
39 | </Anchors> |
||
40 | </Texture> |
||
41 | </Layer> |
||
42 | </Layers> |
||
43 | <Frames> |
||
44 | <Model name="$parent_Cooldown" inherits="CooldownFrameTemplate"/> |
||
45 | <Frame name="$parentTextFrame"> |
||
46 | <Size><AbsDimension x="36" y="36"/></Size> |
||
47 | <Anchors> |
||
48 | <Anchor point="TOPLEFT"/> |
||
49 | <Anchor point="BOTTOMRIGHT"/> |
||
50 | </Anchors> |
||
51 | <Layers> |
||
52 | <Layer level="OVERLAY"> |
||
53 | <FontString name="$parent_CooldownCount" inherits="GB_CooldownCountFont" justifyH="CENTER"> |
||
54 | <Anchors> |
||
55 | <Anchor point="LEFT"> |
||
56 | <Offset><AbsDimension x="2" y="0"/></Offset> |
||
57 | </Anchor> |
||
58 | <Anchor point="RIGHT"> |
||
59 | <Offset><AbsDimension x="-2" y="0"/></Offset> |
||
60 | </Anchor> |
||
61 | </Anchors> |
||
62 | </FontString> |
||
63 | </Layer> |
||
64 | <Layer level="ARTWORK"> |
||
65 | <FontString name="$parent_HotKey" inherits="GB_KeybindingsFont" justifyH="RIGHT"> |
||
66 | <Anchors> |
||
67 | <Anchor point="TOPLEFT"> |
||
68 | <Offset><AbsDimension x="2" y="-2"/></Offset> |
||
69 | </Anchor> |
||
70 | <Anchor point="TOPRIGHT"> |
||
71 | <Offset><AbsDimension x="-2" y="-2"/></Offset> |
||
72 | </Anchor> |
||
73 | </Anchors> |
||
74 | </FontString> |
||
75 | <FontString name="$parent_DynamicHotKey" inherits="GB_DynamicKeybindingsFont" justifyH="RIGHT"> |
||
76 | <Anchors> |
||
77 | <Anchor point="TOPLEFT"> |
||
78 | <Offset><AbsDimension x="2" y="-12"/></Offset> |
||
79 | </Anchor> |
||
80 | <Anchor point="TOPRIGHT"> |
||
81 | <Offset><AbsDimension x="-2" y="-12"/></Offset> |
||
82 | </Anchor> |
||
83 | </Anchors> |
||
84 | </FontString> |
||
85 | <FontString name="$parent_Count" inherits="GB_ItemCountFont" justifyH="RIGHT"> |
||
86 | <Anchors> |
||
87 | <Anchor point="BOTTOMRIGHT"> |
||
88 | <Offset><AbsDimension x="-2" y="2"/></Offset> |
||
89 | </Anchor> |
||
90 | </Anchors> |
||
91 | </FontString> |
||
92 | </Layer> |
||
93 | <Layer level="OVERLAY"> |
||
94 | <FontString name="$parent_Name" inherits="GB_MacroNameFont" outline="THICK"> |
||
95 | <Size><AbsDimension x="36" y="10"/></Size> |
||
96 | <Anchors> |
||
97 | <Anchor point="BOTTOMLEFT"> |
||
98 | <Offset><AbsDimension x="0" y="3"/></Offset> |
||
99 | </Anchor> |
||
100 | <Anchor point="BOTTOMRIGHT"> |
||
101 | <Offset><AbsDimension x="0" y="3"/></Offset> |
||
102 | </Anchor> |
||
103 | </Anchors> |
||
104 | </FontString> |
||
105 | </Layer> |
||
106 | </Layers> |
||
107 | </Frame> |
||
108 | </Frames> |
||
109 | <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/> |
||
110 | <Scripts> |
||
111 | <OnLoad> |
||
112 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
113 | this:RegisterForDrag("LeftButton"); |
||
114 | this.inContext = true; |
||
115 | </OnLoad> |
||
116 | <OnEvent> |
||
117 | GB_ActionButton_OnEvent(event); |
||
118 | </OnEvent> |
||
119 | <OnMouseDown> |
||
120 | if (not GB_Settings[GB_INDEX].barsLocked) then |
||
121 | GB_StartMoving(this:GetParent()); |
||
122 | elseif (IsShiftKeyDown() and IsControlKeyDown()) then |
||
123 | GB_StartMoving(this:GetParent()); |
||
124 | end |
||
125 | </OnMouseDown> |
||
126 | <OnMouseUp> |
||
127 | if (not GB_Settings[GB_INDEX].barsLocked) then |
||
128 | GB_StopMoving(this:GetParent()); |
||
129 | elseif (IsShiftKeyDown() and IsControlKeyDown()) then |
||
130 | GB_StopMoving(this:GetParent()); |
||
131 | end |
||
132 | </OnMouseUp> |
||
133 | <OnHide> |
||
134 | if (GB_INITIALIZED and (not GB_Settings[GB_INDEX].barsLocked)) then |
||
135 | GB_StopMoving(this:GetParent()); |
||
136 | end |
||
137 | </OnHide> |
||
138 | <OnClick> |
||
139 | if (GB_MOUSE_ACTION.id and (not GB_Settings[GB_INDEX].buttonsLocked)) then |
||
140 | GB_Update_Spellbox(this:GetID(), this:GetParent().index); |
||
141 | elseif (GB_Settings[GB_INDEX].barsLocked) then |
||
142 | GB_ActionButton_OnClick(this:GetParent():GetName(), this:GetID()); |
||
143 | end |
||
144 | </OnClick> |
||
145 | <OnDragStart> |
||
146 | if (not GB_Settings[GB_INDEX].buttonsLocked) then |
||
147 | GB_Update_Spellbox(this:GetID(), this:GetParent().index); |
||
148 | else |
||
149 | GB_ActionButton_OnClick(this:GetParent():GetName(), this:GetID()); |
||
150 | end |
||
151 | </OnDragStart> |
||
152 | <OnEnter> |
||
153 | this:GetParent().timer = nil; |
||
154 | GB_Show_Tooltip(this:GetParent().index, this:GetID()); |
||
155 | </OnEnter> |
||
156 | <OnLeave> |
||
157 | if (GB_Settings[GB_INDEX][this:GetParent().index].mouseover) then |
||
158 | this:GetParent().timer = GB_MOUSEOUT_TIME; |
||
159 | end |
||
160 | GameTooltip:Hide(); |
||
161 | </OnLeave> |
||
162 | <OnUpdate> |
||
163 | GB_ActionButton_OnUpdate(arg1); |
||
164 | </OnUpdate> |
||
165 | <OnShow> |
||
166 | GB_ActionButton_UpdateCooldown(); |
||
167 | </OnShow> |
||
168 | </Scripts> |
||
169 | </Button> |
||
170 | |||
171 | <Frame name="GB_ActionBarTemplate" hidden="true" virtual="true" frameStrata="low" movable="true"> |
||
172 | <Size><AbsDimension x="10" y="10"/></Size> |
||
173 | <Frames> |
||
174 | <Frame name="$parent_Label" hidden="true"> |
||
175 | <Size><AbsDimension x="50" y="20"/></Size> |
||
176 | <Anchors> |
||
177 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/> |
||
178 | </Anchors> |
||
179 | <Layers> |
||
180 | <Layer level="BACKGROUND"> |
||
181 | <Texture name="$parent_Border"> |
||
182 | <Size><AbsDimension x="52" y="22"/></Size> |
||
183 | <Anchors> |
||
184 | <Anchor point="TOPLEFT"> |
||
185 | <Offset><AbsDimension x="-1" y="1"/></Offset> |
||
186 | </Anchor> |
||
187 | <Anchor point="BOTTOMRIGHT"> |
||
188 | <Offset><AbsDimension x="1" y="-1"/></Offset> |
||
189 | </Anchor> |
||
190 | </Anchors> |
||
191 | <Color r=".9" g=".9" b="0"/> |
||
192 | </Texture> |
||
193 | <Texture name="$parent_Background"> |
||
194 | <Size><AbsDimension x="50" y="20"/></Size> |
||
195 | <Anchors> |
||
196 | <Anchor point="TOPLEFT"/> |
||
197 | <Anchor point="BOTTOMRIGHT"/> |
||
198 | </Anchors> |
||
199 | <Color r=".6" g="0" b="0"/> |
||
200 | </Texture> |
||
201 | </Layer> |
||
202 | <Layer level="ARTWORK"> |
||
203 | <FontString name="$parent_Text" inherits="GameFontNormal" justifyH="CENTER"> |
||
204 | <Anchors> |
||
205 | <Anchor point="CENTER"/> |
||
206 | </Anchors> |
||
207 | <Color r="1" g="1" b="0"/> |
||
208 | </FontString> |
||
209 | </Layer> |
||
210 | </Layers> |
||
211 | </Frame> |
||
212 | <Button name="$parent_Button_1" inherits="GB_ActionButtonTemplate" id="1"/> |
||
213 | <Button name="$parent_Button_2" inherits="GB_ActionButtonTemplate" id="2"/> |
||
214 | <Button name="$parent_Button_3" inherits="GB_ActionButtonTemplate" id="3"/> |
||
215 | <Button name="$parent_Button_4" inherits="GB_ActionButtonTemplate" id="4"/> |
||
216 | <Button name="$parent_Button_5" inherits="GB_ActionButtonTemplate" id="5"/> |
||
217 | <Button name="$parent_Button_6" inherits="GB_ActionButtonTemplate" id="6"/> |
||
218 | <Button name="$parent_Button_7" inherits="GB_ActionButtonTemplate" id="7"/> |
||
219 | <Button name="$parent_Button_8" inherits="GB_ActionButtonTemplate" id="8"/> |
||
220 | <Button name="$parent_Button_9" inherits="GB_ActionButtonTemplate" id="9"/> |
||
221 | <Button name="$parent_Button_10" inherits="GB_ActionButtonTemplate" id="10"/> |
||
222 | <Button name="$parent_Button_11" inherits="GB_ActionButtonTemplate" id="11"/> |
||
223 | <Button name="$parent_Button_12" inherits="GB_ActionButtonTemplate" id="12"/> |
||
224 | <Button name="$parent_Button_13" inherits="GB_ActionButtonTemplate" id="13"/> |
||
225 | <Button name="$parent_Button_14" inherits="GB_ActionButtonTemplate" id="14"/> |
||
226 | <Button name="$parent_Button_15" inherits="GB_ActionButtonTemplate" id="15"/> |
||
227 | <Button name="$parent_Button_16" inherits="GB_ActionButtonTemplate" id="16"/> |
||
228 | <Button name="$parent_Button_17" inherits="GB_ActionButtonTemplate" id="17"/> |
||
229 | <Button name="$parent_Button_18" inherits="GB_ActionButtonTemplate" id="18"/> |
||
230 | <Button name="$parent_Button_19" inherits="GB_ActionButtonTemplate" id="19"/> |
||
231 | <Button name="$parent_Button_20" inherits="GB_ActionButtonTemplate" id="20"/> |
||
232 | </Frames> |
||
233 | <Scripts> |
||
234 | <OnUpdate> |
||
235 | GB_Bar_OnUpdate(); |
||
236 | </OnUpdate> |
||
237 | <OnEvent> |
||
238 | GB_Bar_OnEvent(event); |
||
239 | </OnEvent> |
||
240 | <OnHide> |
||
241 | if (GB_INITIALIZED and (not GB_Settings[GB_INDEX].barsLocked)) then |
||
242 | GB_StopMoving(); |
||
243 | end |
||
244 | </OnHide> |
||
245 | <OnShow> |
||
246 | if (GB_INITIALIZED) then |
||
247 | for i=1, 20 do |
||
248 | GB_ActionButton_CheckAllContexts(getglobal(this:GetName().."_Button_"..i)); |
||
249 | end |
||
250 | GB_Set_Layout(this.index, this:GetName()); |
||
251 | end |
||
252 | </OnShow> |
||
253 | </Scripts> |
||
254 | </Frame> |
||
255 | |||
256 | <Button name="GB_ClickboxTemplate" hidden="true" virtual="true"> |
||
257 | <Size><AbsDimension x="100" y="100"/></Size> |
||
258 | <Layers> |
||
259 | <Layer level="OVERLAY"> |
||
260 | <Texture name="$parent_Texture" hidden="true"> |
||
261 | <Color r=".7" g=".7" b=".7" a=".5"/> |
||
262 | <Anchors> |
||
263 | <Anchor point="TOPLEFT"/> |
||
264 | <Anchor point="BOTTOMRIGHT"/> |
||
265 | </Anchors> |
||
266 | </Texture> |
||
267 | </Layer> |
||
268 | </Layers> |
||
269 | <Scripts> |
||
270 | <OnEnter> |
||
271 | GB_UnitFrame_OnEnter(); |
||
272 | </OnEnter> |
||
273 | <OnLeave> |
||
274 | GB_UnitFrame_OnLeave(); |
||
275 | </OnLeave> |
||
276 | <OnEvent> |
||
277 | GB_UnitFrame_OnEvent(event); |
||
278 | </OnEvent> |
||
279 | <OnMouseDown> |
||
280 | GB_UnitFrame_OnMouseDown(arg1); |
||
281 | </OnMouseDown> |
||
282 | <OnMouseUp> |
||
283 | GB_UnitFrame_OnMouseUp(arg1); |
||
284 | </OnMouseUp> |
||
285 | <OnClick> |
||
286 | GB_UnitFrame_OnClick(arg1); |
||
287 | </OnClick> |
||
288 | <OnReceiveDrag> |
||
289 | GB_UnitFrame_OnReceiveDrag(); |
||
290 | </OnReceiveDrag> |
||
291 | <OnShow> |
||
292 | this:Raise() |
||
293 | </OnShow> |
||
294 | </Scripts> |
||
295 | </Button> |
||
296 | |||
297 | <Frame name="GB_PetRaidBarTemplate" hidden="true" virtual="true" frameStrata="low" movable="true"> |
||
298 | <Size><AbsDimension x="10" y="10"/></Size> |
||
299 | <Anchors> |
||
300 | <Anchor point="CENTER"/> |
||
301 | </Anchors> |
||
302 | <Frames> |
||
303 | <Frame name="$parent_Label" hidden="true"> |
||
304 | <Size><AbsDimension x="50" y="20"/></Size> |
||
305 | <Anchors> |
||
306 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/> |
||
307 | </Anchors> |
||
308 | <Layers> |
||
309 | <Layer level="BACKGROUND"> |
||
310 | <Texture name="$parent_Border"> |
||
311 | <Size><AbsDimension x="52" y="22"/></Size> |
||
312 | <Anchors> |
||
313 | <Anchor point="TOPLEFT"> |
||
314 | <Offset><AbsDimension x="-1" y="1"/></Offset> |
||
315 | </Anchor> |
||
316 | <Anchor point="BOTTOMRIGHT"> |
||
317 | <Offset><AbsDimension x="1" y="-1"/></Offset> |
||
318 | </Anchor> |
||
319 | </Anchors> |
||
320 | <Color r=".9" g=".9" b="0"/> |
||
321 | </Texture> |
||
322 | <Texture name="$parent_Background"> |
||
323 | <Size><AbsDimension x="50" y="20"/></Size> |
||
324 | <Anchors> |
||
325 | <Anchor point="TOPLEFT"/> |
||
326 | <Anchor point="BOTTOMRIGHT"/> |
||
327 | </Anchors> |
||
328 | <Color r=".6" g="0" b="0"/> |
||
329 | </Texture> |
||
330 | </Layer> |
||
331 | <Layer level="ARTWORK"> |
||
332 | <FontString name="$parent_Text" inherits="GameFontNormal" justifyH="CENTER"> |
||
333 | <Anchors> |
||
334 | <Anchor point="CENTER"/> |
||
335 | </Anchors> |
||
336 | <Color r="1" g="1" b="0"/> |
||
337 | </FontString> |
||
338 | </Layer> |
||
339 | </Layers> |
||
340 | </Frame> |
||
341 | <Button name="$parent_Button_1" inherits="GB_ActionButtonTemplate" id="1"/> |
||
342 | <Button name="$parent_Button_2" inherits="GB_ActionButtonTemplate" id="2"/> |
||
343 | <Button name="$parent_Button_3" inherits="GB_ActionButtonTemplate" id="3"/> |
||
344 | <Button name="$parent_Button_4" inherits="GB_ActionButtonTemplate" id="4"/> |
||
345 | <Button name="$parent_Button_5" inherits="GB_ActionButtonTemplate" id="5"/> |
||
346 | <Button name="$parent_Button_6" inherits="GB_ActionButtonTemplate" id="6"/> |
||
347 | </Frames> |
||
348 | <Scripts> |
||
349 | <OnUpdate> |
||
350 | GB_Bar_OnUpdate(); |
||
351 | </OnUpdate> |
||
352 | <OnEvent> |
||
353 | GB_Bar_OnEvent(event); |
||
354 | </OnEvent> |
||
355 | <OnHide> |
||
356 | if (GB_INITIALIZED and (not GB_Settings[GB_INDEX].barsLocked)) then |
||
357 | GB_StopMoving(); |
||
358 | end |
||
359 | </OnHide> |
||
360 | <OnShow> |
||
361 | if (GB_INITIALIZED) then |
||
362 | for i=1, 6 do |
||
363 | GB_ActionButton_CheckAllContexts(getglobal(this:GetName().."_Button_"..i)); |
||
364 | end |
||
365 | GB_Set_Layout(this.index, this:GetName()); |
||
366 | end |
||
367 | </OnShow> |
||
368 | </Scripts> |
||
369 | </Frame> |
||
370 | |||
371 | </Ui> |