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 <Script file="localization.lua"/>
3 <Script file="bc_TrackingMenu.lua"/>
4 <Frame name="bc_TrackingMenu">
5 <Scripts>
6 <OnLoad>
7 bcTM_OnLoad();
8 </OnLoad>
9 <OnEvent>
10 bcTM_OnEvent();
11 </OnEvent>
12 <OnUpdate>
13 bcTM_OnUpdate(arg1);
14 </OnUpdate>
15 </Scripts>
16 </Frame>
17 <Frame name="bcTM_IconFrame" enableMouse="true" hidden="true" parent="Minimap" frameStrata="MEDIUM">
18 <Size>
19 <AbsDimension x="33" y="33"/>
20 </Size>
21 <Layers>
22 <Layer level="ARTWORK">
23 <Texture name="bcTM_IconTexture" file="Interface\Icons\INV_Misc_Map_01">
24 <Size>
25 <AbsDimension x="26" y="26"/>
26 </Size>
27 <Anchors>
28 <Anchor point="TOPLEFT">
29 <Offset>
30 <AbsDimension x="7" y="-6"/>
31 </Offset>
32 </Anchor>
33 </Anchors>
34 </Texture>
35 </Layer>
36 <Layer level="OVERLAY">
37 <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
38 <Size>
39 <AbsDimension x="64" y="64"/>
40 </Size>
41 <Anchors>
42 <Anchor point="TOPLEFT"/>
43 </Anchors>
44 </Texture>
45 </Layer>
46 </Layers>
47 <Scripts>
48 <OnEnter>
49 bcTM_IconFrameOnEnter();
50 </OnEnter>
51 <OnMouseUp>
52 if ( arg1 == "RightButton" ) then
53 local icon = GetTrackingTexture();
54 if ( icon ) then
55 CancelTrackingBuff();
56 end
57 else
58 bcTM_IconFrameOnClick();
59 end
60 </OnMouseUp>
61 <OnLeave>
62 GameTooltip:Hide();
63 </OnLeave>
64 </Scripts>
65 </Frame>
66 <Button name="bcTM_PopupButtonTemplate" virtual="true">
67 <Size>
68 <AbsDimension x="64" y="12"/>
69 </Size>
70 <Scripts>
71 <OnClick>
72 bcTM_ButtonClick();
73 </OnClick>
74 </Scripts>
75 <NormalText inherits="GameFontNormal"/>
76 <HighlightText inherits="GameFontHighlight"/>
77 <DisabledText inherits="GameFontDisable"/>
78 </Button>
79 <Frame name="bcTM_Popup" frameStrata="DIALOG" hidden="true" parent="UIParent">
80 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
81 <BackgroundInsets>
82 <AbsInset left="11" right="12" top="12" bottom="11"/>
83 </BackgroundInsets>
84 <TileSize>
85 <AbsValue val="32"/>
86 </TileSize>
87 <EdgeSize>
88 <AbsValue val="32"/>
89 </EdgeSize>
90 </Backdrop>
91 <Frames>
92 <Button name="bcTM_TitleButton" inherits="bcTM_PopupButtonTemplate" text="BCTM_TEXT_TITLE_BUTTON">
93 <Anchors>
94 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">
95 <Offset>
96 <AbsDimension x="0" y="-16"/>
97 </Offset>
98 </Anchor>
99 </Anchors>
100 <Scripts>
101 <OnLoad>
102 this:SetWidth(this:GetTextWidth() + 2 * BCTM_BORDER_WIDTH);
103 </OnLoad>
104 <OnClick>
105 bcTM_ShowOptions();
106 </OnClick>
107 </Scripts>
108 <NormalText inherits="GameFontGreen"/>
109 <HighlightText inherits="GameFontRed"/>
110 <DisabledText inherits="GameFontDisable"/>
111 </Button>
112 <Button name="bcTM_PopupButton1" inherits="bcTM_PopupButtonTemplate" id="1">
113 <Anchors>
114 <Anchor point="TOP" relativeTo="bcTM_TitleButton" relativePoint="BOTTOM">
115 <Offset>
116 <AbsDimension x="0" y="-8"/>
117 </Offset>
118 </Anchor>
119 </Anchors>
120 </Button>
121 <Button name="bcTM_PopupButton2" inherits="bcTM_PopupButtonTemplate" id="2">
122 <Anchors>
123 <Anchor point="TOP" relativeTo="bcTM_PopupButton1" relativePoint="BOTTOM"/>
124 </Anchors>
125 </Button>
126 <Button name="bcTM_PopupButton3" inherits="bcTM_PopupButtonTemplate" id="3">
127 <Anchors>
128 <Anchor point="TOP" relativeTo="bcTM_PopupButton2" relativePoint="BOTTOM"/>
129 </Anchors>
130 </Button>
131 <Button name="bcTM_PopupButton4" inherits="bcTM_PopupButtonTemplate" id="4">
132 <Anchors>
133 <Anchor point="TOP" relativeTo="bcTM_PopupButton3" relativePoint="BOTTOM"/>
134 </Anchors>
135 </Button>
136 <Button name="bcTM_PopupButton5" inherits="bcTM_PopupButtonTemplate" id="5">
137 <Anchors>
138 <Anchor point="TOP" relativeTo="bcTM_PopupButton4" relativePoint="BOTTOM"/>
139 </Anchors>
140 </Button>
141 <Button name="bcTM_PopupButton6" inherits="bcTM_PopupButtonTemplate" id="6">
142 <Anchors>
143 <Anchor point="TOP" relativeTo="bcTM_PopupButton5" relativePoint="BOTTOM"/>
144 </Anchors>
145 </Button>
146 <Button name="bcTM_PopupButton7" inherits="bcTM_PopupButtonTemplate" id="7">
147 <Anchors>
148 <Anchor point="TOP" relativeTo="bcTM_PopupButton6" relativePoint="BOTTOM"/>
149 </Anchors>
150 </Button>
151 <Button name="bcTM_PopupButton8" inherits="bcTM_PopupButtonTemplate" id="8">
152 <Anchors>
153 <Anchor point="TOP" relativeTo="bcTM_PopupButton7" relativePoint="BOTTOM"/>
154 </Anchors>
155 </Button>
156 <Button name="bcTM_PopupButton9" inherits="bcTM_PopupButtonTemplate" id="9">
157 <Anchors>
158 <Anchor point="TOP" relativeTo="bcTM_PopupButton8" relativePoint="BOTTOM"/>
159 </Anchors>
160 </Button>
161 <Button name="bcTM_PopupButton10" inherits="bcTM_PopupButtonTemplate" id="10">
162 <Anchors>
163 <Anchor point="TOP" relativeTo="bcTM_PopupButton9" relativePoint="BOTTOM"/>
164 </Anchors>
165 </Button>
166 <Button name="bcTM_PopupButton11" inherits="bcTM_PopupButtonTemplate" id="11">
167 <Anchors>
168 <Anchor point="TOP" relativeTo="bcTM_PopupButton10" relativePoint="BOTTOM"/>
169 </Anchors>
170 </Button>
171 <Button name="bcTM_PopupButton12" inherits="bcTM_PopupButtonTemplate" id="12">
172 <Anchors>
173 <Anchor point="TOP" relativeTo="bcTM_PopupButton11" relativePoint="BOTTOM"/>
174 </Anchors>
175 </Button>
176 </Frames>
177 <Scripts>
178 <OnShow>
179 PlaySound("UChatScrollButton");
180 </OnShow>
181 <OnUpdate>
182 --bcTM_OnUpdate(arg1);
183 </OnUpdate>
184 </Scripts>
185 </Frame>
186 <Frame name="bcTM_Options" toplevel="true" frameStrata="DIALOG" hidden="true" parent="UIParent">
187 <Size>
188 <AbsDimension x="415" y="400"/>
189 </Size>
190 <Anchors>
191 <Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
192 <Offset>
193 <AbsDimension x="0" y="0"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 <TitleRegion setAllPoints="true"/>
198 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
199 <BackgroundInsets>
200 <AbsInset left="11" right="12" top="12" bottom="11"/>
201 </BackgroundInsets>
202 <TileSize>
203 <AbsValue val="32"/>
204 </TileSize>
205 <EdgeSize>
206 <AbsValue val="32"/>
207 </EdgeSize>
208 </Backdrop>
209 <Layers>
210 <Layer level="ARTWORK">
211 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
212 <Size>
213 <AbsDimension x="375" y="64"/>
214 </Size>
215 <Anchors>
216 <Anchor point="TOP">
217 <Offset>
218 <AbsDimension x="1" y="12"/>
219 </Offset>
220 </Anchor>
221 </Anchors>
222 </Texture>
223 <FontString inherits="GameFontNormal" text="BCTM_TEXT_CONFIG_TITLE" nonspacewrap="true">
224 <Anchors>
225 <Anchor point="TOP" relativeTo="$parentHeader">
226 <Offset>
227 <AbsDimension x="0" y="-13"/>
228 </Offset>
229 </Anchor>
230 </Anchors>
231 </FontString>
232 </Layer>
233 </Layers>
234 <Frames>
235 <CheckButton name="bcTM_CheckShowOnMouse" inherits="OptionsCheckButtonTemplate">
236 <Anchors>
237 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
238 <Offset>
239 <AbsDimension x="15" y="-22"/>
240 </Offset>
241 </Anchor>
242 </Anchors>
243 <Scripts>
244 <OnLoad>
245 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_SHOWONMOUSE);
246 </OnLoad>
247 <OnClick>
248 if (this:GetChecked()) then
249 bcTM_Config.ShowOnMouse = 1;
250 else
251 bcTM_Config.ShowOnMouse = 0;
252 end
253 </OnClick>
254 </Scripts>
255 </CheckButton>
256 <CheckButton name="bcTM_CheckShowOnClick" inherits="OptionsCheckButtonTemplate">
257 <Anchors>
258 <Anchor point="TOPLEFT" relativeTo="bcTM_CheckShowOnMouse" relativePoint="BOTTOMLEFT">
259 <Offset>
260 <AbsDimension x="0" y="0"/>
261 </Offset>
262 </Anchor>
263 </Anchors>
264 <Scripts>
265 <OnLoad>
266 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_SHOWONCLICK);
267 </OnLoad>
268 <OnClick>
269 if (this:GetChecked()) then
270 bcTM_Config.ShowOnClick = 1;
271 else
272 bcTM_Config.ShowOnClick = 0;
273 end
274 </OnClick>
275 </Scripts>
276 </CheckButton>
277 <CheckButton name="bcTM_CheckShowOnButton" inherits="OptionsCheckButtonTemplate">
278 <Anchors>
279 <Anchor point="TOPLEFT" relativeTo="bcTM_CheckShowOnClick" relativePoint="BOTTOMLEFT">
280 <Offset>
281 <AbsDimension x="0" y="0"/>
282 </Offset>
283 </Anchor>
284 </Anchors>
285 <Scripts>
286 <OnLoad>
287 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_SHOWONBUTTON);
288 </OnLoad>
289 <OnClick>
290 if (this:GetChecked()) then
291 bcTM_Config.ShowOnButton = 1;
292 else
293 bcTM_Config.ShowOnButton = 0;
294 end
295 </OnClick>
296 </Scripts>
297 </CheckButton>
298 <CheckButton name="bcTM_CheckHideOnMouse" inherits="OptionsCheckButtonTemplate">
299 <Anchors>
300 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
301 <Offset>
302 <AbsDimension x="210" y="-22"/>
303 </Offset>
304 </Anchor>
305 </Anchors>
306 <Scripts>
307 <OnLoad>
308 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_HIDEONMOUSE);
309 </OnLoad>
310 <OnClick>
311 if (this:GetChecked()) then
312 bcTM_Config.HideOnMouse = 1;
313 else
314 bcTM_Config.HideOnMouse = 0;
315 end
316 </OnClick>
317 </Scripts>
318 </CheckButton>
319 <CheckButton name="bcTM_CheckHideOnClick" inherits="OptionsCheckButtonTemplate">
320 <Anchors>
321 <Anchor point="TOPLEFT" relativeTo="bcTM_CheckHideOnMouse" relativePoint="BOTTOMLEFT">
322 <Offset>
323 <AbsDimension x="0" y="0"/>
324 </Offset>
325 </Anchor>
326 </Anchors>
327 <Scripts>
328 <OnLoad>
329 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_HIDEONCLICK);
330 </OnLoad>
331 <OnClick>
332 if (this:GetChecked()) then
333 bcTM_Config.HideOnClick = 1;
334 else
335 bcTM_Config.HideOnClick = 0;
336 end
337 </OnClick>
338 </Scripts>
339 </CheckButton>
340 <CheckButton name="bcTM_CheckHideOnButton" inherits="OptionsCheckButtonTemplate">
341 <Anchors>
342 <Anchor point="TOPLEFT" relativeTo="bcTM_CheckHideOnClick" relativePoint="BOTTOMLEFT">
343 <Offset>
344 <AbsDimension x="0" y="0"/>
345 </Offset>
346 </Anchor>
347 </Anchors>
348 <Scripts>
349 <OnLoad>
350 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_HIDEONBUTTON);
351 </OnLoad>
352 <OnClick>
353 if (this:GetChecked()) then
354 bcTM_Config.HideOnButton = 1;
355 else
356 bcTM_Config.HideOnButton = 0;
357 end
358 </OnClick>
359 </Scripts>
360 </CheckButton>
361 <CheckButton name="bcTM_CheckHideOnCast" inherits="OptionsCheckButtonTemplate">
362 <Anchors>
363 <Anchor point="TOPLEFT" relativeTo="bcTM_CheckHideOnButton" relativePoint="BOTTOMLEFT">
364 <Offset>
365 <AbsDimension x="0" y="0"/>
366 </Offset>
367 </Anchor>
368 </Anchors>
369 <Scripts>
370 <OnLoad>
371 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_HIDEONCAST);
372 </OnLoad>
373 <OnClick>
374 if (this:GetChecked()) then
375 bcTM_Config.HideOnCast = 1;
376 else
377 bcTM_Config.HideOnCast = 0;
378 end
379 </OnClick>
380 </Scripts>
381 </CheckButton>
382 <Slider name="bcTM_SliderPosition" inherits="OptionsSliderTemplate">
383 <Size>
384 <AbsDimension x="325" y="17"/>
385 </Size>
386 <Anchors>
387 <Anchor point="TOP" relative="$parent" relativePoint="TOP">
388 <Offset>
389 <AbsDimension x="0" y="-175"/>
390 </Offset>
391 </Anchor>
392 </Anchors>
393 <Scripts>
394 <OnLoad>
395 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_POSITION);
396 getglobal(this:GetName().."High"):SetText();
397 getglobal(this:GetName().."Low"):SetText();
398 this:SetMinMaxValues(0, 360);
399 this:SetValueStep(1);
400 this.tooltipText = BCTM_TEXT_POSITION_TIP;
401 </OnLoad>
402 <OnShow>
403 if (bcTM_Config.Position) then
404 this:SetValue(bcTM_Config.Position);
405 end
406 </OnShow>
407 <OnValueChanged>
408 bcTM_Config.Position = this:GetValue();
409 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_POSITION.." - "..this:GetValue().."\194\176");
410 bcTM_IconFrame:SetPoint("TOPLEFT", "Minimap", "TOPLEFT", 52 - (80 * cos(this:GetValue())), (80 * sin(this:GetValue())) - 52);
411 </OnValueChanged>
412 </Scripts>
413 </Slider>
414 <CheckButton name="bcTM_CheckBlinkOnInactive" inherits="OptionsCheckButtonTemplate">
415 <Anchors>
416 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
417 <Offset>
418 <AbsDimension x="15" y="-210"/>
419 </Offset>
420 </Anchor>
421 </Anchors>
422 <Scripts>
423 <OnLoad>
424 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_BLINKONINACTIVE);
425 </OnLoad>
426 <OnClick>
427 if (this:GetChecked()) then
428 bcTM_Config.BlinkOnInactive = 1;
429 else
430 bcTM_Config.BlinkOnInactive = 0;
431 end
432 </OnClick>
433 </Scripts>
434 </CheckButton>
435 <CheckButton name="bcTM_CheckHideWhileDead" inherits="OptionsCheckButtonTemplate">
436 <Anchors>
437 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
438 <Offset>
439 <AbsDimension x="210" y="-210"/>
440 </Offset>
441 </Anchor>
442 </Anchors>
443 <Scripts>
444 <OnLoad>
445 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_HIDEWHILEDEAD);
446 </OnLoad>
447 <OnClick>
448 if (this:GetChecked()) then
449 bcTM_Config.HideWhileDead = 1;
450 else
451 bcTM_Config.HideWhileDead = 0;
452 end
453 </OnClick>
454 </Scripts>
455 </CheckButton>
456 <Slider name="bcTM_SliderBlinkDuration" inherits="OptionsSliderTemplate">
457 <Size>
458 <AbsDimension x="125" y="17"/>
459 </Size>
460 <Anchors>
461 <Anchor point="TOPLEFT" relative="$parent" relativePoint="TOPLEFT">
462 <Offset>
463 <AbsDimension x="25" y="-260"/>
464 </Offset>
465 </Anchor>
466 </Anchors>
467 <Scripts>
468 <OnLoad>
469 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_BLINKDURATION);
470 getglobal(this:GetName().."High"):SetText();
471 getglobal(this:GetName().."Low"):SetText();
472 this:SetMinMaxValues(0.1, 2.0);
473 this:SetValueStep(0.1);
474 this.tooltipText = BCTM_TEXT_BLINKDURATION_TIP;
475 </OnLoad>
476 <OnShow>
477 if (bcTM_Config.BlinkDuration) then
478 this:SetValue(bcTM_Config.BlinkDuration);
479 end
480 </OnShow>
481 <OnValueChanged>
482 bcTM_Config.BlinkDuration = tonumber(format("%.1f", this:GetValue()));
483 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_BLINKDURATION.." - "..format("%.1f", bcTM_Config.BlinkDuration).." sec");
484 </OnValueChanged>
485 </Scripts>
486 </Slider>
487 <Slider name="bcTM_SliderBlinkDelay" inherits="OptionsSliderTemplate">
488 <Size>
489 <AbsDimension x="125" y="17"/>
490 </Size>
491 <Anchors>
492 <Anchor point="TOPLEFT" relative="$parent" relativePoint="TOPLEFT">
493 <Offset>
494 <AbsDimension x="25" y="-290"/>
495 </Offset>
496 </Anchor>
497 </Anchors>
498 <Scripts>
499 <OnLoad>
500 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_BLINKDELAY);
501 getglobal(this:GetName().."High"):SetText();
502 getglobal(this:GetName().."Low"):SetText();
503 this:SetMinMaxValues(0.1, 10.0);
504 this:SetValueStep(0.1);
505 this.tooltipText = BCTM_TEXT_BLINKDELAY_TIP;
506 </OnLoad>
507 <OnShow>
508 if (bcTM_Config.BlinkDelay) then
509 this:SetValue(bcTM_Config.BlinkDelay);
510 end
511 </OnShow>
512 <OnValueChanged>
513 bcTM_Config.BlinkDelay = tonumber(format("%.1f", this:GetValue()));
514 getglobal(this:GetName().."Text"):SetText(BCTM_TEXT_BLINKDELAY.." - "..format("%.1f", bcTM_Config.BlinkDelay).." sec");
515 </OnValueChanged>
516 </Scripts>
517 </Slider>
518 <Button name="bcTM_CloseButton" text="CLOSE" inherits="UIPanelButtonTemplate">
519 <Size>
520 <AbsDimension x="100" y="25"/>
521 </Size>
522 <Anchors>
523 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
524 <Offset>
525 <AbsDimension x="0" y="20"/>
526 </Offset>
527 </Anchor>
528 </Anchors>
529 <Scripts>
530 <OnClick>
531 bcTM_HideOptions();
532 </OnClick>
533 </Scripts>
534 </Button>
535 </Frames>
536 <Scripts>
537 <OnShow>
538 PlaySound("UChatScrollButton");
539 </OnShow>
540 </Scripts>
541 </Frame>
542 </Ui>