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  
3 <Button name="GB_SpellbookTemplate" virtual="true">
4 <Size>
5 <AbsDimension x="35" y="35"/>
6 </Size>
7 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
8 <Layers>
9 <Layer level="ARTWORK">
10 <Texture name="$parent_Texture" >
11 <Size>
12 <AbsDimension x="30" y="30" />
13 </Size>
14 <Anchors>
15 <Anchor point="CENTER"/>
16 </Anchors>
17 </Texture>
18 <FontString name="$parent_Rank" inherits="GameFontNormalSmall">
19 <Color r="1.0" g="1.0" b="1.0"/>
20 <Anchors>
21 <Anchor point="BOTTOMRIGHT">
22 <Offset><AbsDimension x="-6" y="3"/></Offset>
23 </Anchor></Anchors>
24 </FontString>
25 </Layer>
26 </Layers>
27 <Scripts>
28 <OnLoad>
29 this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
30 this:RegisterForDrag("LeftButton");
31 this:SetBackdropColor(0.0, 0.0, 0.0);
32 </OnLoad>
33 <OnEnter>
34 GameTooltip_SetDefaultAnchor(GameTooltip, this);
35 GameTooltip:SetSpell(this:GetID(), SpellBookFrame.bookType);
36 </OnEnter>
37 <OnClick>
38 if (arg1 == "LeftButton") then
39 local name, rank = GetSpellName(this:GetID(), BOOKTYPE_SPELL);
40 GB_Set_MouseAction(name, rank, "spell");
41 PickupSpell(this:GetID(), "BOOKTYPE_SPELL");
42 else
43 CastSpell( this:GetID(), "BOOKTYPE_SPELL" );
44 end
45 </OnClick>
46 <OnDragStart>
47 local name, rank = GetSpellName(this:GetID(), BOOKTYPE_SPELL);
48 GB_Set_MouseAction(name, rank, "spell");
49 PickupSpell(this:GetID(), "BOOKTYPE_SPELL");
50 </OnDragStart>
51 <OnLeave>
52 GameTooltip:Hide();
53 </OnLeave>
54 </Scripts>
55 </Button>
56  
57 <Frame name="GB_MiniSpellbook" hidden="true" inherits="GB_OptionsBGTemplate" frameStrata="high" parent="UIParent" movable="true" enableMouse="true">
58 <Size><AbsDimension x="310" y="260"/></Size>
59 <Anchors>
60 <Anchor point="CENTER"/>
61 </Anchors>
62  
63 <Frames>
64 <Frame name="GB_SpellbookBG" inherits="GB_BGTemplate" frameStrata="low">
65 <Size><AbsDimension x="290" y="240"/></Size>
66 <Anchors>
67 <Anchor point="CENTER"/>
68 </Anchors>
69 <Scripts>
70 <OnLoad>
71 this:SetBackdropColor(0.0, 0.0, 0.0);
72 this:SetBackdropBorderColor(1.0, 0.0, 0.0);
73 </OnLoad>
74 </Scripts>
75 </Frame>
76  
77 <Button name="GB_SpellbookCloseButton" hidden="false">
78 <Size>
79 <AbsDimension x="32" y="32"/>
80 </Size>
81 <Anchors>
82 <Anchor point="TOPRIGHT">
83 <Offset><AbsDimension x="-5" y="-5"/></Offset>
84 </Anchor>
85 </Anchors>
86 <Scripts>
87 <OnClick>
88 this:GetParent():Hide();
89 </OnClick>
90 </Scripts>
91 <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
92 <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
93 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
94 </Button>
95  
96 <Button name="$parent_Spell_1" inherits="GB_SpellbookTemplate" id="1">
97 <Anchors>
98 <Anchor point="TOPLEFT">
99 <Offset><AbsDimension x="15" y="-34"/></Offset>
100 </Anchor>
101 </Anchors>
102 </Button>
103 <Button name="$parent_Spell_2" inherits="GB_SpellbookTemplate" id="2">
104 <Anchors>
105 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_1" relativePoint="TOPRIGHT"/>
106 </Anchors>
107 </Button>
108 <Button name="$parent_Spell_3" inherits="GB_SpellbookTemplate" id="3">
109 <Anchors>
110 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_2" relativePoint="TOPRIGHT"/>
111 </Anchors>
112 </Button>
113 <Button name="$parent_Spell_4" inherits="GB_SpellbookTemplate" id="4">
114 <Anchors>
115 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_3" relativePoint="TOPRIGHT"/>
116 </Anchors>
117 </Button>
118 <Button name="$parent_Spell_5" inherits="GB_SpellbookTemplate" id="5">
119 <Anchors>
120 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_4" relativePoint="TOPRIGHT"/>
121 </Anchors>
122 </Button>
123 <Button name="$parent_Spell_6" inherits="GB_SpellbookTemplate" id="6">
124 <Anchors>
125 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_5" relativePoint="TOPRIGHT"/>
126 </Anchors>
127 </Button>
128 <Button name="$parent_Spell_7" inherits="GB_SpellbookTemplate" id="7">
129 <Anchors>
130 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_6" relativePoint="TOPRIGHT"/>
131 </Anchors>
132 </Button>
133 <Button name="$parent_Spell_8" inherits="GB_SpellbookTemplate" id="8">
134 <Anchors>
135 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_7" relativePoint="TOPRIGHT"/>
136 </Anchors>
137 </Button>
138  
139 <Button name="$parent_Spell_9" inherits="GB_SpellbookTemplate">
140 <Anchors>
141 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_1" relativePoint="BOTTOMLEFT"/>
142 </Anchors>
143 </Button>
144 <Button name="$parent_Spell_10" inherits="GB_SpellbookTemplate">
145 <Anchors>
146 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_9" relativePoint="TOPRIGHT"/>
147 </Anchors>
148 </Button>
149 <Button name="$parent_Spell_11" inherits="GB_SpellbookTemplate">
150 <Anchors>
151 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_10" relativePoint="TOPRIGHT"/>
152 </Anchors>
153 </Button>
154 <Button name="$parent_Spell_12" inherits="GB_SpellbookTemplate">
155 <Anchors>
156 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_11" relativePoint="TOPRIGHT"/>
157 </Anchors>
158 </Button>
159 <Button name="$parent_Spell_13" inherits="GB_SpellbookTemplate">
160 <Anchors>
161 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_12" relativePoint="TOPRIGHT"/>
162 </Anchors>
163 </Button>
164 <Button name="$parent_Spell_14" inherits="GB_SpellbookTemplate">
165 <Anchors>
166 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_13" relativePoint="TOPRIGHT"/>
167 </Anchors>
168 </Button>
169 <Button name="$parent_Spell_15" inherits="GB_SpellbookTemplate">
170 <Anchors>
171 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_14" relativePoint="TOPRIGHT"/>
172 </Anchors>
173 </Button>
174 <Button name="$parent_Spell_16" inherits="GB_SpellbookTemplate">
175 <Anchors>
176 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_15" relativePoint="TOPRIGHT"/>
177 </Anchors>
178 </Button>
179  
180 <Button name="$parent_Spell_17" inherits="GB_SpellbookTemplate">
181 <Anchors>
182 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_9" relativePoint="BOTTOMLEFT"/>
183 </Anchors>
184 </Button>
185 <Button name="$parent_Spell_18" inherits="GB_SpellbookTemplate">
186 <Anchors>
187 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_17" relativePoint="TOPRIGHT"/>
188 </Anchors>
189 </Button>
190 <Button name="$parent_Spell_19" inherits="GB_SpellbookTemplate">
191 <Anchors>
192 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_18" relativePoint="TOPRIGHT"/>
193 </Anchors>
194 </Button>
195 <Button name="$parent_Spell_20" inherits="GB_SpellbookTemplate">
196 <Anchors>
197 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_19" relativePoint="TOPRIGHT"/>
198 </Anchors>
199 </Button>
200 <Button name="$parent_Spell_21" inherits="GB_SpellbookTemplate">
201 <Anchors>
202 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_20" relativePoint="TOPRIGHT"/>
203 </Anchors>
204 </Button>
205 <Button name="$parent_Spell_22" inherits="GB_SpellbookTemplate">
206 <Anchors>
207 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_21" relativePoint="TOPRIGHT"/>
208 </Anchors>
209 </Button>
210 <Button name="$parent_Spell_23" inherits="GB_SpellbookTemplate">
211 <Anchors>
212 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_22" relativePoint="TOPRIGHT"/>
213 </Anchors>
214 </Button>
215 <Button name="$parent_Spell_24" inherits="GB_SpellbookTemplate">
216 <Anchors>
217 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_23" relativePoint="TOPRIGHT"/>
218 </Anchors>
219 </Button>
220  
221 <Button name="$parent_Spell_25" inherits="GB_SpellbookTemplate">
222 <Anchors>
223 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_17" relativePoint="BOTTOMLEFT"/>
224 </Anchors>
225 </Button>
226 <Button name="$parent_Spell_26" inherits="GB_SpellbookTemplate">
227 <Anchors>
228 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_25" relativePoint="TOPRIGHT"/>
229 </Anchors>
230 </Button>
231 <Button name="$parent_Spell_27" inherits="GB_SpellbookTemplate">
232 <Anchors>
233 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_26" relativePoint="TOPRIGHT"/>
234 </Anchors>
235 </Button>
236 <Button name="$parent_Spell_28" inherits="GB_SpellbookTemplate">
237 <Anchors>
238 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_27" relativePoint="TOPRIGHT"/>
239 </Anchors>
240 </Button>
241 <Button name="$parent_Spell_29" inherits="GB_SpellbookTemplate">
242 <Anchors>
243 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_28" relativePoint="TOPRIGHT"/>
244 </Anchors>
245 </Button>
246 <Button name="$parent_Spell_30" inherits="GB_SpellbookTemplate">
247 <Anchors>
248 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_29" relativePoint="TOPRIGHT"/>
249 </Anchors>
250 </Button>
251 <Button name="$parent_Spell_31" inherits="GB_SpellbookTemplate">
252 <Anchors>
253 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_30" relativePoint="TOPRIGHT"/>
254 </Anchors>
255 </Button>
256 <Button name="$parent_Spell_32" inherits="GB_SpellbookTemplate">
257 <Anchors>
258 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_31" relativePoint="TOPRIGHT"/>
259 </Anchors>
260 </Button>
261  
262 <Button name="$parent_Spell_33" inherits="GB_SpellbookTemplate">
263 <Anchors>
264 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_25" relativePoint="BOTTOMLEFT"/>
265 </Anchors>
266 </Button>
267 <Button name="$parent_Spell_34" inherits="GB_SpellbookTemplate">
268 <Anchors>
269 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_33" relativePoint="TOPRIGHT"/>
270 </Anchors>
271 </Button>
272 <Button name="$parent_Spell_35" inherits="GB_SpellbookTemplate">
273 <Anchors>
274 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_34" relativePoint="TOPRIGHT"/>
275 </Anchors>
276 </Button>
277 <Button name="$parent_Spell_36" inherits="GB_SpellbookTemplate">
278 <Anchors>
279 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_35" relativePoint="TOPRIGHT"/>
280 </Anchors>
281 </Button>
282 <Button name="$parent_Spell_37" inherits="GB_SpellbookTemplate">
283 <Anchors>
284 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_36" relativePoint="TOPRIGHT"/>
285 </Anchors>
286 </Button>
287 <Button name="$parent_Spell_38" inherits="GB_SpellbookTemplate">
288 <Anchors>
289 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_37" relativePoint="TOPRIGHT"/>
290 </Anchors>
291 </Button>
292 <Button name="$parent_Spell_39" inherits="GB_SpellbookTemplate">
293 <Anchors>
294 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_38" relativePoint="TOPRIGHT"/>
295 </Anchors>
296 </Button>
297 <Button name="$parent_Spell_40" inherits="GB_SpellbookTemplate">
298 <Anchors>
299 <Anchor point="TOPLEFT" relativeTo="$parent_Spell_39" relativePoint="TOPRIGHT"/>
300 </Anchors>
301 </Button>
302  
303 <Button name="GB_SpellBookPrevPageButton">
304 <Size>
305 <AbsDimension x="32" y="32"/>
306 </Size>
307 <Anchors>
308 <Anchor point="BOTTOM">
309 <Offset>
310 <AbsDimension x="-21" y="15"/>
311 </Offset>
312 </Anchor>
313 </Anchors>
314 <Scripts>
315 <OnClick>
316 GB_Spellbook_PreviousPage();
317 </OnClick>
318 </Scripts>
319 <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
320 <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
321 <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
322 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
323 </Button>
324 <Button name="GB_SpellBookNextPageButton">
325 <Size>
326 <AbsDimension x="32" y="32"/>
327 </Size>
328 <Anchors>
329 <Anchor point="BOTTOM">
330 <Offset>
331 <AbsDimension x="21" y="15"/>
332 </Offset>
333 </Anchor>
334 </Anchors>
335 <Scripts>
336 <OnClick>
337 GB_Spellbook_NextPage();
338 </OnClick>
339 </Scripts>
340 <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
341 <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
342 <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
343 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
344 </Button>
345 </Frames>
346  
347 <Layers>
348 <Layer level="BACKGROUND">
349 <FontString inherits="GameFontNormal" text="GB_MINISPELLBOOK">
350 <Color r="1.0" b="1.0" g="1.0"/>
351 <Anchors><Anchor point="TOP">
352 <Offset><AbsDimension x="0" y="-18"/></Offset>
353 </Anchor></Anchors>
354 </FontString>
355 </Layer>
356 </Layers>
357  
358 <Scripts>
359 <OnLoad>
360 this:SetBackdropBorderColor(1, 0, 0);
361 </OnLoad>
362 <OnMouseDown>
363 GB_StartMoving();
364 </OnMouseDown>
365 <OnMouseUp>
366 GB_StopMoving();
367 </OnMouseUp>
368 <OnHide>
369 GB_StopMoving();
370 </OnHide>
371 </Scripts>
372 </Frame>
373  
374 </Ui>
375