vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
2 <Script file="localization-EFD.lua"/>
3  
4 <CheckButton name="BSM_CheckButton" hidden="false" virtual="true">
5 <Size>
6 <AbsDimension x="32" y="32"/>
7 </Size>
8 <Layers>
9 <Layer level="ARTWORK">
10 <FontString name="$parentText" inherits="GameFontNormalSmall" text="">
11 <Anchors>
12 <Anchor point="LEFT" relativePoint="RIGHT"/>
13 </Anchors>
14 </FontString>
15 </Layer>
16 </Layers>
17 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
18 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
19 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
20 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
21 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
22 <Scripts>
23 <OnShow>
24 BSM_CheckOnShow(this);
25 </OnShow>
26 <OnClick>
27 BSM_CheckOnClick(this);
28 </OnClick>
29 </Scripts>
30 </CheckButton>
31 <CheckButton name="BSM_CheckButtonSub1" inherits="BSM_CheckButton" virtual="true">
32 <Size>
33 <AbsDimension x="28" y="28"/>
34 </Size>
35 </CheckButton>
36 <CheckButton name="BSM_CheckButtonSub2" inherits="BSM_CheckButton" virtual="true">
37 <Size>
38 <AbsDimension x="24" y="24"/>
39 </Size>
40 </CheckButton>
41  
42 <Frame name="BSM_Divider" hidden="false" virtual="true">
43 <Size>
44 <AbsDimension x="420" y="40"/>
45 </Size>
46 <Layers>
47 <Layer level="ARTWORK">
48 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
49 <Size>
50 <AbsDimension y="40"/>
51 </Size>
52 <Anchors>
53 <Anchor point="CENTER"/>
54 </Anchors>
55 </Texture>
56 <FontString name="$parentHeaderText" inherits="GameFontNormal">
57 <Anchors>
58 <Anchor point="TOP" relativeTo="$parentHeader">
59 <Offset>
60 <AbsDimension x="0" y="-5"/>
61 </Offset>
62 </Anchor>
63 </Anchors>
64 </FontString>
65 </Layer>
66 <Layer level="BACKGROUND">
67 <Texture name="$parentLine" file="Interface\HelpFrame\HelpFrameDivider">
68 <Size>
69 <AbsDimension x="420" y="20" />
70 </Size>
71 <Anchors>
72 <Anchor point="CENTER">
73 <Offset>
74 <AbsDimension y="7"/>
75 </Offset>
76 </Anchor>
77 </Anchors>
78 <TexCoords left="0" right="1.0" top="0.3125" bottom="0.625" />
79 </Texture>
80 </Layer>
81 </Layers>
82 <Scripts>
83 <OnShow>
84 BSM_DividerOnShow(this);
85 </OnShow>
86 </Scripts>
87 </Frame>
88  
89 <EditBox name="BSM_Text" letters="4" historyLines="0" autoFocus="false" virtual="true">
90 <Size>
91 <AbsDimension x="52" y="17"/>
92 </Size>
93 <Layers>
94 <Layer level="BACKGROUND">
95 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
96 <Size>
97 <AbsDimension x="8" y="17"/>
98 </Size>
99 <Anchors>
100 <Anchor point="TOPLEFT">
101 <Offset>
102 <AbsDimension x="-8" y="0"/>
103 </Offset>
104 </Anchor>
105 </Anchors>
106 <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
107 </Texture>
108 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
109 <Size>
110 <AbsDimension x="30" y="17"/>
111 </Size>
112 <Anchors>
113 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
114 </Anchors>
115 <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
116 </Texture>
117 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
118 <Size>
119 <AbsDimension x="8" y="17"/>
120 </Size>
121 <Anchors>
122 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
123 </Anchors>
124 <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
125 </Texture>
126 </Layer>
127 </Layers>
128 <Scripts>
129 <OnTabPressed>
130 this:ClearFocus();
131 </OnTabPressed>
132 <OnEditFocusLost>
133 this:HighlightText(0, 0);
134 </OnEditFocusLost>
135 <OnEnterPressed>
136 this:ClearFocus();
137 BSM_SetPosition(this);
138 </OnEnterPressed>
139 <OnEscapePressed>
140 this:ClearFocus();
141 </OnEscapePressed>
142 <OnTextChanged>
143 </OnTextChanged>
144 </Scripts>
145 <FontString inherits="ChatFontNormal"/>
146 </EditBox>
147 <Frame name="BSM_PositionFrame" virtual="true">
148 <Size>
149 <AbsDimension x="400" y="24"/>
150 </Size>
151 <Layers>
152 <Layer level="ARTWORK">
153 <FontString name="$parentText" inherits="GameFontNormalSmall">
154 <Anchors>
155 <Anchor point="LEFT"/>
156 </Anchors>
157 </FontString>
158 </Layer>
159 </Layers>
160 <Frames>
161 <EditBox name="$parentX" inherits="BSM_Text">
162 <Anchors>
163 <Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT">
164 <Offset>
165 <AbsDimension x="10"/>
166 </Offset>
167 </Anchor>
168 </Anchors>
169 <Scripts>
170 <OnTabPressed>
171 getglobal(this:GetParent():GetName().."Y"):SetFocus();
172 </OnTabPressed>
173 <OnEnterPressed>
174 getglobal(this:GetParent():GetName().."Y"):SetFocus();
175 BSM_SetPosition(this);
176 </OnEnterPressed>
177 </Scripts>
178 </EditBox>
179 <EditBox name="$parentY" inherits="BSM_Text">
180 <Anchors>
181 <Anchor point="LEFT" relativeTo="$parentX" relativePoint="RIGHT"/>
182 </Anchors>
183 </EditBox>
184 <Button name="$parentSet" inherits="GameMenuButtonTemplate" text="BSM_TEXT_SET">
185 <Size>
186 <AbsDimension x="25" y="21"/>
187 </Size>
188 <Anchors>
189 <Anchor point="LEFT" relativeTo="$parentY" relativePoint="RIGHT">
190 <Offset>
191 <AbsDimension x="-3" y="0" />
192 </Offset>
193 </Anchor>
194 </Anchors>
195 <Scripts>
196 <OnClick>
197 BSM_SetPosition(this);
198 </OnClick>
199 </Scripts>
200 </Button>
201 </Frames>
202 <Scripts>
203 <OnShow>
204 getglobal(this:GetName().."X"):SetText(math.floor(BSM_Save.dispX));
205 getglobal(this:GetName().."Y"):SetText(math.floor(BSM_Save.dispY));
206 BSM_CheckOnShow(this);
207 </OnShow>
208 </Scripts>
209 </Frame>
210  
211 <Frame name="BSM_Options" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent">
212 <Size>
213 <AbsDimension x="450" y="640"/>
214 </Size>
215 <Anchors>
216 <Anchor point="CENTER"/>
217 </Anchors>
218 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
219 <BackgroundInsets>
220 <AbsInset left="11" right="12" top="12" bottom="11"/>
221 </BackgroundInsets>
222 <TileSize>
223 <AbsValue val="32"/>
224 </TileSize>
225 <EdgeSize>
226 <AbsValue val="32"/>
227 </EdgeSize>
228 </Backdrop>
229 <Layers>
230 <Layer level="ARTWORK">
231 <Texture name="BSM_OptionsHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
232 <Size>
233 <AbsDimension x="256" y="64"/>
234 </Size>
235 <Anchors>
236 <Anchor point="TOP">
237 <Offset>
238 <AbsDimension x="0" y="12"/>
239 </Offset>
240 </Anchor>
241 </Anchors>
242 </Texture>
243 <FontString inherits="GameFontNormal" text="BSM_OPTIONS">
244 <Anchors>
245 <Anchor point="TOP" relativeTo="BSM_OptionsHeader">
246 <Offset>
247 <AbsDimension x="0" y="-14"/>
248 </Offset>
249 </Anchor>
250 </Anchors>
251 </FontString>
252 <FontString inherits="GameFontHighlight" text="BSM_VERSION">
253 <Anchors>
254 <Anchor point="TOPRIGHT">
255 <Offset>
256 <AbsDimension x="-12" y="-12"/>
257 </Offset>
258 </Anchor>
259 </Anchors>
260 </FontString>
261 </Layer>
262 </Layers>
263 <Frames>
264 <Frame name="BSM_Divider_Individual" inherits="BSM_Divider">
265 <Anchors>
266 <Anchor point="TOP">
267 <Offset>
268 <AbsDimension y="-25"/>
269 </Offset>
270 </Anchor>
271 </Anchors>
272 </Frame>
273 <Frame name="BSM_Options_Individual">
274 <Size>
275 <AbsDimension x="420" y="200"/>
276 </Size>
277 <Anchors>
278 <Anchor point="TOP" relativeTo="BSM_Divider_Individual" relativePoint="BOTTOM"/>
279 </Anchors>
280 <Frames>
281 <CheckButton name="BSM_Check_Individual" inherits="BSM_CheckButton">
282 <Anchors>
283 <Anchor point="TOPLEFT">
284 <Offset>
285 <AbsDimension x="10" y="20"/>
286 </Offset>
287 </Anchor>
288 </Anchors>
289 </CheckButton>
290 <CheckButton name="BSM_Check_Overlay" inherits="BSM_CheckButtonSub1">
291 <Anchors>
292 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Individual" relativePoint="BOTTOMLEFT">
293 <Offset>
294 <AbsDimension x="20" y="5"/>
295 </Offset>
296 </Anchor>
297 </Anchors>
298 </CheckButton>
299 <CheckButton name="BSM_Check_Bars" inherits="BSM_CheckButtonSub2">
300 <Anchors>
301 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Overlay" relativePoint="BOTTOMLEFT">
302 <Offset>
303 <AbsDimension x="20" y="5"/>
304 </Offset>
305 </Anchor>
306 </Anchors>
307 </CheckButton>
308 <CheckButton name="BSM_Check_Labels" inherits="BSM_CheckButtonSub2">
309 <Anchors>
310 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Bars" relativePoint="BOTTOMLEFT">
311 <Offset>
312 <AbsDimension y="5"/>
313 </Offset>
314 </Anchor>
315 </Anchors>
316 </CheckButton>
317 <CheckButton name="BSM_Check_Dropdown" inherits="BSM_CheckButtonSub1">
318 <Anchors>
319 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Labels" relativePoint="BOTTOMLEFT">
320 <Offset>
321 <AbsDimension x="-20" y="5"/>
322 </Offset>
323 </Anchor>
324 </Anchors>
325 </CheckButton>
326 <CheckButton name="BSM_Check_Bindings" inherits="BSM_CheckButtonSub2">
327 <Anchors>
328 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Dropdown" relativePoint="BOTTOMLEFT">
329 <Offset>
330 <AbsDimension x="20" y="5"/>
331 </Offset>
332 </Anchor>
333 </Anchors>
334 </CheckButton>
335 <CheckButton name="BSM_Check_IndvLabels" inherits="BSM_CheckButtonSub1">
336 <Anchors>
337 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Bindings" relativePoint="BOTTOMLEFT">
338 <Offset>
339 <AbsDimension x="-20" y="5"/>
340 </Offset>
341 </Anchor>
342 </Anchors>
343 </CheckButton>
344 <CheckButton name="BSM_Check_IndvColor" inherits="BSM_CheckButtonSub1">
345 <Anchors>
346 <Anchor point="TOPLEFT" relativeTo="BSM_Check_IndvLabels" relativePoint="BOTTOMLEFT">
347 <Offset>
348 <AbsDimension y="5"/>
349 </Offset>
350 </Anchor>
351 </Anchors>
352 </CheckButton>
353 <CheckButton name="BSM_Check_IndvTotals" inherits="BSM_CheckButtonSub1">
354 <Anchors>
355 <Anchor point="TOPLEFT" relativeTo="BSM_Check_IndvColor" relativePoint="BOTTOMLEFT">
356 <Offset>
357 <AbsDimension y="5"/>
358 </Offset>
359 </Anchor>
360 </Anchors>
361 </CheckButton>
362 <CheckButton name="BSM_Check_IndvSlots" inherits="BSM_CheckButtonSub1">
363 <Anchors>
364 <Anchor point="TOPLEFT" relativeTo="BSM_Check_IndvTotals" relativePoint="BOTTOMLEFT">
365 <Offset>
366 <AbsDimension y="5"/>
367 </Offset>
368 </Anchor>
369 </Anchors>
370 </CheckButton>
371 </Frames>
372 </Frame>
373  
374 <Frame name="BSM_Divider_Overall" inherits="BSM_Divider">
375 <Anchors>
376 <Anchor point="TOP" relativeTo="BSM_Options_Individual" relativePoint="BOTTOM">
377 <Offset>
378 <AbsDimension y="-10"/>
379 </Offset>
380 </Anchor>
381 </Anchors>
382 </Frame>
383 <Frame name="BSM_Options_Overall">
384 <Size>
385 <AbsDimension x="420" y="190"/>
386 </Size>
387 <Anchors>
388 <Anchor point="TOP" relativeTo="BSM_Divider_Overall" relativePoint="BOTTOM"/>
389 </Anchors>
390 <Frames>
391 <CheckButton name="BSM_Check_Overall" inherits="BSM_CheckButton">
392 <Anchors>
393 <Anchor point="TOPLEFT">
394 <Offset>
395 <AbsDimension x="10" y="20"/>
396 </Offset>
397 </Anchor>
398 </Anchors>
399 </CheckButton>
400 <CheckButton name="BSM_Check_Title" inherits="BSM_CheckButtonSub1">
401 <Anchors>
402 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Overall" relativePoint="BOTTOMLEFT">
403 <Offset>
404 <AbsDimension x="20" y="5"/>
405 </Offset>
406 </Anchor>
407 </Anchors>
408 </CheckButton>
409 <CheckButton name="BSM_Check_Back" inherits="BSM_CheckButtonSub1">
410 <Anchors>
411 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Title" relativePoint="BOTTOMLEFT">
412 <Offset>
413 <AbsDimension y="5"/>
414 </Offset>
415 </Anchor>
416 </Anchors>
417 </CheckButton>
418 <CheckButton name="BSM_Check_OverallLabels" inherits="BSM_CheckButtonSub1">
419 <Anchors>
420 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Back" relativePoint="BOTTOMLEFT">
421 <Offset>
422 <AbsDimension y="5"/>
423 </Offset>
424 </Anchor>
425 </Anchors>
426 </CheckButton>
427 <CheckButton name="BSM_Check_OverallColor" inherits="BSM_CheckButtonSub1">
428 <Anchors>
429 <Anchor point="TOPLEFT" relativeTo="BSM_Check_OverallLabels" relativePoint="BOTTOMLEFT">
430 <Offset>
431 <AbsDimension y="5"/>
432 </Offset>
433 </Anchor>
434 </Anchors>
435 </CheckButton>
436 <CheckButton name="BSM_Check_OverallTotals" inherits="BSM_CheckButtonSub1">
437 <Anchors>
438 <Anchor point="TOPLEFT" relativeTo="BSM_Check_OverallColor" relativePoint="BOTTOMLEFT">
439 <Offset>
440 <AbsDimension y="5"/>
441 </Offset>
442 </Anchor>
443 </Anchors>
444 </CheckButton>
445 <CheckButton name="BSM_Check_OverallSlots" inherits="BSM_CheckButtonSub1">
446 <Anchors>
447 <Anchor point="TOPLEFT" relativeTo="BSM_Check_OverallTotals" relativePoint="BOTTOMLEFT">
448 <Offset>
449 <AbsDimension y="5"/>
450 </Offset>
451 </Anchor>
452 </Anchors>
453 </CheckButton>
454 <CheckButton name="BSM_Check_OverallLock" inherits="BSM_CheckButtonSub1">
455 <Anchors>
456 <Anchor point="TOPLEFT" relativeTo="BSM_Check_OverallSlots" relativePoint="BOTTOMLEFT">
457 <Offset>
458 <AbsDimension y="5"/>
459 </Offset>
460 </Anchor>
461 </Anchors>
462 </CheckButton>
463 <Frame name="BSM_Options_Position" inherits="BSM_PositionFrame">
464 <Anchors>
465 <Anchor point="TOPLEFT" relativeTo="BSM_Check_OverallLock" relativePoint="BOTTOMLEFT">
466 <Offset>
467 <AbsDimension x="5" y="5"/>
468 </Offset>
469 </Anchor>
470 </Anchors>
471 </Frame>
472 </Frames>
473 </Frame>
474  
475 <Frame name="BSM_Divider_Global" inherits="BSM_Divider">
476 <Anchors>
477 <Anchor point="TOP" relativeTo="BSM_Options_Overall" relativePoint="BOTTOM">
478 <Offset>
479 <AbsDimension y="-10"/>
480 </Offset>
481 </Anchor>
482 </Anchors>
483 </Frame>
484 <Frame name="BSM_Options_Global">
485 <Size>
486 <AbsDimension x="420" y="75"/>
487 </Size>
488 <Anchors>
489 <Anchor point="TOP" relativeTo="BSM_Divider_Global" relativePoint="BOTTOM"/>
490 </Anchors>
491 <Frames>
492 <CheckButton name="BSM_Check_Notify" inherits="BSM_CheckButton">
493 <Anchors>
494 <Anchor point="TOPLEFT">
495 <Offset>
496 <AbsDimension x="10" y="20"/>
497 </Offset>
498 </Anchor>
499 </Anchors>
500 </CheckButton>
501 <CheckButton name="BSM_Check_OptionsButton" inherits="BSM_CheckButton">
502 <Anchors>
503 <Anchor point="TOPLEFT" relativeTo="BSM_Check_Notify" relativePoint="BOTTOMLEFT">
504 <Offset>
505 <AbsDimension y="5"/>
506 </Offset>
507 </Anchor>
508 </Anchors>
509 </CheckButton>
510 </Frames>
511 </Frame>
512  
513 <Button name="BSM_Options_Close" inherits="GameMenuButtonTemplate" text="BSM_OPTIONS_CLOSE">
514 <Anchors>
515 <Anchor point="CENTER" relativePoint="BOTTOM">
516 <Offset>
517 <AbsDimension x="0" y="30" />
518 </Offset>
519 </Anchor>
520 </Anchors>
521 <Scripts>
522 <OnClick>
523 this:GetParent():Hide();
524 </OnClick>
525 </Scripts>
526 </Button>
527  
528 <Button name="BSM_Options_Default" inherits="GameMenuButtonTemplate" text="BSM_OPTIONS_DEFAULT">
529 <Size>
530 <AbsDimension x="55" y="21"/>
531 </Size>
532 <Anchors>
533 <Anchor point="TOPLEFT">
534 <Offset>
535 <AbsDimension x="12" y="-12" />
536 </Offset>
537 </Anchor>
538 </Anchors>
539 <Scripts>
540 <OnClick>
541 BSM_Save = nil;
542 BSM_loadVariables();
543 this:GetParent():Hide();
544 </OnClick>
545 </Scripts>
546 </Button>
547 </Frames>
548 <Scripts>
549 <OnLoad>
550 -- Add HelloWorldOptionsFrame to the UIPanelWindows list
551 UIPanelWindows["BSMOptionsPane"] = {area = "center", pushable = 0};
552 </OnLoad>
553 <OnHide>
554 -- Check if the options frame was opened by myAddOns
555 if(MYADDONS_ACTIVE_OPTIONSFRAME == this) then
556 ShowUIPanel(myAddOnsFrame);
557 end
558 </OnHide>
559 <OnMouseDown>
560 if ( arg1 == "LeftButton" ) then
561 this:StartMoving();
562 end
563 </OnMouseDown>
564 <OnMouseUp>
565 if ( arg1 == "LeftButton" ) then
566 this:StopMovingOrSizing();
567 end
568 </OnMouseUp>
569 </Scripts>
570 </Frame>
571  
572 <Button name="BSM_OptionsButton" toplevel="false" enableMouse="true" hidden="false" frameStrata="LOW" parent="UIParent">
573 <Size>
574 <AbsDimension x="33" y="33"/>
575 </Size>
576 <Anchors>
577 <Anchor point="LEFT" relativeTo="BSM_Frame" relativePoint="RIGHT">
578 <Offset>
579 <AbsDimension x="0" y="0"/>
580 </Offset>
581 </Anchor>
582 </Anchors>
583 <Layers>
584 <Layer level="ARTWORK">
585 <Texture file="Interface\Icons\INV_Misc_Bag_01.blp">
586 <Size>
587 <AbsDimension x="18" y="18"/>
588 </Size>
589 <Anchors>
590 <Anchor point="TOPLEFT">
591 <Offset>
592 <AbsDimension x="7" y="-6"/>
593 </Offset>
594 </Anchor>
595 </Anchors>
596 </Texture>
597 </Layer>
598 <Layer level="OVERLAY">
599 <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
600 <Size>
601 <AbsDimension x="52" y="52"/>
602 </Size>
603 <Anchors>
604 <Anchor point="TOPLEFT"/>
605 </Anchors>
606 </Texture>
607 </Layer>
608 </Layers>
609 <Scripts>
610 <OnClick>
611 if not getglobal("BSM_Options"):IsVisible() then
612 getglobal("BSM_Options"):Show();
613 else
614 getglobal("BSM_Options"):Hide();
615 end
616 </OnClick>
617 </Scripts>
618 </Button>
619 </Ui>