vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--
2 //////////////////////////////////////////////
3 //
4 // TipBuddy.xml
5 //
6 //////////////////////////////////////////////
7 -->
8  
9 <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/
10 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
11 <Script file="TipBuddy_Initialize.lua"/>
12 <Script file="TipBuddy_GlobalFunctions.lua"/>
13 <Script file="TipBuddy_OptionsFrame.lua"/>
14 <Script file="TipBuddy_Colors.lua"/>
15 <Script file="TipBuddy_Variables.lua"/>
16 <Script file="localization.lua"/>
17 <Script file="TipBuddy.lua"/>
18 <!-- <Script file="TipBuddyTitan.lua"/> -->
19 <Include file="GameTooltipTemplate.xml"/>
20  
21 <!-- DEFAULT -->
22 <!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\Tooltips\\UI-Tooltip-Border",tile=true,tileSize=32,edgeSize=16,insets={ left = 5, right = 5, top = 5, bottom = 5 }}); -->
23  
24 <!-- INFO PANEL -->
25 <!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\AddOns\\TipBuddy\\gfx\\InfoPanel-Border",tile=true,tileSize=32,edgeSize=14,insets={ left = 4, right = 4, top = 4, bottom = 4 }}); -->
26  
27 <!-- TEXT PANEL -->
28 <!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\Glues\\Common\\TextPanel-Border",tile=true,tileSize=32,edgeSize=22,insets={ left = 5, right = 5, top = 5, bottom = 5 }}); -->
29  
30 <!-- ROUNDED -->
31 <!-- /script GameTooltip:SetBackdrop({bgFile = "Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background", edgeFile = "Interface\\Minimap\\TooltipBackdrop", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->
32  
33 <!-- DIALOGUE BOX -->
34 <!-- /script GameTooltip:SetBackdrop({bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background",edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border", tile = true, tileSize = 16, edgeSize = 20, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->
35  
36 <!-- GLOW -->
37 <!-- /script GameTooltip:SetBackdrop({bgFile = "Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background", edgeFile = "Interface\\AddOns\\TipBuddy\\gfx\\Glow-Border", edgeSize = 22, insets = { left = 5, right = 5, top = 5, bottom = 5 }}); -->
38  
39 <!-- "Interface\\Glues\\Common\TextPanel-Border" -->
40 <!-- "Interface\\AddOns\\TipBuddy\\gfx\\Glow-Border"
41 "Interface\\AddOns\\TipBuddy\\gfx\\Parchment-BG"
42 "Interface\\AddOns\\TipBuddy\\gfx\\Parchment-Border"
43 "Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background" -->
44 <FontString name="TBGameFontNormal" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
45 <FontHeight>
46 <AbsValue val="10"/>
47 </FontHeight>
48 <Color r="1.0" g="0.82" b="0"/>
49 </FontString>
50 <FontString name="TBGameFontHighlight" inherits="TBGameFontNormal" virtual="true">
51 <Color r="1.0" g="1.0" b="1.0"/>
52 </FontString>
53 <FontString name="TBGameFontDisable" inherits="TBGameFontNormal" virtual="true">
54 <Color r="0.5" g="0.5" b="0.5"/>
55 </FontString>
56  
57 <FontString name="TBGameFontNormalSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
58 <FontHeight>
59 <AbsValue val="7"/>
60 </FontHeight>
61 <Color r="1.0" g="0.82" b="0"/>
62 </FontString>
63 <FontString name="TBGameFontHighlightSmall" inherits="TBGameFontNormalSmall" virtual="true">
64 <Color r="1.0" g="1.0" b="1.0"/>
65 </FontString>
66  
67 <FontString name="ToolTipBuddyText" inherits="GameTooltipText" justifyH="LEFT" virtual="true">
68 <FontHeight>
69 <AbsValue val="11"/>
70 </FontHeight>
71 <Color r="1.0" g="1.0" b="1.0"/>
72 <!-- <Shadow>
73 <Offset>
74 <AbsDimension x="0.75" y="-0.75"/>
75 </Offset>
76 <Color r=".4" g="0.4" b="0.4"/>
77 </Shadow> -->
78 </FontString>
79  
80 <FontString name="ToolTipBuddyTextOutline" font="Fonts\FRIZQT__.TTF" justifyH="LEFT" outline="NORMAL" virtual="true">
81 <FontHeight>
82 <AbsValue val="15"/>
83 </FontHeight>
84 <Color r="1.0" g="1.0" b="1.0"/>
85 </FontString>
86  
87 <FontString name="TB_HealthText" inherits="NumberFontNormal" outline="NORMAL" justifyH="LEFT" virtual="true">
88 <FontHeight>
89 <AbsValue val="14"/>
90 </FontHeight>
91 <Color r="0.9" g="0.9" b="0.9"/>
92 <!-- <Shadow>
93 <Offset>
94 <AbsDimension x="1" y="-1"/>
95 </Offset>
96 <Color r="0.1" g="0.1" b="0.1"/>
97 </Shadow> -->
98 </FontString>
99 <FontString name="TB_ManaText" inherits="NumberFontNormal" outline="NORMAL" justifyH="LEFT" virtual="true">
100 <FontHeight>
101 <AbsValue val="12"/>
102 </FontHeight>
103 <Color r="0.9" g="0.9" b="0.9"/>
104 <!-- <Shadow>
105 <Offset>
106 <AbsDimension x="1" y="-1"/>
107 </Offset>
108 <Color r="0.1" g="0.1" b="0.1"/>
109 </Shadow> -->
110 </FontString>
111  
112 <FontString name="TB_TTGameFontNormalSmall" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
113 <FontHeight>
114 <AbsValue val="9"/>
115 </FontHeight>
116 <Color r="1.0" g="0.82" b="0"/>
117 </FontString>
118 <FontString name="TB_TTGameFontNormalSmallHighlight" inherits="MasterFont" font="Fonts\FRIZQT__.TTF" virtual="true">
119 <FontHeight>
120 <AbsValue val="9"/>
121 </FontHeight>
122 <Color r="1.0" g="1.0" b="1.0"/>
123 </FontString>
124  
125 <Frame name="TipBuddy_OptionsFrame_UnitsTemplate" inherits="OptionFrameBoxTemplate" virtual="true">
126 <Size>
127 <AbsDimension x="220" y="380"/>
128 </Size>
129 <Anchors>
130 <Anchor point="CENTER">
131 <Offset>
132 <AbsDimension x="40" y="-16"/>
133 </Offset>
134 </Anchor>
135 </Anchors>
136 <Scripts>
137 <OnLoad>
138 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
139 this:SetBackdropColor(0.15, 0.15, 0.15);
140 </OnLoad>
141 </Scripts>
142 </Frame>
143  
144 <Frame name="TipBuddy_OptionsFrame_UnitsOptions_Template" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true" virtual="true">
145 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
146 <EdgeSize>
147 <AbsValue val="22"/>
148 </EdgeSize>
149 <TileSize>
150 <AbsValue val="16"/>
151 </TileSize>
152 <BackgroundInsets>
153 <AbsInset left="5" right="5" top="5" bottom="5"/>
154 </BackgroundInsets>
155 </Backdrop>
156 <Size>
157 <AbsDimension x="180" y="274"/>
158 </Size>
159 <Anchors>
160 <Anchor point="TOP" relativeTo="$parent">
161 <Offset>
162 <AbsDimension x="0" y="-22"/>
163 </Offset>
164 </Anchor>
165 </Anchors>
166 </Frame>
167  
168 <!-- CHECKBOX TEMPLATE -->
169 <CheckButton name="TipBuddy_CheckButtonTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
170 <HitRectInsets>
171 <AbsInset left="0" right="-50" top="0" bottom="0"/>
172 </HitRectInsets>
173 <OnClick>
174 if ( this:GetChecked() ) then
175 PlaySound("igMainMenuOptionCheckBoxOff");
176 else
177 PlaySound("igMainMenuOptionCheckBoxOn");
178 end
179 </OnClick>
180 </CheckButton>
181  
182 <!-- TINY CHECKBOX TEMPLATE -->
183 <CheckButton name="TB_TinyPopupCheckButtonTemplate" virtual="true">
184 <Size>
185 <AbsDimension x="18" y="18"/>
186 </Size>
187 <Layers>
188 <Layer level="ARTWORK">
189 <FontString name="$parentText" inherits="TB_TTGameFontNormalSmall" text="x">
190 <Anchors>
191 <Anchor point="LEFT" relativePoint="RIGHT">
192 <Offset>
193 <AbsDimension x="0" y="0"/>
194 </Offset>
195 </Anchor>
196 </Anchors>
197 </FontString>
198 </Layer>
199 </Layers>
200 <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
201 <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
202 <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
203 <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
204 <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
205 <Scripts>
206 <OnClick>
207 if ( this:GetChecked() ) then
208 PlaySound("igMainMenuOptionCheckBoxOn");
209 else
210 PlaySound("igMainMenuOptionCheckBoxOff");
211 end
212 </OnClick>
213 <OnEnter>
214 if ( this.tooltipText ) then
215 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
216 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
217 end
218 if ( this.tooltipRequirement ) then
219 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
220 GameTooltip:Show();
221 end
222 </OnEnter>
223 <OnLeave>
224 GameTooltip:Hide();
225 </OnLeave>
226 </Scripts>
227 </CheckButton>
228  
229 <!-- POPUP PLUS BUTTON TEMPLATE -->
230 <Frame name="TipBuddy_PlusButton_Template" enableMouse="true" hidden="false" virtual="true">
231 <Size>
232 <AbsDimension x="12" y="12"/>
233 </Size>
234  
235 <Anchors>
236 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
237 <Offset>
238 <AbsDimension x="0" y="0"/>
239 </Offset>
240 </Anchor>
241 </Anchors>
242 <Layers>
243 <Layer level="OVERLAY">
244 <Texture name="$parentArt" file="Interface\Buttons\UI-GuildButton-PublicNote-Up">
245 <Size>
246 <AbsDimension x="12" y="12"/>
247 </Size>
248 <Anchors>
249 <Anchor point="CENTER">
250 <Offset>
251 <AbsDimension x="0" y="0"/>
252 </Offset>
253 </Anchor>
254 </Anchors>
255 </Texture>
256 </Layer>
257 </Layers>
258 </Frame>
259  
260 <!-- TARGET'S TARGET CHECKBOX BUTTON -->
261 <CheckButton name="TipBuddy_TargetTargetCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
262 <Size>
263 <AbsDimension x="24" y="24"/>
264 </Size>
265 <Frames>
266 <Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">
267  
268 <Frames>
269 <Frame name="$parentPopup" enableMouse="true" hidden="true">
270 <Size>
271 <AbsDimension x="120" y="122"/>
272 </Size>
273  
274 <Anchors>
275 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
276 <Offset>
277 <AbsDimension x="0" y="0"/>
278 </Offset>
279 </Anchor>
280 </Anchors>
281  
282 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
283 <EdgeSize>
284 <AbsValue val="16"/>
285 </EdgeSize>
286 <TileSize>
287 <AbsValue val="16"/>
288 </TileSize>
289 <BackgroundInsets>
290 <AbsInset left="5" right="5" top="5" bottom="5"/>
291 </BackgroundInsets>
292 </Backdrop>
293 <HitRectInsets>
294 <AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
295 </HitRectInsets>
296  
297 <Frames>
298 <CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">
299 <Anchors>
300 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
301 <Offset>
302 <AbsDimension x="7" y="-7"/>
303 </Offset>
304 </Anchor>
305 </Anchors>
306 <Scripts>
307 <OnShow>
308 local text = getglobal(this:GetName().."Text");
309 text:SetTextColor(0.3, 0.9, 0.3);
310 </OnShow>
311 <OnEnter>
312 TipBuddyPopup_StopCounting(this:GetParent());
313 </OnEnter>
314 </Scripts>
315 </CheckButton>
316 <CheckButton name="$parent_2" inherits="TB_TinyPopupCheckButtonTemplate">
317 <Anchors>
318 <Anchor point="TOP" relativeTo="$parent_1" relativePoint="BOTTOM">
319 <Offset>
320 <AbsDimension x="0" y="-3"/>
321 </Offset>
322 </Anchor>
323 </Anchors>
324 <Scripts>
325 <OnShow>
326 local text = getglobal(this:GetName().."Text");
327 text:SetTextColor(0.9, 0.2, 0.2);
328 </OnShow>
329 <OnEnter>
330 TipBuddyPopup_StopCounting(this:GetParent());
331 </OnEnter>
332 </Scripts>
333 </CheckButton>
334 <CheckButton name="$parent_3" inherits="TB_TinyPopupCheckButtonTemplate">
335 <Anchors>
336 <Anchor point="TOP" relativeTo="$parent_2" relativePoint="BOTTOM">
337 <Offset>
338 <AbsDimension x="0" y="-3"/>
339 </Offset>
340 </Anchor>
341 </Anchors>
342 <Scripts>
343 <OnShow>
344 local text = getglobal(this:GetName().."Text");
345 text:SetTextColor(0.4, 0.4, 1);
346 </OnShow>
347 <OnEnter>
348 TipBuddyPopup_StopCounting(this:GetParent());
349 </OnEnter>
350 </Scripts>
351 </CheckButton>
352 <CheckButton name="$parent_4" inherits="TB_TinyPopupCheckButtonTemplate">
353 <Anchors>
354 <Anchor point="TOP" relativeTo="$parent_3" relativePoint="BOTTOM">
355 <Offset>
356 <AbsDimension x="0" y="-3"/>
357 </Offset>
358 </Anchor>
359 </Anchors>
360 <Scripts>
361 <OnShow>
362 local text = getglobal(this:GetName().."Text");
363 text:SetTextColor(1, 0.3, 0.8);
364 </OnShow>
365 <OnEnter>
366 TipBuddyPopup_StopCounting(this:GetParent());
367 </OnEnter>
368 </Scripts>
369 </CheckButton>
370 <CheckButton name="$parent_5" inherits="TB_TinyPopupCheckButtonTemplate">
371 <Anchors>
372 <Anchor point="TOP" relativeTo="$parent_4" relativePoint="BOTTOM">
373 <Offset>
374 <AbsDimension x="0" y="-3"/>
375 </Offset>
376 </Anchor>
377 </Anchors>
378 <Scripts>
379 <OnShow>
380 local text = getglobal(this:GetName().."Text");
381 text:SetTextColor(1, 1, 1);
382 </OnShow>
383 <OnEnter>
384 TipBuddyPopup_StopCounting(this:GetParent());
385 </OnEnter>
386 </Scripts>
387 </CheckButton>
388 </Frames>
389 <Scripts>
390 <OnLoad>
391 this:SetBackdropBorderColor(0.8, 0.8, 0.8);
392 this:SetBackdropColor(0.35, 0.35, 0.5, 1);
393 </OnLoad>
394 <OnEnter>
395 TipBuddyPopup_StopCounting(this);
396 </OnEnter>
397 <OnLeave>
398 TipBuddyPopup_StartCounting(this);
399 </OnLeave>
400 <OnHide>
401 --CSG_OptionsBarSml:Show();
402 --PlaySoundFile("Sound\\Interface\\uSpellIconDrop.wav");
403 PlaySound("igMainMenuOptionCheckBoxOn");
404 </OnHide>
405 <OnUpdate>
406 UIDropDownMenu_OnUpdate(arg1);
407 </OnUpdate>
408 </Scripts>
409 </Frame>
410 </Frames>
411 <Scripts>
412 <OnEnter>
413 if ( this:GetParent():GetChecked() ) then
414 local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
415 popframe:Show();
416 PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
417 end
418 </OnEnter>
419 </Scripts>
420 </Frame>
421 </Frames>
422 <Scripts>
423 <OnShow>
424 if ( this:GetChecked() ) then
425 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
426 else
427 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
428 end
429 </OnShow>
430 <OnClick>
431 if ( this:GetChecked() ) then
432 PlaySound("igMainMenuOptionCheckBoxOff");
433 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
434 else
435 PlaySound("igMainMenuOptionCheckBoxOn");
436 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
437 end
438 </OnClick>
439 </Scripts>
440 </CheckButton>
441  
442 <!-- HEALTH/MANA TEXT CHECKBOX BUTTON -->
443 <CheckButton name="TipBuddy_HealthbarCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
444 <Size>
445 <AbsDimension x="24" y="24"/>
446 </Size>
447 <Frames>
448 <Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">
449  
450 <Frames>
451 <Frame name="$parentPopup" enableMouse="true" hidden="true">
452 <Size>
453 <AbsDimension x="120" y="58"/>
454 </Size>
455  
456 <Anchors>
457 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
458 <Offset>
459 <AbsDimension x="-1" y="-1"/>
460 </Offset>
461 </Anchor>
462 </Anchors>
463  
464 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
465 <EdgeSize>
466 <AbsValue val="16"/>
467 </EdgeSize>
468 <TileSize>
469 <AbsValue val="16"/>
470 </TileSize>
471 <BackgroundInsets>
472 <AbsInset left="5" right="5" top="5" bottom="5"/>
473 </BackgroundInsets>
474 </Backdrop>
475 <HitRectInsets>
476 <AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
477 </HitRectInsets>
478  
479 <Frames>
480 <CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">
481 <Anchors>
482 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
483 <Offset>
484 <AbsDimension x="7" y="-7"/>
485 </Offset>
486 </Anchor>
487 </Anchors>
488 <Scripts>
489 <OnShow>
490 local text = getglobal(this:GetName().."Text");
491 text:SetText("Show Health Text");
492 text:SetTextColor(1, 1, 1);
493 </OnShow>
494 <OnEnter>
495 TipBuddyPopup_StopCounting(this:GetParent());
496 </OnEnter>
497 </Scripts>
498 </CheckButton>
499 <CheckButton name="$parent_2" inherits="TB_TinyPopupCheckButtonTemplate">
500 <Anchors>
501 <Anchor point="TOP" relativeTo="$parent_1" relativePoint="BOTTOM">
502 <Offset>
503 <AbsDimension x="0" y="-3"/>
504 </Offset>
505 </Anchor>
506 </Anchors>
507 <Scripts>
508 <OnShow>
509 local text = getglobal(this:GetName().."Text");
510 text:SetText("Show Mana Text");
511 text:SetTextColor(1, 1, 1);
512 </OnShow>
513 <OnEnter>
514 TipBuddyPopup_StopCounting(this:GetParent());
515 </OnEnter>
516 </Scripts>
517 </CheckButton>
518 </Frames>
519 <Scripts>
520 <OnLoad>
521 this:SetBackdropBorderColor(0.8, 0.8, 0.8);
522 this:SetBackdropColor(0.35, 0.35, 0.5);
523 </OnLoad>
524 <OnEnter>
525 TipBuddyPopup_StopCounting(this);
526 </OnEnter>
527 <OnLeave>
528 TipBuddyPopup_StartCounting(this);
529 </OnLeave>
530 <OnHide>
531 --CSG_OptionsBarSml:Show();
532 --PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
533 PlaySound("igMainMenuOptionCheckBoxOn");
534 </OnHide>
535 <OnUpdate>
536 UIDropDownMenu_OnUpdate(arg1);
537 </OnUpdate>
538 </Scripts>
539 </Frame>
540 </Frames>
541 <Scripts>
542 <OnEnter>
543 if ( this:GetParent():GetChecked() ) then
544 local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
545 popframe:Show();
546 PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
547 end
548 </OnEnter>
549 </Scripts>
550 </Frame>
551 </Frames>
552 <Scripts>
553 <OnShow>
554 if ( this:GetChecked() ) then
555 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
556 else
557 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
558 end
559 </OnShow>
560 <OnClick>
561 if ( this:GetChecked() ) then
562 PlaySound("igMainMenuOptionCheckBoxOff");
563 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
564 else
565 PlaySound("igMainMenuOptionCheckBoxOn");
566 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
567 end
568 </OnClick>
569 </Scripts>
570 </CheckButton>
571  
572 <!-- PVP TEXT CHECKBOX BUTTON -->
573 <CheckButton name="TipBuddy_PVPCheckbox_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
574 <Size>
575 <AbsDimension x="24" y="24"/>
576 </Size>
577 <Frames>
578 <Frame name="$parent_Plus" inherits="TipBuddy_PlusButton_Template">
579  
580 <Frames>
581 <Frame name="$parentPopup" enableMouse="true" hidden="true">
582 <Size>
583 <AbsDimension x="120" y="30"/>
584 </Size>
585  
586 <Anchors>
587 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
588 <Offset>
589 <AbsDimension x="-1" y="-1"/>
590 </Offset>
591 </Anchor>
592 </Anchors>
593  
594 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
595 <EdgeSize>
596 <AbsValue val="16"/>
597 </EdgeSize>
598 <TileSize>
599 <AbsValue val="16"/>
600 </TileSize>
601 <BackgroundInsets>
602 <AbsInset left="5" right="5" top="5" bottom="5"/>
603 </BackgroundInsets>
604 </Backdrop>
605 <HitRectInsets>
606 <AbsInset left="-2" right="-2" top="-2" bottom="-2"/>
607 </HitRectInsets>
608  
609 <Frames>
610 <CheckButton name="$parent_1" inherits="TB_TinyPopupCheckButtonTemplate">
611 <Anchors>
612 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
613 <Offset>
614 <AbsDimension x="7" y="-7"/>
615 </Offset>
616 </Anchor>
617 </Anchors>
618 <Scripts>
619 <OnShow>
620 local text = getglobal(this:GetName().."Text");
621 text:SetText("Show Text Only");
622 text:SetTextColor(1, 1, 1);
623 </OnShow>
624 <OnEnter>
625 TipBuddyPopup_StopCounting(this:GetParent());
626 </OnEnter>
627 </Scripts>
628 </CheckButton>
629 </Frames>
630 <Scripts>
631 <OnLoad>
632 this:SetBackdropBorderColor(0.8, 0.8, 0.8);
633 this:SetBackdropColor(0.35, 0.35, 0.5);
634 </OnLoad>
635 <OnEnter>
636 TipBuddyPopup_StopCounting(this);
637 </OnEnter>
638 <OnLeave>
639 TipBuddyPopup_StartCounting(this);
640 </OnLeave>
641 <OnHide>
642 --PlaySoundFile("Sound\\Interface\\SheathMetal.wav");
643 PlaySound("igMainMenuOptionCheckBoxOn");
644 </OnHide>
645 <OnUpdate>
646 UIDropDownMenu_OnUpdate(arg1);
647 </OnUpdate>
648 </Scripts>
649 </Frame>
650 </Frames>
651 <Scripts>
652 <OnEnter>
653 if ( this:GetParent():GetChecked() ) then
654 local popframe = getglobal(this:GetParent():GetName().."_PlusPopup");
655 popframe:Show();
656 PlaySoundFile("Sound\\Interface\\iDeselectTarget.wav");
657 end
658 </OnEnter>
659 </Scripts>
660 </Frame>
661 </Frames>
662 <Scripts>
663 <OnShow>
664 if ( this:GetChecked() ) then
665 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
666 else
667 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
668 end
669 </OnShow>
670 <OnClick>
671 if ( this:GetChecked() ) then
672 PlaySound("igMainMenuOptionCheckBoxOff");
673 getglobal(this:GetName().."_PlusArt"):SetVertexColor(1, 1, 1);
674 else
675 PlaySound("igMainMenuOptionCheckBoxOn");
676 getglobal(this:GetName().."_PlusArt"):SetVertexColor(0.4, 0.4, 0.4);
677 end
678 </OnClick>
679 </Scripts>
680 </CheckButton>
681  
682 <!-- CHECKBOX WITH OPTIONAL TEXT BUTTON -->
683 <CheckButton name="TipBuddy_CheckboxText_Template" inherits="TipBuddy_CheckButtonTemplate" virtual="true">
684 <Size>
685 <AbsDimension x="24" y="24"/>
686 </Size>
687 <Frames>
688 <CheckButton name="$parentTiny1" inherits="TB_TinyPopupCheckButtonTemplate">
689 <Anchors>
690 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
691 <Offset>
692 <AbsDimension x="-2" y="4"/>
693 </Offset>
694 </Anchor>
695 </Anchors>
696 <Scripts>
697 <OnLoad>
698 local text = getglobal(this:GetName().."Text");
699 text:SetText("T");
700 text:SetTextHeight(7);
701 </OnLoad>
702 </Scripts>
703 </CheckButton>
704 </Frames>
705 </CheckButton>
706  
707 <!-- TEMPLATE FOR SLIDERS THAT HAVE A TEXT UPDATE SHOWING THE CURRENT STATE -->
708 <Slider name="TipBuddy_SliderWithText_Template" inherits="OptionsSliderTemplate" virtual="true">
709 <Layers>
710 <Layer level="ARTWORK">
711 <FontString name="$parentTextUpdate" inherits="GameFontNormalSmall" text="XXX">
712 <Anchors>
713 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
714 <Offset>
715 <AbsDimension x="2" y="0"/>
716 </Offset>
717 </Anchor>
718 </Anchors>
719 </FontString>
720 </Layer>
721 </Layers>
722 <Scripts>
723 <OnUpdate>
724 if ( this.updatetext ) then
725 if ( (this:GetName() == ( "TipBuddy_OptionsFrame_Slider2" ))
726 or (this:GetName() == ( "TipBuddy_OptionsFrame_Slider3" )) ) then
727 this.updatetext:SetText( format("%.1f", ( this:GetValue() ) ) );
728 elseif (this:GetName() == ( "TipBuddy_OptionsFrame_Slider6" )) then
729 this.updatetext:SetText( format("%.2f", ( this:GetValue() ) ) );
730 else
731 this.updatetext:SetText( this:GetValue() );
732 end
733 return;
734 end
735 this.updatetext = getglobal( this:GetName().."TextUpdate");
736 </OnUpdate>
737 </Scripts>
738 </Slider>
739 <Slider name="TipBuddy_SliderWithText_Template2" orientation="HORIZONTAL" virtual="true" enableMouse="true">
740 <Size>
741 <AbsDimension x="128" y="17"/>
742 </Size>
743 <HitRectInsets>
744 <AbsInset left="0" right="0" top="-10" bottom="-10"/>
745 </HitRectInsets>
746 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
747 <EdgeSize>
748 <AbsValue val="8"/>
749 </EdgeSize>
750 <TileSize>
751 <AbsValue val="8"/>
752 </TileSize>
753 <BackgroundInsets>
754 <AbsInset left="3" right="3" top="6" bottom="6"/>
755 </BackgroundInsets>
756 </Backdrop>
757 <Layers>
758 <Layer level="ARTWORK">
759 <FontString name="$parentText" inherits="TBGameFontNormalSmall">
760 <Anchors>
761 <Anchor point="BOTTOM" relativePoint="TOP">
762 <Offset>
763 <AbsDimension x="0" y="-1"/>
764 </Offset>
765 </Anchor>
766 </Anchors>
767 </FontString>
768 <FontString name="$parentLow" inherits="TBGameFontHighlightSmall" text="LOW">
769 <Anchors>
770 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
771 <Offset>
772 <AbsDimension x="2" y="3"/>
773 </Offset>
774 </Anchor>
775 </Anchors>
776 </FontString>
777 <FontString name="$parentHigh" inherits="TBGameFontHighlightSmall" text="HIGH">
778 <Anchors>
779 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT">
780 <Offset>
781 <AbsDimension x="-2" y="3"/>
782 </Offset>
783 </Anchor>
784 </Anchors>
785 </FontString>
786 </Layer>
787 <Layer level="ARTWORK">
788 <FontString name="$parentTextUpdate" inherits="TBGameFontNormal" text="XXX">
789 <Anchors>
790 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
791 <Offset>
792 <AbsDimension x="5" y="0.5"/>
793 </Offset>
794 </Anchor>
795 </Anchors>
796 </FontString>
797 </Layer>
798 </Layers>
799 <Scripts>
800 <OnEnter>
801 if ( this.tooltipText ) then
802 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
803 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
804 end
805 if ( this.tooltipRequirement ) then
806 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
807 GameTooltip:Show();
808 end
809 </OnEnter>
810 <OnLeave>
811 GameTooltip:Hide();
812 </OnLeave>
813 <OnUpdate>
814 if ( this.updatetext ) then
815 --this.updatetext:SetText( format("%.1f", ( this:GetValue() ) ) );
816 this.updatetext:SetText( this:GetValue() );
817 return;
818 end
819 this.updatetext = getglobal( this:GetName().."TextUpdate");
820 </OnUpdate>
821 </Scripts>
822 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
823 <Size>
824 <AbsDimension x="32" y="32"/>
825 </Size>
826 </ThumbTexture>
827 </Slider>
828  
829 <!-- BUFF TEMPLATE -->
830 <Frame name="TipBuddy_Buff_Template" hidden="true" virtual="true">
831 <Size>
832 <AbsDimension x="14" y="14"/>
833 </Size>
834 <Layers>
835 <Layer level="BACKGROUND">
836 <Texture name="$parentIcon" file="Interface\Icons\INV_MISC_Book_02">
837 <Size>
838 <AbsDimension x="14" y="14"/>
839 </Size>
840 <Anchors>
841 <Anchor point="CENTER">
842 <Offset>
843 <AbsDimension x="0" y="0"/>
844 </Offset>
845 </Anchor>
846 </Anchors>
847 </Texture>
848 </Layer>
849 </Layers>
850 </Frame>
851  
852  
853 <!-- COLOR PICKER BUTTON TEMPLATE -->
854 <Button name="TipBuddy_ColorPickerButton_Template" frameStrata="HIGH" virtual="true">
855 <Size>
856 <AbsDimension x="22" y="22"/>
857 </Size>
858 <Layers>
859 <Layer level="BACKGROUND">
860 <Texture name="$parentSwatchBg">
861 <Size>
862 <AbsDimension x="22" y="22"/>
863 </Size>
864 <Anchors>
865 <Anchor point="CENTER">
866 <Offset>
867 <AbsDimension x="0" y="0"/>
868 </Offset>
869 </Anchor>
870 </Anchors>
871 <Color r="1" g="1" b="1"/>
872 </Texture>
873 </Layer>
874 <Layer level="ARTWORK">
875 <FontString name="$parentText" inherits="GameFontNormalSmall" text="XXX">
876 <Anchors>
877 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
878 <Offset>
879 <AbsDimension x="2" y="0"/>
880 </Offset>
881 </Anchor>
882 </Anchors>
883 </FontString>
884 </Layer>
885 </Layers>
886 <Scripts>
887 <OnShow>
888 getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
889 </OnShow>
890 <OnClick>
891 TipBuddy_Background_ColorPick( this );
892 --TB_AddMessage("clicking button: "..this:GetName());
893 </OnClick>
894 <OnEnter>
895 getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
896 if ( this.tooltipText ) then
897 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
898 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
899 end
900 if ( this.tooltipRequirement ) then
901 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
902 GameTooltip:Show();
903 end
904 </OnEnter>
905 <OnLeave>
906 <!-- local type = TipBuddy_GetColorPicker_GetType( this:GetName() ); -->
907 getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
908 GameTooltip:Hide();
909 </OnLeave>
910 </Scripts>
911 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
912 <Size>
913 <AbsDimension x="24" y="24"/>
914 </Size>
915 <Anchors>
916 <Anchor point="CENTER">
917 <Offset>
918 <AbsDimension x="0" y="0"/>
919 </Offset>
920 </Anchor>
921 </Anchors>
922 </NormalTexture>
923 </Button>
924  
925 <!-- COLOR PICKER BUTTON TEMPLATE SMALL-->
926 <Button name="TipBuddy_ColorPickerButtonSml_Template" virtual="true">
927 <Size>
928 <AbsDimension x="18" y="18"/>
929 </Size>
930 <Layers>
931 <Layer level="BACKGROUND">
932 <Texture name="$parentSwatchBg">
933 <Size>
934 <AbsDimension x="16" y="16"/>
935 </Size>
936 <Anchors>
937 <Anchor point="CENTER">
938 <Offset>
939 <AbsDimension x="0" y="0"/>
940 </Offset>
941 </Anchor>
942 </Anchors>
943 <Color r="1" g="1" b="1"/>
944 </Texture>
945 </Layer>
946 <Layer level="ARTWORK">
947 <FontString name="$parentText" inherits="GameFontNormalSmall" text="XXX">
948 <Anchors>
949 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
950 <Offset>
951 <AbsDimension x="2" y="0"/>
952 </Offset>
953 </Anchor>
954 </Anchors>
955 </FontString>
956 </Layer>
957 </Layers>
958 <Scripts>
959 <OnLoad>
960 getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
961 </OnLoad>
962 <OnClick>
963 TipBuddy_Text_ColorPick( this );
964 </OnClick>
965 <OnEnter>
966 getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
967 if ( this.tooltipText ) then
968 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
969 GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
970 end
971 if ( this.tooltipRequirement ) then
972 GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
973 GameTooltip:Show();
974 end
975 </OnEnter>
976 <OnLeave>
977 <!-- local type = TipBuddy_GetColorPicker_GetType( this:GetName() ); -->
978 getglobal(this:GetName().."SwatchBg"):SetVertexColor(0.5, 0.5, 0.5);
979 GameTooltip:Hide();
980 </OnLeave>
981 </Scripts>
982 <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
983 <Size>
984 <AbsDimension x="18" y="18"/>
985 </Size>
986 <Anchors>
987 <Anchor point="CENTER">
988 <Offset>
989 <AbsDimension x="0" y="0"/>
990 </Offset>
991 </Anchor>
992 </Anchors>
993 </NormalTexture>
994 </Button>
995  
996 <!-- EDITBOX TEMPLATE 1 (first line)-->
997 <EditBox name="TipBuddy_EditBox_Template1" letters="128" enableMouse="true" maxLines="1" virtual="true">
998 <Size>
999 <AbsDimension x="146" y="20"/>
1000 </Size>
1001 <Frames>
1002 <Frame frameStrata="MEDIUM">
1003 <Size>
1004 <AbsDimension x="160" y="129"/>
1005 </Size>
1006 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1007 <EdgeSize>
1008 <AbsValue val="16"/>
1009 </EdgeSize>
1010 <TileSize>
1011 <AbsValue val="16"/>
1012 </TileSize>
1013 <BackgroundInsets>
1014 <AbsInset left="4" right="4" top="4" bottom="4"/>
1015 </BackgroundInsets>
1016 </Backdrop>
1017 <Anchors>
1018 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
1019 <Offset>
1020 <AbsDimension x="-6" y="2" />
1021 </Offset>
1022 </Anchor>
1023 </Anchors>
1024 <Scripts>
1025 <OnLoad>
1026 this:SetBackdropColor(0.2, 0.2, 0.2);
1027 </OnLoad>
1028 </Scripts>
1029 </Frame>
1030 </Frames>
1031 <Anchors>
1032 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
1033 <Offset>
1034 <AbsDimension x="24" y="-36" />
1035 </Offset>
1036 </Anchor>
1037 <Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT" relativeTo="$parent">
1038 <Offset>
1039 <AbsDimension x="170" y="-58" />
1040 </Offset>
1041 </Anchor>
1042 </Anchors>
1043 <Scripts>
1044 <OnClick>
1045 this:SetFocus();
1046 </OnClick>
1047 <OnEnterPressed>
1048 getglobal("TB_EditBox_0"..this:GetID().."_2"):SetFocus();
1049 this:ClearFocus();
1050 </OnEnterPressed>
1051 <OnEscapePressed>
1052 this:ClearFocus();
1053 </OnEscapePressed>
1054 <OnEditFocusLost>
1055 this:HighlightText(0, 0);
1056 </OnEditFocusLost>
1057 <!-- <OnEditFocusGained>
1058 this:HighlightText();
1059 </OnEditFocusGained> -->
1060 </Scripts>
1061 <FontString inherits="GameTooltipText">
1062 <FontHeight>
1063 <AbsValue val="14"/>
1064 </FontHeight>
1065 <Color r="1.0" g="1.0" b="1.0"/>
1066 </FontString>
1067 </EditBox>
1068  
1069 <!-- EDITBOX TEMPLATE 2 -->
1070 <EditBox name="TipBuddy_EditBox_Template2" letters="1024" multiLine="true" enableMouse="true" historyLines="7" virtual="true">
1071 <Size>
1072 <AbsDimension x="146" y="100"/>
1073 </Size>
1074 <!-- <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1075 <EdgeSize>
1076 <AbsValue val="16"/>
1077 </EdgeSize>
1078 <TileSize>
1079 <AbsValue val="16"/>
1080 </TileSize>
1081 <BackgroundInsets>
1082 <AbsInset left="2" right="2" top="2" bottom="2"/>
1083 </BackgroundInsets>
1084 </Backdrop> -->
1085 <Anchors>
1086 <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent">
1087 <Offset>
1088 <AbsDimension x="24" y="-54" />
1089 </Offset>
1090 </Anchor>
1091 <Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT" relativeTo="$parent">
1092 <Offset>
1093 <AbsDimension x="170" y="-166" />
1094 </Offset>
1095 </Anchor>
1096 </Anchors>
1097 <Scripts>
1098 <OnClick>
1099 this:SetFocus();
1100 </OnClick>
1101 <OnEscapePressed>
1102 this:ClearFocus();
1103 </OnEscapePressed>
1104 <OnEditFocusLost>
1105 this:HighlightText(0, 0);
1106 </OnEditFocusLost>
1107 <!-- <OnEditFocusGained>
1108 this:HighlightText();
1109 </OnEditFocusGained> -->
1110 </Scripts>
1111 <FontString inherits="GameTooltipText">
1112 <FontHeight>
1113 <AbsValue val="11"/>
1114 </FontHeight>
1115 <Color r="1.0" g="1.0" b="1.0"/>
1116 </FontString>
1117 </EditBox>
1118  
1119 <!-- TOOLTIP STYLE DROPDOWN TEMPLATE -->
1120 <Frame name="TB_TipStyleDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
1121 <Anchors>
1122 <Anchor point="TOP" relativePoint="TOP">
1123 <Offset>
1124 <AbsDimension x="0" y="-8"/>
1125 </Offset>
1126 </Anchor>
1127 </Anchors>
1128 <Layers>
1129 <Layer level="BACKGROUND">
1130 <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="">
1131 <Anchors>
1132 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
1133 <Offset>
1134 <AbsDimension x="18" y="2"/>
1135 </Offset>
1136 </Anchor>
1137 </Anchors>
1138 </FontString>
1139 </Layer>
1140 </Layers>
1141 </Frame>
1142  
1143 <!-- BACKDROP COLOR TEMPLATE -->
1144 <Frame name="TB_BDColorDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
1145 <Size>
1146 <AbsDimension x="20" y="22"/>
1147 </Size>
1148 <Anchors>
1149 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
1150 <Offset>
1151 <AbsDimension x="-8" y="-82"/>
1152 </Offset>
1153 </Anchor>
1154 </Anchors>
1155 <Layers>
1156 <Layer level="BACKGROUND">
1157 <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Backdrop Color">
1158 <Anchors>
1159 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
1160 <Offset>
1161 <AbsDimension x="18" y="2"/>
1162 </Offset>
1163 </Anchor>
1164 </Anchors>
1165 </FontString>
1166 </Layer>
1167 </Layers>
1168 </Frame>
1169  
1170 <!-- BACKDROPBORDER COLOR TEMPLATE -->
1171 <Frame name="TB_BDBColorDropDown_Template" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
1172 <Size>
1173 <AbsDimension x="20" y="22"/>
1174 </Size>
1175 <Anchors>
1176 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
1177 <Offset>
1178 <AbsDimension x="-8" y="-42"/>
1179 </Offset>
1180 </Anchor>
1181 </Anchors>
1182 <Layers>
1183 <Layer level="BACKGROUND">
1184 <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Border Color">
1185 <Anchors>
1186 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
1187 <Offset>
1188 <AbsDimension x="18" y="2"/>
1189 </Offset>
1190 </Anchor>
1191 </Anchors>
1192 </FontString>
1193 </Layer>
1194 </Layers>
1195 </Frame>
1196  
1197 <!-- END TEMPLATES -->
1198  
1199  
1200 <!-- START TIPBUDDY -->
1201  
1202 <!-- /script DEFAULT_CHAT_FRAME:AddMessage(TipBuddy_Header_Frame:GetID()); -->
1203 <!-- TIPBUDDY ANCHOR HEADER -->
1204 <Button name="TipBuddy_Header_Frame" frameStrata="HIGH" movable="true" hidden="true" parent="UIParent" enableMouse="true">
1205 <Size>
1206 <AbsDimension x="128" y="20"/>
1207 </Size>
1208 <Anchors>
1209 <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="BOTTOMLEFT">
1210 <Offset>
1211 <AbsDimension x="202" y="400"/>
1212 </Offset>
1213 </Anchor>
1214 </Anchors>
1215 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1216 <EdgeSize>
1217 <AbsValue val="8"/>
1218 </EdgeSize>
1219 <TileSize>
1220 <AbsValue val="8"/>
1221 </TileSize>
1222 <BackgroundInsets>
1223 <AbsInset left="2" right="2" top="2" bottom="2"/>
1224 </BackgroundInsets>
1225 </Backdrop>
1226 <Layers>
1227 <Layer level="OVERLAY">
1228 <FontString name="TipBuddy_Header_Text" inherits="ToolTipBuddyText" text="TipBuddyAnchor" justifyH="LEFT">
1229 <Size>
1230 <AbsDimension x="128" y="24" />
1231 </Size>
1232 <Anchors>
1233 <Anchor point="LEFT">
1234 <Offset>
1235 <AbsDimension x="4" y="0"/>
1236 </Offset>
1237 </Anchor>
1238 </Anchors>
1239 </FontString>
1240 </Layer>
1241 <Layer level="OVERLAY">
1242 <FontString name="$parentText" inherits="ToolTipBuddyText" hidden="true">
1243 <Size>
1244 <AbsDimension x="128" y="24" />
1245 </Size>
1246 <Anchors>
1247 <Anchor point="LEFT"/>
1248 </Anchors>
1249 </FontString>
1250 </Layer>
1251 </Layers>
1252 <Frames>
1253 <Button name="TipBuddy_Header_CloseButton">
1254 <Size>
1255 <AbsDimension x="24" y="24"/>
1256 </Size>
1257 <Anchors>
1258 <Anchor point="RIGHT">
1259 <Offset>
1260 <AbsDimension x="2" y="0"/>
1261 </Offset>
1262 </Anchor>
1263 </Anchors>
1264 <Scripts>
1265 <OnLoad>
1266 this:SetAlpha( 0.6 );
1267 </OnLoad>
1268 <OnClick>
1269 HideUIPanel(TipBuddy_Header_Frame);
1270 </OnClick>
1271 <OnEnter>
1272 TipBuddy_Header_Frame:SetAlpha( 0.9 );
1273 GameTooltip_SetDefaultAnchor(GameTooltip, this);
1274 GameTooltip:SetText(TB_TIPBUDDYANCHORCLOSE_TOOLTIP, nil, nil, nil, nil, 1);
1275 </OnEnter>
1276 <OnLeave>
1277 TipBuddy_Header_Frame:SetAlpha( 0.1 );
1278 GameTooltip:Hide();
1279 </OnLeave>
1280 </Scripts>
1281 <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
1282 <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
1283 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
1284 </Button>
1285 <Frame name="TipBuddy_Header_FrameDropDown" inherits="UIDropDownMenuTemplate" hidden="true" enableMouse="true">
1286 <Anchors>
1287 <Anchor point="BOTTOMLEFT">
1288 <Offset>
1289 <AbsDimension x="0" y="0"/>
1290 </Offset>
1291 </Anchor>
1292 </Anchors>
1293 <Scripts>
1294 <OnLoad>
1295 TipBuddy_AnchorDropDown_OnLoad();
1296 </OnLoad>
1297 </Scripts>
1298 </Frame>
1299 </Frames>
1300 <Scripts>
1301 <OnLoad>
1302 this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
1303 this:RegisterForDrag("LeftButton");
1304 this:SetBackdropBorderColor(0.1, 0.1, 0.1);
1305 this:SetBackdropColor(0.09, 0.09, 0.19);
1306 this:SetAlpha( 0.1 );
1307 </OnLoad>
1308 <OnEnter>
1309 TipBuddy.anchor, TipBuddy.fanchor, TipBuddy.offset = TipBuddy_GetFrameAnchorPos();
1310 if (TipBuddy_SavedVars["general"].anchored == 1) then
1311 TipBuddy_Parent_Frame:SetPoint(TipBuddy.anchor, "TipBuddy_Header_Frame", TipBuddy.fanchor, 0, 0);
1312 end
1313 this:SetAlpha( 0.9 );
1314 GameTooltip_SetDefaultAnchor(GameTooltip, TipBuddy_Parent_Frame);
1315 GameTooltip:SetText(TB_TIPBUDDYANCHOR_TOOLTIP, nil, nil, nil, nil, 1);
1316 TipBuddy_SavedVars["general"].framepos_L = TipBuddy_Header_Frame:GetLeft();
1317 TipBuddy_SavedVars["general"].framepos_T = TipBuddy_Header_Frame:GetTop();
1318 </OnEnter>
1319 <OnLeave>
1320 this:SetAlpha( 0.1 );
1321 GameTooltip:Hide();
1322 </OnLeave>
1323 <OnClick>
1324 PlaySound("UChatScrollButton");
1325 GameTooltip:Hide();
1326 </OnClick>
1327 <OnMouseDown>
1328 TipBuddy_OnMouseDown(arg1);
1329 </OnMouseDown>
1330 <OnMouseUp>
1331 TipBuddy_OnMouseUp(arg1);
1332 </OnMouseUp>
1333 <OnShow>
1334 this:SetAlpha(0.75);
1335 UIFrameFlash(TipBuddy_Header_FlashFrame, 0.3, 2.5, 2.9, nil, 0.1, 0);
1336 TipBuddy_SavedVars["general"].anchor_vis = 1;
1337 </OnShow>
1338 <OnHide>
1339 TipBuddy_SavedVars["general"].anchor_vis = 0;
1340 </OnHide>
1341 </Scripts>
1342 </Button>
1343 <!-- TIPBUDDY ANCHOR FLASH -->
1344 <Frame name="TipBuddy_Header_FlashFrame" frameStrata="HIGH" hidden="true" parent="TipBuddy_Header_Frame">
1345 <Size>
1346 <AbsDimension x="128" y="128"/>
1347 </Size>
1348 <Anchors>
1349 <Anchor point="LEFT" relativeTo="TipBuddy_Header_Frame" relativePoint="LEFT">
1350 <Offset>
1351 <AbsDimension x="8" y="0"/>
1352 </Offset>
1353 </Anchor>
1354 </Anchors>
1355 <Layers>
1356 <Layer level="OVERLAY">
1357 <Texture name="$parentShine" file="Interface\Cooldown\star4" alphaMode="ADD">
1358 <Size>
1359 <AbsDimension x="120" y="128"/>
1360 </Size>
1361 <Anchors>
1362 <Anchor point="CENTER" relativeTo="$parent" relativePoint="LEFT">
1363 <Offset>
1364 <AbsDimension x="8" y="0"/>
1365 </Offset>
1366 </Anchor>
1367 </Anchors>
1368 </Texture>
1369 </Layer>
1370 </Layers>
1371 <Scripts>
1372 <OnLoad>
1373 TipBuddy_Header_FlashFrameShine:SetVertexColor( 0.5, 0.7, 1, 1);
1374 </OnLoad>
1375 </Scripts>
1376 </Frame>
1377  
1378 <!-- Parent Tooltip Frame -->
1379 <Frame name="TipBuddy_Parent_Frame" frameStrata="TOOLTIP" parent="UIParent">
1380 <Size>
1381 <AbsDimension x="2" y="2"/>
1382 </Size>
1383 <Scripts>
1384 <OnLoad>
1385 this:RegisterEvent("UPDATE_MOUSEOVER_UNIT");
1386 TipBuddy_OnLoad();
1387 </OnLoad>
1388 <OnEvent>
1389 TipBuddy_OnEvent();
1390 </OnEvent>
1391 <OnUpdate>
1392 if (GameTooltip:IsVisible() or TipBuddyTooltip:IsVisible() or TipBuddy_Main_Frame:IsVisible()) then
1393 TipBuddy_ParentTip_OnUpdate();
1394 end
1395 </OnUpdate>
1396 </Scripts>
1397 </Frame>
1398  
1399 <GameTooltip name="TipBuddyTooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate">
1400 <Scripts>
1401 <OnLoad>
1402 GameTooltip_OnLoad();
1403 this:SetOwner(TipBuddy_Parent_Frame, "ANCHOR_RIGHT");
1404 </OnLoad>
1405 <OnEvent>
1406  
1407 </OnEvent>
1408 <OnShow>
1409 --TB_AddMessage("showing");
1410 </OnShow>
1411 <OnHide>
1412 GameTooltip_OnHide();
1413 </OnHide>
1414 <OnUpdate>
1415 TipBuddyTooltip_OnUpdate();
1416 </OnUpdate>
1417 </Scripts>
1418 </GameTooltip>
1419  
1420 <Frame name="TipBuddy_Main_Frame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Parent_Frame">
1421 <Size>
1422 <AbsDimension x="62" y="32"/>
1423 </Size>
1424  
1425 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
1426 <!-- bgFile="Interface\\AddOns\\TipBuddy\\gfx\\UI-Tooltip-Background" -->
1427 <!-- bgFile="Interface\Tooltips\UI-Tooltip-Background" -->
1428 <EdgeSize>
1429 <AbsValue val="8"/>
1430 </EdgeSize>
1431 <TileSize>
1432 <AbsValue val="16"/>
1433 </TileSize>
1434 <BackgroundInsets>
1435 <AbsInset left="2" right="2" top="2" bottom="2"/>
1436 </BackgroundInsets>
1437 </Backdrop>
1438 <Scripts>
1439 <OnShow>
1440 TipBuddy_SetFrame_Anchor( this );
1441 </OnShow>
1442 <OnHide>
1443 TipBuddy_SetFrame_BackgroundColor();
1444 TipBuddy.compactvis = nil;
1445 </OnHide>
1446 <OnUpdate>
1447 TipBuddy_MainTip_OnUpdate();
1448 </OnUpdate>
1449 </Scripts>
1450 <Frames>
1451 <!-- HEALTH / MANA -->
1452 <!-- <Frame name="TipBuddy_TargetHealthManaFrame" parent="TipBuddy_Main_Frame">
1453 <Size>
1454 <AbsDimension x="64" y="4"/>
1455 </Size>
1456  
1457 <Anchors>
1458 <Anchor point="CENTER" relativeTo="TipBuddy_Main_Frame" relativePoint="CENTER">
1459 <Offset>
1460 <AbsDimension x="0" y="0"/>
1461 </Offset>
1462 </Anchor>
1463 </Anchors>
1464 <Scripts>
1465 <OnLoad>
1466 TipBuddy_OnLoad("mouseover");
1467 </OnLoad>
1468 </Scripts>
1469 <Frames> -->
1470 <StatusBar name="TipBuddy_TargetFrameHealthBar" enableMouse="false" inherits="TextStatusBar" parent="TipBuddy_Main_Frame">
1471 <Size>
1472 <AbsDimension x="64" y="4"/>
1473 </Size>
1474 <Anchors>
1475 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="BOTTOMLEFT">
1476 <Offset>
1477 <AbsDimension x="0" y="-3"/>
1478 </Offset>
1479 </Anchor>
1480 </Anchors>
1481 <Scripts>
1482 <OnLoad>
1483 this.unit = "mouseover";
1484 this:RegisterEvent("UNIT_HEALTH");
1485 this:RegisterEvent("UNIT_MAXHEALTH");
1486 TextStatusBar_Initialize();
1487 this.textLockable = 1;
1488 </OnLoad>
1489 <OnEvent>
1490 UnitFrameHealthBar_Update(this, arg1);
1491 </OnEvent>
1492 <OnValueChanged>
1493 UnitFrameHealthBar_OnValueChanged(arg1);
1494 </OnValueChanged>
1495 </Scripts>
1496 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
1497 </StatusBar>
1498  
1499 <StatusBar name="TipBuddy_TargetFrameManaBar" inherits="TextStatusBar" parent="TipBuddy_Main_Frame">
1500 <Size>
1501 <AbsDimension x="64" y="4"/>
1502 </Size>
1503 <Anchors>
1504 <Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetFrameHealthBar" relativePoint="BOTTOMLEFT">
1505 <Offset>
1506 <AbsDimension x="0" y="-3.5"/>
1507 </Offset>
1508 </Anchor>
1509 </Anchors>
1510 <Scripts>
1511 <OnLoad>
1512 this.unit = "mouseover";
1513 this:RegisterEvent("UNIT_MANA");
1514 this:RegisterEvent("UNIT_RAGE");
1515 this:RegisterEvent("UNIT_FOCUS");
1516 this:RegisterEvent("UNIT_ENERGY");
1517 this:RegisterEvent("UNIT_HAPPINESS");
1518 this:RegisterEvent("UNIT_MAXMANA");
1519 this:RegisterEvent("UNIT_MAXRAGE");
1520 this:RegisterEvent("UNIT_MAXFOCUS");
1521 this:RegisterEvent("UNIT_MAXENERGY");
1522 this:RegisterEvent("UNIT_MAXHAPPINESS");
1523 this:RegisterEvent("UNIT_DISPLAYPOWER");
1524 TextStatusBar_Initialize();
1525 this.textLockable = 1;
1526 </OnLoad>
1527 <OnEvent>
1528 UnitFrameManaBar_Update(this, arg1);
1529 </OnEvent>
1530 </Scripts>
1531 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
1532 <BarColor r="0" g="0" b="1.0"/>
1533 </StatusBar>
1534 <Frame name="TipBuddy_HealthText" frameStrata="TOOLTIP" parent="TipBuddy_TargetFrameHealthBar">
1535 <Size>
1536 <AbsDimension x="38" y="38"/>
1537 </Size>
1538 <Anchors>
1539 <Anchor point="CENTER" relativeTo="TipBuddy_TargetFrameHealthBar" relativePoint="CENTER">
1540 <Offset>
1541 <AbsDimension x="0" y="0.5"/>
1542 </Offset>
1543 </Anchor>
1544 </Anchors>
1545 <Layers>
1546 <Layer level="OVERLAY">
1547 <FontString name="$parentText" inherits="TB_HealthText" justifyH="CENTER">
1548 <Size>
1549 <AbsDimension x="256" y="12" />
1550 </Size>
1551 <Anchors>
1552 <Anchor point="CENTER">
1553 <Offset>
1554 <AbsDimension x="0" y="0"/>
1555 </Offset>
1556 </Anchor>
1557 </Anchors>
1558 </FontString>
1559 </Layer>
1560 </Layers>
1561 </Frame>
1562 <Frame name="TipBuddy_ManaText" frameStrata="TOOLTIP" parent="TipBuddy_TargetFrameManaBar">
1563 <Size>
1564 <AbsDimension x="38" y="38"/>
1565 </Size>
1566 <Anchors>
1567 <Anchor point="CENTER" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="CENTER">
1568 <Offset>
1569 <AbsDimension x="0" y="0"/>
1570 </Offset>
1571 </Anchor>
1572 </Anchors>
1573 <Layers>
1574 <Layer level="OVERLAY">
1575 <FontString name="$parentText" inherits="TB_ManaText" justifyH="CENTER">
1576 <Size>
1577 <AbsDimension x="256" y="8" />
1578 </Size>
1579 <Anchors>
1580 <Anchor point="CENTER">
1581 <Offset>
1582 <AbsDimension x="0" y="0"/>
1583 </Offset>
1584 </Anchor>
1585 </Anchors>
1586 </FontString>
1587 </Layer>
1588 </Layers>
1589 </Frame>
1590 <!-- </Frames>
1591 </Frame> -->
1592 </Frames>
1593 <Layers>
1594  
1595 <!-- NAME -->
1596 <Layer level="OVERLAY">
1597 <FontString name="TipBuddy_TargetName_Text" inherits="ToolTipBuddyText" text="Unknown" justifyH="LEFT">
1598 <Size>
1599 <AbsDimension x="400" y="12" />
1600 </Size>
1601 <Anchors>
1602 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
1603 <Offset>
1604 <AbsDimension x="1" y="-1"/>
1605 </Offset>
1606 </Anchor>
1607 </Anchors>
1608 </FontString>
1609 <FontString name="TipBuddy_TargetName_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
1610 <Size>
1611 <AbsDimension x="400" y="12" />
1612 </Size>
1613 <Anchors>
1614 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPRIGHT">
1615 <Offset>
1616 <AbsDimension x="-2" y="-1"/>
1617 </Offset>
1618 </Anchor>
1619 </Anchors>
1620 </FontString>
1621 </Layer>
1622  
1623 <!-- GUILD -->
1624  
1625 <Layer level="OVERLAY">
1626 <FontString name="TipBuddy_TargetGuild_Text" inherits="ToolTipBuddyText" text="None" justifyH="LEFT">
1627 <Size>
1628 <AbsDimension x="256" y="9" />
1629 </Size>
1630 <Anchors>
1631 <Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetName_Text" relativePoint="BOTTOMLEFT">
1632 <Offset>
1633 <AbsDimension x="0" y="0"/>
1634 </Offset>
1635 </Anchor>
1636 </Anchors>
1637 </FontString>
1638 <FontString name="TipBuddy_TargetGuild_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
1639 <Size>
1640 <AbsDimension x="256" y="9" />
1641 </Size>
1642 <Anchors>
1643 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetName_TextR" relativePoint="BOTTOMRIGHT">
1644 <Offset>
1645 <AbsDimension x="0" y="0"/>
1646 </Offset>
1647 </Anchor>
1648 </Anchors>
1649 </FontString>
1650 </Layer>
1651  
1652 <!-- CITY FACTION -->
1653 <Layer level="OVERLAY">
1654 <FontString name="TipBuddy_TargetCityFac_Text" inherits="ToolTipBuddyText" text="--" justifyH="LEFT">
1655 <Size>
1656 <AbsDimension x="128" y="11" />
1657 </Size>
1658 <Anchors>
1659 <Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="BOTTOMLEFT">
1660 <Offset>
1661 <AbsDimension x="1" y="-1"/>
1662 </Offset>
1663 </Anchor>
1664 </Anchors>
1665 </FontString>
1666 <FontString name="TipBuddy_TargetCityFac_TextR" inherits="ToolTipBuddyText" text="" justifyH="RIGHT">
1667 <Size>
1668 <AbsDimension x="128" y="11" />
1669 </Size>
1670 <Anchors>
1671 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetFrameManaBar" relativePoint="BOTTOMRIGHT">
1672 <Offset>
1673 <AbsDimension x="0" y="-1"/>
1674 </Offset>
1675 </Anchor>
1676 </Anchors>
1677 </FontString>
1678 </Layer>
1679 <!-- LEVEL -->
1680  
1681 <Layer level="OVERLAY">
1682 <FontString name="TipBuddy_TargetLevel_Text" inherits="ToolTipBuddyText" text="--" justifyH="LEFT">
1683 <Size>
1684 <AbsDimension x="64" y="11" />
1685 </Size>
1686 <Anchors>
1687 <Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetCityFac_Text" relativePoint="BOTTOMLEFT">
1688 <Offset>
1689 <AbsDimension x="0" y="-1"/>
1690 </Offset>
1691 </Anchor>
1692 </Anchors>
1693 </FontString>
1694 </Layer>
1695 <!-- CLASS -->
1696  
1697 <Layer level="OVERLAY">
1698 <FontString name="TipBuddy_TargetClass_Text" inherits="ToolTipBuddyText" text="--" justifyH="RIGHT">
1699 <Size>
1700 <AbsDimension x="128" y="11" />
1701 </Size>
1702 <Anchors>
1703 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetCityFac_TextR" relativePoint="BOTTOMRIGHT">
1704 <Offset>
1705 <AbsDimension x="0" y="-1"/>
1706 </Offset>
1707 </Anchor>
1708 </Anchors>
1709 </FontString>
1710 </Layer>
1711 <!-- XTRAs -->
1712  
1713 <Layer level="OVERLAY">
1714 <FontString name="TipBuddy_Xtra1_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1715 <Size>
1716 <AbsDimension x="256" y="12" />
1717 </Size>
1718 <Anchors>
1719 <Anchor point="TOPLEFT" relativeTo="TipBuddy_TargetLevel_Text" relativePoint="BOTTOMLEFT">
1720 <Offset>
1721 <AbsDimension x="0" y="-1"/>
1722 </Offset>
1723 </Anchor>
1724 </Anchors>
1725 </FontString>
1726 <FontString name="TipBuddy_Xtra2_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1727 <Size>
1728 <AbsDimension x="256" y="12" />
1729 </Size>
1730 <Anchors>
1731 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra1_Text" relativePoint="BOTTOMLEFT">
1732 <Offset>
1733 <AbsDimension x="0" y="-1"/>
1734 </Offset>
1735 </Anchor>
1736 </Anchors>
1737 </FontString>
1738 <FontString name="TipBuddy_Xtra3_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1739 <Size>
1740 <AbsDimension x="256" y="12" />
1741 </Size>
1742 <Anchors>
1743 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra2_Text" relativePoint="BOTTOMLEFT">
1744 <Offset>
1745 <AbsDimension x="0" y="-1"/>
1746 </Offset>
1747 </Anchor>
1748 </Anchors>
1749 </FontString>
1750 <FontString name="TipBuddy_Xtra4_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1751 <Size>
1752 <AbsDimension x="256" y="12" />
1753 </Size>
1754 <Anchors>
1755 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra3_Text" relativePoint="BOTTOMLEFT">
1756 <Offset>
1757 <AbsDimension x="0" y="-1"/>
1758 </Offset>
1759 </Anchor>
1760 </Anchors>
1761 </FontString>
1762 <FontString name="TipBuddy_Xtra5_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1763 <Size>
1764 <AbsDimension x="256" y="12" />
1765 </Size>
1766 <Anchors>
1767 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra4_Text" relativePoint="BOTTOMLEFT">
1768 <Offset>
1769 <AbsDimension x="0" y="-1"/>
1770 </Offset>
1771 </Anchor>
1772 </Anchors>
1773 </FontString>
1774 <FontString name="TipBuddy_Xtra6_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1775 <Size>
1776 <AbsDimension x="256" y="12" />
1777 </Size>
1778 <Anchors>
1779 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra5_Text" relativePoint="BOTTOMLEFT">
1780 <Offset>
1781 <AbsDimension x="0" y="-1"/>
1782 </Offset>
1783 </Anchor>
1784 </Anchors>
1785 </FontString>
1786 <FontString name="TipBuddy_Xtra7_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1787 <Size>
1788 <AbsDimension x="256" y="12" />
1789 </Size>
1790 <Anchors>
1791 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra6_Text" relativePoint="BOTTOMLEFT">
1792 <Offset>
1793 <AbsDimension x="0" y="-1"/>
1794 </Offset>
1795 </Anchor>
1796 </Anchors>
1797 </FontString>
1798 <FontString name="TipBuddy_Xtra8_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1799 <Size>
1800 <AbsDimension x="256" y="12" />
1801 </Size>
1802 <Anchors>
1803 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra7_Text" relativePoint="BOTTOMLEFT">
1804 <Offset>
1805 <AbsDimension x="0" y="-1"/>
1806 </Offset>
1807 </Anchor>
1808 </Anchors>
1809 </FontString>
1810 <FontString name="TipBuddy_Xtra9_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1811 <Size>
1812 <AbsDimension x="256" y="12" />
1813 </Size>
1814 <Anchors>
1815 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra8_Text" relativePoint="BOTTOMLEFT">
1816 <Offset>
1817 <AbsDimension x="0" y="-1"/>
1818 </Offset>
1819 </Anchor>
1820 </Anchors>
1821 </FontString>
1822 <FontString name="TipBuddy_Xtra10_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1823 <Size>
1824 <AbsDimension x="256" y="12" />
1825 </Size>
1826 <Anchors>
1827 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra9_Text" relativePoint="BOTTOMLEFT">
1828 <Offset>
1829 <AbsDimension x="0" y="-1"/>
1830 </Offset>
1831 </Anchor>
1832 </Anchors>
1833 </FontString>
1834 <FontString name="TipBuddy_Xtra11_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1835 <Size>
1836 <AbsDimension x="256" y="12" />
1837 </Size>
1838 <Anchors>
1839 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra10_Text" relativePoint="BOTTOMLEFT">
1840 <Offset>
1841 <AbsDimension x="0" y="-1"/>
1842 </Offset>
1843 </Anchor>
1844 </Anchors>
1845 </FontString>
1846 <FontString name="TipBuddy_Xtra12_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1847 <Size>
1848 <AbsDimension x="256" y="12" />
1849 </Size>
1850 <Anchors>
1851 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra11_Text" relativePoint="BOTTOMLEFT">
1852 <Offset>
1853 <AbsDimension x="0" y="-1"/>
1854 </Offset>
1855 </Anchor>
1856 </Anchors>
1857 </FontString>
1858 <FontString name="TipBuddy_Xtra13_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1859 <Size>
1860 <AbsDimension x="256" y="12" />
1861 </Size>
1862 <Anchors>
1863 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra12_Text" relativePoint="BOTTOMLEFT">
1864 <Offset>
1865 <AbsDimension x="0" y="-1"/>
1866 </Offset>
1867 </Anchor>
1868 </Anchors>
1869 </FontString>
1870 <FontString name="TipBuddy_Xtra14_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1871 <Size>
1872 <AbsDimension x="256" y="12" />
1873 </Size>
1874 <Anchors>
1875 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra13_Text" relativePoint="BOTTOMLEFT">
1876 <Offset>
1877 <AbsDimension x="0" y="-1"/>
1878 </Offset>
1879 </Anchor>
1880 </Anchors>
1881 </FontString>
1882 <FontString name="TipBuddy_Xtra15_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1883 <Size>
1884 <AbsDimension x="256" y="12" />
1885 </Size>
1886 <Anchors>
1887 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra14_Text" relativePoint="BOTTOMLEFT">
1888 <Offset>
1889 <AbsDimension x="0" y="-1"/>
1890 </Offset>
1891 </Anchor>
1892 </Anchors>
1893 </FontString>
1894 <FontString name="TipBuddy_Xtra16_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1895 <Size>
1896 <AbsDimension x="256" y="12" />
1897 </Size>
1898 <Anchors>
1899 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra15_Text" relativePoint="BOTTOMLEFT">
1900 <Offset>
1901 <AbsDimension x="0" y="-1"/>
1902 </Offset>
1903 </Anchor>
1904 </Anchors>
1905 </FontString>
1906 <FontString name="TipBuddy_Xtra17_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1907 <Size>
1908 <AbsDimension x="256" y="12" />
1909 </Size>
1910 <Anchors>
1911 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra16_Text" relativePoint="BOTTOMLEFT">
1912 <Offset>
1913 <AbsDimension x="0" y="-1"/>
1914 </Offset>
1915 </Anchor>
1916 </Anchors>
1917 </FontString>
1918 <FontString name="TipBuddy_Xtra18_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1919 <Size>
1920 <AbsDimension x="256" y="12" />
1921 </Size>
1922 <Anchors>
1923 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra17_Text" relativePoint="BOTTOMLEFT">
1924 <Offset>
1925 <AbsDimension x="0" y="-1"/>
1926 </Offset>
1927 </Anchor>
1928 </Anchors>
1929 </FontString>
1930 <FontString name="TipBuddy_Xtra19_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1931 <Size>
1932 <AbsDimension x="256" y="12" />
1933 </Size>
1934 <Anchors>
1935 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra18_Text" relativePoint="BOTTOMLEFT">
1936 <Offset>
1937 <AbsDimension x="0" y="-1"/>
1938 </Offset>
1939 </Anchor>
1940 </Anchors>
1941 </FontString>
1942 <FontString name="TipBuddy_Xtra20_Text" inherits="ToolTipBuddyText" justifyH="LEFT">
1943 <Size>
1944 <AbsDimension x="256" y="12" />
1945 </Size>
1946 <Anchors>
1947 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Xtra19_Text" relativePoint="BOTTOMLEFT">
1948 <Offset>
1949 <AbsDimension x="0" y="-1"/>
1950 </Offset>
1951 </Anchor>
1952 </Anchors>
1953 </FontString>
1954  
1955 <FontString name="TipBuddy_XtraR1_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
1956 <Size>
1957 <AbsDimension x="256" y="12" />
1958 </Size>
1959 <Anchors>
1960 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_TargetClass_Text" relativePoint="BOTTOMRIGHT">
1961 <Offset>
1962 <AbsDimension x="0" y="-1"/>
1963 </Offset>
1964 </Anchor>
1965 </Anchors>
1966 </FontString>
1967 <FontString name="TipBuddy_XtraR2_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
1968 <Size>
1969 <AbsDimension x="256" y="12" />
1970 </Size>
1971 <Anchors>
1972 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR1_Text" relativePoint="BOTTOMRIGHT">
1973 <Offset>
1974 <AbsDimension x="0" y="-1"/>
1975 </Offset>
1976 </Anchor>
1977 </Anchors>
1978 </FontString>
1979 <FontString name="TipBuddy_XtraR3_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
1980 <Size>
1981 <AbsDimension x="256" y="12" />
1982 </Size>
1983 <Anchors>
1984 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR2_Text" relativePoint="BOTTOMRIGHT">
1985 <Offset>
1986 <AbsDimension x="0" y="-1"/>
1987 </Offset>
1988 </Anchor>
1989 </Anchors>
1990 </FontString>
1991 <FontString name="TipBuddy_XtraR4_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
1992 <Size>
1993 <AbsDimension x="256" y="12" />
1994 </Size>
1995 <Anchors>
1996 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR3_Text" relativePoint="BOTTOMRIGHT">
1997 <Offset>
1998 <AbsDimension x="0" y="-1"/>
1999 </Offset>
2000 </Anchor>
2001 </Anchors>
2002 </FontString>
2003 <FontString name="TipBuddy_XtraR5_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2004 <Size>
2005 <AbsDimension x="256" y="12" />
2006 </Size>
2007 <Anchors>
2008 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR4_Text" relativePoint="BOTTOMRIGHT">
2009 <Offset>
2010 <AbsDimension x="0" y="-1"/>
2011 </Offset>
2012 </Anchor>
2013 </Anchors>
2014 </FontString>
2015 <FontString name="TipBuddy_XtraR6_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2016 <Size>
2017 <AbsDimension x="256" y="12" />
2018 </Size>
2019 <Anchors>
2020 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR5_Text" relativePoint="BOTTOMRIGHT">
2021 <Offset>
2022 <AbsDimension x="0" y="-1"/>
2023 </Offset>
2024 </Anchor>
2025 </Anchors>
2026 </FontString>
2027 <FontString name="TipBuddy_XtraR7_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2028 <Size>
2029 <AbsDimension x="256" y="12" />
2030 </Size>
2031 <Anchors>
2032 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR6_Text" relativePoint="BOTTOMRIGHT">
2033 <Offset>
2034 <AbsDimension x="0" y="-1"/>
2035 </Offset>
2036 </Anchor>
2037 </Anchors>
2038 </FontString>
2039 <FontString name="TipBuddy_XtraR8_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2040 <Size>
2041 <AbsDimension x="256" y="12" />
2042 </Size>
2043 <Anchors>
2044 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR7_Text" relativePoint="BOTTOMRIGHT">
2045 <Offset>
2046 <AbsDimension x="0" y="-1"/>
2047 </Offset>
2048 </Anchor>
2049 </Anchors>
2050 </FontString>
2051 <FontString name="TipBuddy_XtraR9_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2052 <Size>
2053 <AbsDimension x="256" y="12" />
2054 </Size>
2055 <Anchors>
2056 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR8_Text" relativePoint="BOTTOMRIGHT">
2057 <Offset>
2058 <AbsDimension x="0" y="-1"/>
2059 </Offset>
2060 </Anchor>
2061 </Anchors>
2062 </FontString>
2063 <FontString name="TipBuddy_XtraR10_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2064 <Size>
2065 <AbsDimension x="256" y="12" />
2066 </Size>
2067 <Anchors>
2068 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR9_Text" relativePoint="BOTTOMRIGHT">
2069 <Offset>
2070 <AbsDimension x="0" y="-1"/>
2071 </Offset>
2072 </Anchor>
2073 </Anchors>
2074 </FontString>
2075 <FontString name="TipBuddy_XtraR11_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2076 <Size>
2077 <AbsDimension x="256" y="12" />
2078 </Size>
2079 <Anchors>
2080 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR10_Text" relativePoint="BOTTOMRIGHT">
2081 <Offset>
2082 <AbsDimension x="0" y="-1"/>
2083 </Offset>
2084 </Anchor>
2085 </Anchors>
2086 </FontString>
2087 <FontString name="TipBuddy_XtraR12_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2088 <Size>
2089 <AbsDimension x="256" y="12" />
2090 </Size>
2091 <Anchors>
2092 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR11_Text" relativePoint="BOTTOMRIGHT">
2093 <Offset>
2094 <AbsDimension x="0" y="-1"/>
2095 </Offset>
2096 </Anchor>
2097 </Anchors>
2098 </FontString>
2099 <FontString name="TipBuddy_XtraR13_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2100 <Size>
2101 <AbsDimension x="256" y="12" />
2102 </Size>
2103 <Anchors>
2104 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR12_Text" relativePoint="BOTTOMRIGHT">
2105 <Offset>
2106 <AbsDimension x="0" y="-1"/>
2107 </Offset>
2108 </Anchor>
2109 </Anchors>
2110 </FontString>
2111 <FontString name="TipBuddy_XtraR14_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2112 <Size>
2113 <AbsDimension x="256" y="12" />
2114 </Size>
2115 <Anchors>
2116 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR13_Text" relativePoint="BOTTOMRIGHT">
2117 <Offset>
2118 <AbsDimension x="0" y="-1"/>
2119 </Offset>
2120 </Anchor>
2121 </Anchors>
2122 </FontString>
2123 <FontString name="TipBuddy_XtraR15_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2124 <Size>
2125 <AbsDimension x="256" y="12" />
2126 </Size>
2127 <Anchors>
2128 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR14_Text" relativePoint="BOTTOMRIGHT">
2129 <Offset>
2130 <AbsDimension x="0" y="-1"/>
2131 </Offset>
2132 </Anchor>
2133 </Anchors>
2134 </FontString>
2135 <FontString name="TipBuddy_XtraR16_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2136 <Size>
2137 <AbsDimension x="256" y="12" />
2138 </Size>
2139 <Anchors>
2140 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR15_Text" relativePoint="BOTTOMRIGHT">
2141 <Offset>
2142 <AbsDimension x="0" y="-1"/>
2143 </Offset>
2144 </Anchor>
2145 </Anchors>
2146 </FontString>
2147 <FontString name="TipBuddy_XtraR17_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2148 <Size>
2149 <AbsDimension x="256" y="12" />
2150 </Size>
2151 <Anchors>
2152 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR16_Text" relativePoint="BOTTOMRIGHT">
2153 <Offset>
2154 <AbsDimension x="0" y="-1"/>
2155 </Offset>
2156 </Anchor>
2157 </Anchors>
2158 </FontString>
2159 <FontString name="TipBuddy_XtraR18_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2160 <Size>
2161 <AbsDimension x="256" y="12" />
2162 </Size>
2163 <Anchors>
2164 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR17_Text" relativePoint="BOTTOMRIGHT">
2165 <Offset>
2166 <AbsDimension x="0" y="-1"/>
2167 </Offset>
2168 </Anchor>
2169 </Anchors>
2170 </FontString>
2171 <FontString name="TipBuddy_XtraR19_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2172 <Size>
2173 <AbsDimension x="256" y="12" />
2174 </Size>
2175 <Anchors>
2176 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR18_Text" relativePoint="BOTTOMRIGHT">
2177 <Offset>
2178 <AbsDimension x="0" y="-1"/>
2179 </Offset>
2180 </Anchor>
2181 </Anchors>
2182 </FontString>
2183 <FontString name="TipBuddy_XtraR20_Text" inherits="ToolTipBuddyText" justifyH="RIGHT">
2184 <Size>
2185 <AbsDimension x="256" y="12" />
2186 </Size>
2187 <Anchors>
2188 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_XtraR19_Text" relativePoint="BOTTOMRIGHT">
2189 <Offset>
2190 <AbsDimension x="0" y="-1"/>
2191 </Offset>
2192 </Anchor>
2193 </Anchors>
2194 </FontString>
2195  
2196 </Layer>
2197 </Layers>
2198 </Frame>
2199  
2200 <!-- RANK ICONS -->
2201 <Frame name="TipBuddy_RankFrame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Main_Frame">
2202 <Size>
2203 <AbsDimension x="16" y="16"/>
2204 </Size>
2205 <Anchors>
2206 <Anchor point="TOPRIGHT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
2207 <Offset>
2208 <AbsDimension x="0" y="-2"/>
2209 </Offset>
2210 </Anchor>
2211 </Anchors>
2212 <Layers>
2213 <Layer level="OVERLAY">
2214 <Texture name="$parentIcon">
2215 <Size>
2216 <AbsDimension x="16" y="16"/>
2217 </Size>
2218 </Texture>
2219 </Layer>
2220 </Layers>
2221 </Frame>
2222  
2223 <Frame name="TipBuddy_RankFrameGTT" frameStrata="TOOLTIP" hidden="true" parent="TipBuddyTooltip">
2224 <Size>
2225 <AbsDimension x="18" y="18"/>
2226 </Size>
2227 <Anchors>
2228 <Anchor point="TOPRIGHT" relativeTo="TipBuddyTooltip" relativePoint="TOPLEFT">
2229 <Offset>
2230 <AbsDimension x="0" y="-5"/>
2231 </Offset>
2232 </Anchor>
2233 </Anchors>
2234 <Layers>
2235 <Layer level="OVERLAY">
2236 <Texture name="$parentIcon">
2237 <Size>
2238 <AbsDimension x="18" y="18"/>
2239 </Size>
2240 </Texture>
2241 </Layer>
2242 </Layers>
2243 <Scripts>
2244 </Scripts>
2245 </Frame>
2246  
2247 <!-- FACTION ICONS -->
2248 <Frame name="TipBuddy_FactionFrame" frameStrata="TOOLTIP" hidden="true" parent="TipBuddy_Main_Frame">
2249 <Size>
2250 <AbsDimension x="30" y="30"/>
2251 </Size>
2252 <Anchors>
2253 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPRIGHT">
2254 <Offset>
2255 <AbsDimension x="-3" y="-2"/>
2256 </Offset>
2257 </Anchor>
2258 </Anchors>
2259 <Layers>
2260 <Layer level="BACKROUND">
2261 <Texture name="$parentIcon" file="Interface\\TargetingFrame\\UI-PVP-FFA">
2262 <Size>
2263 <AbsDimension x="30" y="30"/>
2264 </Size>
2265 </Texture>
2266 </Layer>
2267 <Layer level="OVERLAY">
2268 <FontString name="$parentText" inherits="ToolTipBuddyTextOutline" justifyH="LEFT" text="PvP">
2269 <Size>
2270 <AbsDimension x="64" y="16" />
2271 </Size>
2272 <Anchors>
2273 <Anchor point="LEFT">
2274 <Offset>
2275 <AbsDimension x="1.5" y="8"/>
2276 </Offset>
2277 </Anchor>
2278 </Anchors>
2279 </FontString>
2280 </Layer>
2281 </Layers>
2282 </Frame>
2283  
2284 <Frame name="TipBuddy_FactionFrameGTT" frameStrata="TOOLTIP" hidden="true" parent="TipBuddyTooltip">
2285 <Size>
2286 <AbsDimension x="38" y="38"/>
2287 </Size>
2288 <Anchors>
2289 <Anchor point="TOPLEFT" relativeTo="TipBuddyTooltip" relativePoint="TOPRIGHT">
2290 <Offset>
2291 <AbsDimension x="-3" y="-4"/>
2292 </Offset>
2293 </Anchor>
2294 </Anchors>
2295 <Layers>
2296 <Layer level="BACKROUND">
2297 <Texture name="$parentIcon" file="Interface\\TargetingFrame\\UI-PVP-FFA">
2298 <Size>
2299 <AbsDimension x="38" y="38"/>
2300 </Size>
2301 </Texture>
2302 </Layer>
2303 <Layer level="OVERLAY">
2304 <FontString name="$parentText" inherits="ToolTipBuddyTextOutline" justifyH="LEFT" text="PvP">
2305 <Size>
2306 <AbsDimension x="64" y="16" />
2307 </Size>
2308 <Anchors>
2309 <Anchor point="LEFT">
2310 <Offset>
2311 <AbsDimension x="1.5" y="8"/>
2312 </Offset>
2313 </Anchor>
2314 </Anchors>
2315 </FontString>
2316 </Layer>
2317 </Layers>
2318 </Frame>
2319  
2320 <Frame name="TipBuddy_HealthTextGTT" frameStrata="TOOLTIP" parent="TipBuddyTooltipStatusBar">
2321 <Size>
2322 <AbsDimension x="38" y="38"/>
2323 </Size>
2324 <Anchors>
2325 <Anchor point="CENTER">
2326 <Offset>
2327 <AbsDimension x="0" y="0"/>
2328 </Offset>
2329 </Anchor>
2330 </Anchors>
2331 <Layers>
2332 <Layer level="OVERLAY">
2333 <FontString name="$parentText" inherits="TB_HealthText" justifyH="CENTER">
2334 <Size>
2335 <AbsDimension x="256" y="12" />
2336 </Size>
2337 <Anchors>
2338 <Anchor point="CENTER">
2339 <Offset>
2340 <AbsDimension x="0" y="0"/>
2341 </Offset>
2342 </Anchor>
2343 </Anchors>
2344 </FontString>
2345 </Layer>
2346 </Layers>
2347 </Frame>
2348  
2349 <Frame name="TipBuddy_BuffFrame" frameStrata="TOOLTIP" parent="TipBuddy_Main_Frame">
2350 <Size>
2351 <AbsDimension x="16" y="16"/>
2352 </Size>
2353 <Anchors>
2354 <Anchor point="CENTER">
2355 <Offset>
2356 <AbsDimension x="0" y="0"/>
2357 </Offset>
2358 </Anchor>
2359 </Anchors>
2360 <Frames>
2361 <Frame name="$parentB1" inherits="TipBuddy_Buff_Template">
2362 <Anchors>
2363 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="TOPLEFT">
2364 <Offset>
2365 <AbsDimension x="2" y="0"/>
2366 </Offset>
2367 </Anchor>
2368 </Anchors>
2369 </Frame>
2370 <Frame name="$parentB2" inherits="TipBuddy_Buff_Template">
2371 <Anchors>
2372 <Anchor point="LEFT" relativeTo="$parentB1" relativePoint="RIGHT">
2373 <Offset>
2374 <AbsDimension x="2" y="0"/>
2375 </Offset>
2376 </Anchor>
2377 </Anchors>
2378 </Frame>
2379 <Frame name="$parentB3" inherits="TipBuddy_Buff_Template">
2380 <Anchors>
2381 <Anchor point="LEFT" relativeTo="$parentB2" relativePoint="RIGHT">
2382 <Offset>
2383 <AbsDimension x="2" y="0"/>
2384 </Offset>
2385 </Anchor>
2386 </Anchors>
2387 </Frame>
2388 <Frame name="$parentB4" inherits="TipBuddy_Buff_Template">
2389 <Anchors>
2390 <Anchor point="LEFT" relativeTo="$parentB3" relativePoint="RIGHT">
2391 <Offset>
2392 <AbsDimension x="2" y="0"/>
2393 </Offset>
2394 </Anchor>
2395 </Anchors>
2396 </Frame>
2397 <Frame name="$parentB5" inherits="TipBuddy_Buff_Template">
2398 <Anchors>
2399 <Anchor point="LEFT" relativeTo="$parentB4" relativePoint="RIGHT">
2400 <Offset>
2401 <AbsDimension x="2" y="0"/>
2402 </Offset>
2403 </Anchor>
2404 </Anchors>
2405 </Frame>
2406 <Frame name="$parentB6" inherits="TipBuddy_Buff_Template">
2407 <Anchors>
2408 <Anchor point="LEFT" relativeTo="$parentB5" relativePoint="RIGHT">
2409 <Offset>
2410 <AbsDimension x="2" y="0"/>
2411 </Offset>
2412 </Anchor>
2413 </Anchors>
2414 </Frame>
2415 <Frame name="$parentB7" inherits="TipBuddy_Buff_Template">
2416 <Anchors>
2417 <Anchor point="LEFT" relativeTo="$parentB6" relativePoint="RIGHT">
2418 <Offset>
2419 <AbsDimension x="2" y="0"/>
2420 </Offset>
2421 </Anchor>
2422 </Anchors>
2423 </Frame>
2424 <Frame name="$parentB8" inherits="TipBuddy_Buff_Template">
2425 <Anchors>
2426 <Anchor point="LEFT" relativeTo="$parentB7" relativePoint="RIGHT">
2427 <Offset>
2428 <AbsDimension x="2" y="0"/>
2429 </Offset>
2430 </Anchor>
2431 </Anchors>
2432 </Frame>
2433  
2434 <Frame name="$parentD1" inherits="TipBuddy_Buff_Template">
2435 <Anchors>
2436 <Anchor point="TOPLEFT" relativeTo="TipBuddy_Main_Frame" relativePoint="BOTTOMLEFT">
2437 <Offset>
2438 <AbsDimension x="0" y="0"/>
2439 </Offset>
2440 </Anchor>
2441 </Anchors>
2442 </Frame>
2443 <Frame name="$parentD2" inherits="TipBuddy_Buff_Template">
2444 <Anchors>
2445 <Anchor point="LEFT" relativeTo="$parentD1" relativePoint="RIGHT">
2446 <Offset>
2447 <AbsDimension x="2" y="0"/>
2448 </Offset>
2449 </Anchor>
2450 </Anchors>
2451 </Frame>
2452 <Frame name="$parentD3" inherits="TipBuddy_Buff_Template">
2453 <Anchors>
2454 <Anchor point="LEFT" relativeTo="$parentD2" relativePoint="RIGHT">
2455 <Offset>
2456 <AbsDimension x="2" y="0"/>
2457 </Offset>
2458 </Anchor>
2459 </Anchors>
2460 </Frame>
2461 <Frame name="$parentD4" inherits="TipBuddy_Buff_Template">
2462 <Anchors>
2463 <Anchor point="LEFT" relativeTo="$parentD3" relativePoint="RIGHT">
2464 <Offset>
2465 <AbsDimension x="2" y="0"/>
2466 </Offset>
2467 </Anchor>
2468 </Anchors>
2469 </Frame>
2470 <Frame name="$parentD5" inherits="TipBuddy_Buff_Template">
2471 <Anchors>
2472 <Anchor point="LEFT" relativeTo="$parentD4" relativePoint="RIGHT">
2473 <Offset>
2474 <AbsDimension x="2" y="0"/>
2475 </Offset>
2476 </Anchor>
2477 </Anchors>
2478 </Frame>
2479 <Frame name="$parentD6" inherits="TipBuddy_Buff_Template">
2480 <Anchors>
2481 <Anchor point="LEFT" relativeTo="$parentD5" relativePoint="RIGHT">
2482 <Offset>
2483 <AbsDimension x="2" y="0"/>
2484 </Offset>
2485 </Anchor>
2486 </Anchors>
2487 </Frame>
2488 <Frame name="$parentD7" inherits="TipBuddy_Buff_Template">
2489 <Anchors>
2490 <Anchor point="LEFT" relativeTo="$parentD6" relativePoint="RIGHT">
2491 <Offset>
2492 <AbsDimension x="2" y="0"/>
2493 </Offset>
2494 </Anchor>
2495 </Anchors>
2496 </Frame>
2497 <Frame name="$parentD8" inherits="TipBuddy_Buff_Template">
2498 <Anchors>
2499 <Anchor point="LEFT" relativeTo="$parentD7" relativePoint="RIGHT">
2500 <Offset>
2501 <AbsDimension x="2" y="0"/>
2502 </Offset>
2503 </Anchor>
2504 </Anchors>
2505 </Frame>
2506  
2507 </Frames>
2508 </Frame>
2509  
2510  
2511 <Frame name="TipBuddy_BuffFrameGTT" frameStrata="TOOLTIP" parent="TipBuddyTooltip">
2512 <Size>
2513 <AbsDimension x="16" y="16"/>
2514 </Size>
2515 <Frames>
2516 <Frame name="$parentB1" inherits="TipBuddy_Buff_Template">
2517 <Anchors>
2518 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddyTooltip" relativePoint="TOPLEFT">
2519 <Offset>
2520 <AbsDimension x="4" y="0"/>
2521 </Offset>
2522 </Anchor>
2523 </Anchors>
2524 </Frame>
2525 <Frame name="$parentB2" inherits="TipBuddy_Buff_Template">
2526 <Anchors>
2527 <Anchor point="LEFT" relativeTo="$parentB1" relativePoint="RIGHT">
2528 <Offset>
2529 <AbsDimension x="2" y="0"/>
2530 </Offset>
2531 </Anchor>
2532 </Anchors>
2533 </Frame>
2534 <Frame name="$parentB3" inherits="TipBuddy_Buff_Template">
2535 <Anchors>
2536 <Anchor point="LEFT" relativeTo="$parentB2" relativePoint="RIGHT">
2537 <Offset>
2538 <AbsDimension x="2" y="0"/>
2539 </Offset>
2540 </Anchor>
2541 </Anchors>
2542 </Frame>
2543 <Frame name="$parentB4" inherits="TipBuddy_Buff_Template">
2544 <Anchors>
2545 <Anchor point="LEFT" relativeTo="$parentB3" relativePoint="RIGHT">
2546 <Offset>
2547 <AbsDimension x="2" y="0"/>
2548 </Offset>
2549 </Anchor>
2550 </Anchors>
2551 </Frame>
2552 <Frame name="$parentB5" inherits="TipBuddy_Buff_Template">
2553 <Anchors>
2554 <Anchor point="LEFT" relativeTo="$parentB4" relativePoint="RIGHT">
2555 <Offset>
2556 <AbsDimension x="2" y="0"/>
2557 </Offset>
2558 </Anchor>
2559 </Anchors>
2560 </Frame>
2561 <Frame name="$parentB6" inherits="TipBuddy_Buff_Template">
2562 <Anchors>
2563 <Anchor point="LEFT" relativeTo="$parentB5" relativePoint="RIGHT">
2564 <Offset>
2565 <AbsDimension x="2" y="0"/>
2566 </Offset>
2567 </Anchor>
2568 </Anchors>
2569 </Frame>
2570 <Frame name="$parentB7" inherits="TipBuddy_Buff_Template">
2571 <Anchors>
2572 <Anchor point="LEFT" relativeTo="$parentB6" relativePoint="RIGHT">
2573 <Offset>
2574 <AbsDimension x="2" y="0"/>
2575 </Offset>
2576 </Anchor>
2577 </Anchors>
2578 </Frame>
2579 <Frame name="$parentB8" inherits="TipBuddy_Buff_Template">
2580 <Anchors>
2581 <Anchor point="LEFT" relativeTo="$parentB7" relativePoint="RIGHT">
2582 <Offset>
2583 <AbsDimension x="2" y="0"/>
2584 </Offset>
2585 </Anchor>
2586 </Anchors>
2587 </Frame>
2588  
2589 <Frame name="$parentD1" inherits="TipBuddy_Buff_Template">
2590 <Anchors>
2591 <Anchor point="TOPLEFT" relativeTo="TipBuddyTooltipStatusBar" relativePoint="BOTTOMLEFT">
2592 <Offset>
2593 <AbsDimension x="-2" y="0"/>
2594 </Offset>
2595 </Anchor>
2596 </Anchors>
2597 <Scripts>
2598 <OnShow>
2599 if ( TipBuddyTooltipStatusBar:IsVisible() ) then
2600 this:ClearAllPoints();
2601 this:SetPoint( "TOPLEFT", "TipBuddyTooltipStatusBar", "BOTTOMLEFT", 0, -1);
2602 else
2603 this:ClearAllPoints();
2604 this:SetPoint( "TOPLEFT", "TipBuddyTooltip", "BOTTOMLEFT", 4, -1);
2605 end
2606 </OnShow>
2607 </Scripts>
2608 </Frame>
2609 <Frame name="$parentD2" inherits="TipBuddy_Buff_Template">
2610 <Anchors>
2611 <Anchor point="LEFT" relativeTo="$parentD1" relativePoint="RIGHT">
2612 <Offset>
2613 <AbsDimension x="2" y="0"/>
2614 </Offset>
2615 </Anchor>
2616 </Anchors>
2617 </Frame>
2618 <Frame name="$parentD3" inherits="TipBuddy_Buff_Template">
2619 <Anchors>
2620 <Anchor point="LEFT" relativeTo="$parentD2" relativePoint="RIGHT">
2621 <Offset>
2622 <AbsDimension x="2" y="0"/>
2623 </Offset>
2624 </Anchor>
2625 </Anchors>
2626 </Frame>
2627 <Frame name="$parentD4" inherits="TipBuddy_Buff_Template">
2628 <Anchors>
2629 <Anchor point="LEFT" relativeTo="$parentD3" relativePoint="RIGHT">
2630 <Offset>
2631 <AbsDimension x="2" y="0"/>
2632 </Offset>
2633 </Anchor>
2634 </Anchors>
2635 </Frame>
2636 <Frame name="$parentD5" inherits="TipBuddy_Buff_Template">
2637 <Anchors>
2638 <Anchor point="LEFT" relativeTo="$parentD4" relativePoint="RIGHT">
2639 <Offset>
2640 <AbsDimension x="2" y="0"/>
2641 </Offset>
2642 </Anchor>
2643 </Anchors>
2644 </Frame>
2645 <Frame name="$parentD6" inherits="TipBuddy_Buff_Template">
2646 <Anchors>
2647 <Anchor point="LEFT" relativeTo="$parentD5" relativePoint="RIGHT">
2648 <Offset>
2649 <AbsDimension x="2" y="0"/>
2650 </Offset>
2651 </Anchor>
2652 </Anchors>
2653 </Frame>
2654 <Frame name="$parentD7" inherits="TipBuddy_Buff_Template">
2655 <Anchors>
2656 <Anchor point="LEFT" relativeTo="$parentD6" relativePoint="RIGHT">
2657 <Offset>
2658 <AbsDimension x="2" y="0"/>
2659 </Offset>
2660 </Anchor>
2661 </Anchors>
2662 </Frame>
2663 <Frame name="$parentD8" inherits="TipBuddy_Buff_Template">
2664 <Anchors>
2665 <Anchor point="LEFT" relativeTo="$parentD7" relativePoint="RIGHT">
2666 <Offset>
2667 <AbsDimension x="2" y="0"/>
2668 </Offset>
2669 </Anchor>
2670 </Anchors>
2671 </Frame>
2672  
2673 </Frames>
2674 </Frame>
2675  
2676 <!-- OPTIONS FRAME -->
2677 <Button name="TipBuddy_OptionsMicroButton" inherits="MainMenuBarMicroButton" frameStrata="DIALOG" parent="GameMenuFrame" toplevel="true">
2678 <Anchors>
2679 <Anchor point="TOPLEFT" relativeTo="GameMenuFrame" relativePoint="TOPRIGHT">
2680 <Offset>
2681 <AbsDimension x="-6" y="14"/>
2682 </Offset>
2683 </Anchor>
2684 </Anchors>
2685 <Scripts>
2686 <OnLoad>
2687 LoadTipBuddyButtonTextures("TipBuddy");
2688 </OnLoad>
2689 <OnClick>
2690 TipBuddy_ToggleOptionsFrame();
2691 </OnClick>
2692 <OnEnter>
2693 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
2694 GameTooltip:SetText(TB_MENU_BUTTON_TOOLTIP, nil, nil, nil, nil, 1);
2695 </OnEnter>
2696 </Scripts>
2697 </Button>
2698  
2699  
2700 <Frame name="TipBuddy_OptionsFrame" parent="UIParent" movable="true" enableMouse="true" enableKeyboard="true" hidden="true">
2701 <Size>
2702 <AbsDimension x="350" y="490"/>
2703 </Size>
2704 <Anchors>
2705 <Anchor point="CENTER" />
2706 </Anchors>
2707 <Scripts>
2708 <OnLoad>
2709 TipBuddy_OptionsFrame_OnLoad();
2710 </OnLoad>
2711 <OnKeyDown>
2712 if ( arg1 == "ESCAPE" ) then
2713 TipBuddy_ToggleOptionsFrame();
2714 elseif ( arg1 == "ENTER") then
2715 ChatFrame_OpenChat("", chatFrame);
2716 elseif ( arg1 == "/") then
2717 ChatFrame_OpenChat("/", chatFrame);
2718 elseif ( arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
2719 RunBinding("SCREENSHOT");
2720 end
2721 </OnKeyDown>
2722 <OnShow>
2723 if (MYADDONS_ACTIVE_OPTIONSFRAME == this) then
2724 HideUIPanel(GameMenuFrame);
2725 HideUIPanel(myAddOnsFrame);
2726 TipBuddy_OptionsFrame_UpdateCheckboxes();
2727 TipBuddy_OptionsFrame_UpdateSliders();
2728 TipBuddy_OptionsFrame_UpdateColorButtons();
2729 TipBuddy_OptionsFrame_UpdateColorButtons_Text();
2730  
2731 TipBuddy_Background_ColorPick_OnLoad();
2732  
2733 PlaySound("igMainMenuQuit");
2734 end
2735 if (not TipBuddy_SavedVars["general"].opPos_L) then
2736 return;
2737 else
2738 this:SetPoint("TOPLEFT", "UIParent", "BOTTOMLEFT", TipBuddy_SavedVars["general"].opPos_L, TipBuddy_SavedVars["general"].opPos_T);
2739 end
2740 </OnShow>
2741 </Scripts>
2742  
2743 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
2744 <BackgroundInsets>
2745 <AbsInset left="11" right="12" top="12" bottom="11"/>
2746 </BackgroundInsets>
2747 <TileSize>
2748 <AbsValue val="32"/>
2749 </TileSize>
2750 <EdgeSize>
2751 <AbsValue val="32"/>
2752 </EdgeSize>
2753 </Backdrop>
2754  
2755 <Layers>
2756 <Layer level="ARTWORK">
2757 <Texture name="TipBuddy_OptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
2758 <Size>
2759 <AbsDimension x="290" y="64"/>
2760 </Size>
2761 <Anchors>
2762 <Anchor point="TOP">
2763 <Offset>
2764 <AbsDimension x="0" y="12"/>
2765 </Offset>
2766 </Anchor>
2767 </Anchors>
2768 </Texture>
2769 <FontString name="TipBuddy_OptionsFrameHeaderText" inherits="GameFontNormal">
2770 <Anchors>
2771 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrameHeader">
2772 <Offset>
2773 <AbsDimension x="0" y="-14"/>
2774 </Offset>
2775 </Anchor>
2776 </Anchors>
2777 </FontString>
2778 </Layer>
2779 </Layers>
2780  
2781 <Frames>
2782 <Frame name="$parent_Moveable" moveable="true">
2783 <Size>
2784 <AbsDimension x="170" y="48"/>
2785 </Size>
2786 <Anchors>
2787 <Anchor point="TOP">
2788 <Offset>
2789 <AbsDimension x="0" y="16"/>
2790 </Offset>
2791 </Anchor>
2792 </Anchors>
2793 <Scripts>
2794 <OnMouseDown>
2795 TB_Options_OnMouseDown(arg1);
2796 </OnMouseDown>
2797 <OnMouseUp>
2798 TB_Options_OnMouseUp(arg1);
2799 </OnMouseUp>
2800 </Scripts>
2801 </Frame>
2802  
2803 <Frame name="TB_TextVariablesFrame" frameStrata="BACKGROUND" moveable="true" hidden="true">
2804 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
2805 <EdgeSize>
2806 <AbsValue val="16"/>
2807 </EdgeSize>
2808 <TileSize>
2809 <AbsValue val="16"/>
2810 </TileSize>
2811 <BackgroundInsets>
2812 <AbsInset left="5" right="5" top="5" bottom="5"/>
2813 </BackgroundInsets>
2814 </Backdrop>
2815 <Size><AbsDimension x="280" y="490"/></Size>
2816 <Anchors>
2817 <Anchor point="LEFT" relativePoint="RIGHT"/>
2818 </Anchors>
2819 <!-- <Frames>
2820 <Button name="$parent_CloseButton" inherits="GameMenuButtonTemplate">
2821 <Scripts>
2822 <OnClick>
2823 TB_TextVariablesFrame:Hide();
2824 </OnClick>
2825 </Scripts>
2826 </Button>
2827 </Frames> -->
2828 <Layers>
2829 <Layer level="OVERLAY">
2830 <FontString name="$parent_Title" inherits="GameFontNormal" text="Variable Codes">
2831 <Color r="1.0" g="1.0" b="0"/>
2832 <Anchors>
2833 <Anchor point="TOP">
2834 <Offset><AbsDimension x="0" y="-6"/></Offset>
2835 </Anchor>
2836 </Anchors>
2837 </FontString>
2838 <FontString name="$parent_Column1" inherits="GameFontNormalSmall" justifyH="LEFT" text="TB_TEXTVARS_HELP_1">
2839 <Color r="0.9" g="0.9" b="0.5"/>
2840 <Anchors>
2841 <Anchor point="TOPLEFT">
2842 <Offset><AbsDimension x="10" y="-22"/></Offset>
2843 </Anchor>
2844 </Anchors>
2845 </FontString>
2846 <FontString name="$parent_Column2" inherits="GameFontNormalSmall" justifyH="LEFT" text="TB_TEXTVARS_HELP_2">
2847 <Color r="0.7" g="0.7" b="0.7"/>
2848 <Anchors>
2849 <Anchor point="TOPLEFT" relativeTo="$parent_Column1" relativePoint="TOPRIGHT">
2850 <Offset><AbsDimension x="10" y="0"/></Offset>
2851 </Anchor>
2852 </Anchors>
2853 </FontString>
2854 </Layer>
2855 </Layers>
2856 <Scripts>
2857 <OnLoad>
2858 this:SetBackdropBorderColor(0.8, 0.8, 0.9);
2859 this:SetBackdropColor(0, 0, 0, 1);
2860 </OnLoad>
2861 <OnHide>
2862 TipBuddy_ShowTextVars:SetText("Show Vars");
2863 </OnHide>
2864 </Scripts>
2865 </Frame>
2866  
2867  
2868 <Frame name="TipBuddy_OptionsFrame_PlayersFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">
2869  
2870 <Frames>
2871  
2872 <!-- TABFRAME TITLE -->
2873 <Frame name="TipBuddy_OptionsFrame_PlayersFrameTitle">
2874 <Size>
2875 <AbsDimension x="210" y="22"/>
2876 </Size>
2877 <Anchors>
2878 <Anchor point="BOTTOM" relativePoint="TOP">
2879 <Offset>
2880 <AbsDimension x="0" y="20"/>
2881 </Offset>
2882 </Anchor>
2883 </Anchors>
2884 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
2885 <EdgeSize>
2886 <AbsValue val="8"/>
2887 </EdgeSize>
2888 <TileSize>
2889 <AbsValue val="8"/>
2890 </TileSize>
2891 <BackgroundInsets>
2892 <AbsInset left="2" right="2" top="2" bottom="2"/>
2893 </BackgroundInsets>
2894 </Backdrop>
2895 <Layers>
2896 <Layer>
2897 <FontString inherits="GameFontHighlight" text="PLAYERS">
2898 <Anchors>
2899 <Anchor point="CENTER">
2900 <Offset>
2901 <AbsDimension x="0" y="0"/>
2902 </Offset>
2903 </Anchor>
2904 </Anchors>
2905 </FontString>
2906 </Layer>
2907 </Layers>
2908 <Scripts>
2909 <OnLoad>
2910 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
2911 this:SetBackdropColor(0.15, 0.15, 0.15);
2912 </OnLoad>
2913 </Scripts>
2914 </Frame>
2915  
2916 <!-- PLAYERS TABS -->
2917 <Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
2918 <Size>
2919 <AbsDimension x="100" y="32"/>
2920 </Size>
2921 <Anchors>
2922 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">>
2923 <Offset>
2924 <AbsDimension x="4" y="30"/>
2925 </Offset>
2926 </Anchor>
2927 </Anchors>
2928 <Scripts>
2929 <OnLoad>
2930 PanelTemplates_SelectTab(this);
2931 PanelTemplates_TabResize(-10, this);
2932 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
2933 </OnLoad>
2934 <OnClick>
2935 TipBuddy_PlayersFrameTab_OnClick(1);
2936 </OnClick>
2937 </Scripts>
2938 </Button>
2939  
2940 <Button name="$parentTab2" inherits="TabButtonTemplate" text="InParty" id="2">
2941 <Size>
2942 <AbsDimension x="100" y="32"/>
2943 </Size>
2944 <Anchors>
2945 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">>
2946 <Offset>
2947 <AbsDimension x="0" y="30"/>
2948 </Offset>
2949 </Anchor>
2950 </Anchors>
2951 <Scripts>
2952 <OnLoad>
2953 PanelTemplates_DeselectTab(this);
2954 PanelTemplates_TabResize(-10, this);
2955 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
2956 </OnLoad>
2957 <OnClick>
2958 TipBuddy_PlayersFrameTab_OnClick(2);
2959 </OnClick>
2960 </Scripts>
2961 </Button>
2962  
2963 <Button name="$parentTab3" inherits="TabButtonTemplate" text="Enemy" id="3">
2964 <Size>
2965 <AbsDimension x="100" y="32"/>
2966 </Size>
2967 <Anchors>
2968 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
2969 <Offset>
2970 <AbsDimension x="-4" y="30"/>
2971 </Offset>
2972 </Anchor>
2973 </Anchors>
2974 <Scripts>
2975 <OnLoad>
2976 PanelTemplates_DeselectTab(this);
2977 PanelTemplates_TabResize(-10, this);
2978 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
2979 </OnLoad>
2980 <OnClick>
2981 TipBuddy_PlayersFrameTab_OnClick(3);
2982 </OnClick>
2983 </Scripts>
2984 </Button>
2985 <Frame name="TipBuddy_OptionsFrame_PCFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
2986  
2987 <Frames>
2988 <Frame name="TB_PCFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
2989 <Scripts>
2990 <OnShow>
2991 TipBuddy_TipStyleDropDown_OnLoad( "pc_friend" );
2992 </OnShow>
2993 <OnEnter>
2994 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
2995 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
2996 </OnEnter>
2997 <OnLeave>
2998 GameTooltip:Hide();
2999 </OnLeave>
3000 </Scripts>
3001 </Frame>
3002 <CheckButton name="TB_Op_Check1" inherits="TipBuddy_CheckButtonTemplate" id="1" hidden="true">
3003 <Anchors>
3004 <Anchor point="TOPLEFT">
3005 <Offset>
3006 <AbsDimension x="10" y="-6"/>
3007 </Offset>
3008 </Anchor>
3009 </Anchors>
3010 <Scripts>
3011 <OnClick>
3012 <!--TipBuddy_ToggleCheckboxFrame( this );-->
3013 </OnClick>
3014 </Scripts>
3015 </CheckButton>
3016 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
3017 <Size>
3018 <AbsDimension x="164" y="246"/>
3019 </Size>
3020 <Anchors>
3021 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3022 <Offset>
3023 <AbsDimension x="12" y="-22"/>
3024 </Offset>
3025 </Anchor>
3026 </Anchors>
3027 <Frames>
3028 <EditBox name="TB_EditBox_01_1" inherits="TipBuddy_EditBox_Template1" id="1">
3029 </EditBox>
3030 <EditBox name="TB_EditBox_01_2" inherits="TipBuddy_EditBox_Template2">
3031 </EditBox>
3032 </Frames>
3033 </Frame>
3034 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
3035 <Size>
3036 <AbsDimension x="164" y="246"/>
3037 </Size>
3038 <Anchors>
3039 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3040 <Offset>
3041 <AbsDimension x="12" y="-22"/>
3042 </Offset>
3043 </Anchor>
3044 </Anchors>
3045 <Frames>
3046 <CheckButton name="TB_Op_Check78" inherits="TipBuddy_TargetTargetCheckbox_Template" id="78">
3047 <Size>
3048 <AbsDimension x="24" y="24"/>
3049 </Size>
3050 <Anchors>
3051 <Anchor point="TOP" relativeTo="TB_Op_Check1" relativePoint="BOTTOM">
3052 <Offset>
3053 <AbsDimension x="12" y="-3"/>
3054 </Offset>
3055 </Anchor>
3056 </Anchors>
3057 </CheckButton>
3058 <CheckButton name="TB_Op_Check63" inherits="TipBuddy_CheckButtonTemplate" id="63">
3059 <Size>
3060 <AbsDimension x="24" y="24"/>
3061 </Size>
3062 <Anchors>
3063 <Anchor point="TOP" relativeTo="TB_Op_Check78" relativePoint="BOTTOM">
3064 <Offset>
3065 <AbsDimension x="0" y="-1"/>
3066 </Offset>
3067 </Anchor>
3068 </Anchors>
3069 </CheckButton>
3070 <CheckButton name="TB_Op_Check2" inherits="TipBuddy_CheckButtonTemplate" id="2">
3071 <Size>
3072 <AbsDimension x="24" y="24"/>
3073 </Size>
3074 <Anchors>
3075 <Anchor point="TOP" relativeTo="TB_Op_Check63" relativePoint="BOTTOM">
3076 <Offset>
3077 <AbsDimension x="0" y="-1"/>
3078 </Offset>
3079 </Anchor>
3080 </Anchors>
3081 </CheckButton>
3082 <CheckButton name="TB_Op_Check4" inherits="TipBuddy_CheckButtonTemplate" id="4">
3083 <Size>
3084 <AbsDimension x="24" y="24"/>
3085 </Size>
3086 <Anchors>
3087 <Anchor point="TOP" relativeTo="TB_Op_Check2" relativePoint="BOTTOM">
3088 <Offset>
3089 <AbsDimension x="0" y="-1"/>
3090 </Offset>
3091 </Anchor>
3092 </Anchors>
3093 </CheckButton>
3094 <CheckButton name="TB_Op_Check5" inherits="TipBuddy_CheckButtonTemplate" id="5">
3095 <Size>
3096 <AbsDimension x="24" y="24"/>
3097 </Size>
3098 <Anchors>
3099 <Anchor point="TOP" relativeTo="TB_Op_Check4" relativePoint="BOTTOM">
3100 <Offset>
3101 <AbsDimension x="0" y="-1"/>
3102 </Offset>
3103 </Anchor>
3104 </Anchors>
3105 </CheckButton>
3106 </Frames>
3107 </Frame>
3108 <CheckButton name="TB_Op_Check6" inherits="TipBuddy_PVPCheckbox_Template" id="6">
3109 <Size>
3110 <AbsDimension x="24" y="24"/>
3111 </Size>
3112 <Anchors>
3113 <Anchor point="TOP" relativeTo="TB_Op_Check5" relativePoint="BOTTOM">
3114 <Offset>
3115 <AbsDimension x="0" y="-1"/>
3116 </Offset>
3117 </Anchor>
3118 </Anchors>
3119 </CheckButton>
3120 <CheckButton name="TB_Op_Check7" inherits="TipBuddy_CheckButtonTemplate" id="7">
3121 <Size>
3122 <AbsDimension x="24" y="24"/>
3123 </Size>
3124 <Anchors>
3125 <Anchor point="TOP" relativeTo="TB_Op_Check6" relativePoint="BOTTOM">
3126 <Offset>
3127 <AbsDimension x="0" y="-1"/>
3128 </Offset>
3129 </Anchor>
3130 </Anchors>
3131 </CheckButton>
3132 <CheckButton name="TB_Op_Check8" inherits="TipBuddy_CheckButtonTemplate" id="8">
3133 <Size>
3134 <AbsDimension x="24" y="24"/>
3135 </Size>
3136 <Anchors>
3137 <Anchor point="TOP" relativeTo="TB_Op_Check7" relativePoint="BOTTOM">
3138 <Offset>
3139 <AbsDimension x="0" y="-1"/>
3140 </Offset>
3141 </Anchor>
3142 </Anchors>
3143 </CheckButton>
3144 <CheckButton name="TB_Op_Check3" inherits="TipBuddy_HealthbarCheckbox_Template" id="3">
3145 <Size>
3146 <AbsDimension x="24" y="24"/>
3147 </Size>
3148 <Anchors>
3149 <Anchor point="TOP" relativeTo="TB_Op_Check8" relativePoint="BOTTOM">
3150 <Offset>
3151 <AbsDimension x="0" y="-1"/>
3152 </Offset>
3153 </Anchor>
3154 </Anchors>
3155 </CheckButton>
3156 <Frame name="TB_PCFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
3157 <Scripts>
3158 <OnShow>
3159 TipBuddy_BDColorDropDown_OnLoad( "pc_friend" );
3160 </OnShow>
3161 <OnEnter>
3162 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3163 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
3164 </OnEnter>
3165 <OnLeave>
3166 GameTooltip:Hide();
3167 </OnLeave>
3168 </Scripts>
3169 </Frame>
3170 <Button name="TipBuddy_OptionsFrame_ColorPicker1" inherits="TipBuddy_ColorPickerButton_Template" id="1">
3171 <Size>
3172 <AbsDimension x="32" y="32"/>
3173 </Size>
3174 <Anchors>
3175 <Anchor point="LEFT" relativeTo="TB_PCFriend_BDColorDropDown" relativePoint="RIGHT">
3176 <Offset>
3177 <AbsDimension x="-8" y="1"/>
3178 </Offset>
3179 </Anchor>
3180 </Anchors>
3181 </Button>
3182 <Frame name="TB_PCFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
3183 <Scripts>
3184 <OnShow>
3185 TipBuddy_BDBColorDropDown_OnLoad( "pc_friend" );
3186 </OnShow>
3187 <OnEnter>
3188 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3189 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
3190 </OnEnter>
3191 <OnLeave>
3192 GameTooltip:Hide();
3193 </OnLeave>
3194 </Scripts>
3195 </Frame>
3196 <Button name="TipBuddy_OptionsFrame_ColorPicker11" inherits="TipBuddy_ColorPickerButton_Template" id="11">
3197 <Size>
3198 <AbsDimension x="32" y="32"/>
3199 </Size>
3200 <Anchors>
3201 <Anchor point="LEFT" relativeTo="TB_PCFriend_BDBColorDropDown" relativePoint="RIGHT">
3202 <Offset>
3203 <AbsDimension x="-8" y="1"/>
3204 </Offset>
3205 </Anchor>
3206 </Anchors>
3207 </Button>
3208 </Frames>
3209 <Scripts>
3210 <OnLoad>
3211 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
3212 this:SetBackdropColor(0.15, 0.15, 0.15);
3213 getglobal(this:GetName().."Title"):SetText( TB_PC_FRIEND );
3214 </OnLoad>
3215 </Scripts>
3216 </Frame>
3217  
3218 <Frame name="TipBuddy_OptionsFrame_PCParty_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
3219  
3220 <Frames>
3221 <Frame name="TB_PCParty_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
3222 <Scripts>
3223 <OnShow>
3224 TipBuddy_TipStyleDropDown_OnLoad( "pc_party" );
3225 </OnShow>
3226 <OnEnter>
3227 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3228 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
3229 </OnEnter>
3230 <OnLeave>
3231 GameTooltip:Hide();
3232 </OnLeave>
3233 </Scripts>
3234 </Frame>
3235 <CheckButton name="TB_Op_Check9" inherits="TipBuddy_CheckButtonTemplate" id="9" hidden="true">
3236 <Anchors>
3237 <Anchor point="TOPLEFT">
3238 <Offset>
3239 <AbsDimension x="10" y="-6"/>
3240 </Offset>
3241 </Anchor>
3242 </Anchors>
3243 <Scripts>
3244 <OnClick>
3245 <!--TipBuddy_ToggleCheckboxFrame( this );-->
3246 </OnClick>
3247 </Scripts>
3248 </CheckButton>
3249 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
3250 <Size>
3251 <AbsDimension x="164" y="246"/>
3252 </Size>
3253 <Anchors>
3254 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3255 <Offset>
3256 <AbsDimension x="12" y="-22"/>
3257 </Offset>
3258 </Anchor>
3259 </Anchors>
3260 <Frames>
3261 <EditBox name="TB_EditBox_02_1" inherits="TipBuddy_EditBox_Template1" id="2">
3262 </EditBox>
3263 <EditBox name="TB_EditBox_02_2" inherits="TipBuddy_EditBox_Template2">
3264 </EditBox>
3265 </Frames>
3266 </Frame>
3267 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
3268 <Size>
3269 <AbsDimension x="164" y="246"/>
3270 </Size>
3271 <Anchors>
3272 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3273 <Offset>
3274 <AbsDimension x="12" y="-22"/>
3275 </Offset>
3276 </Anchor>
3277 </Anchors>
3278 <Frames>
3279 <CheckButton name="TB_Op_Check79" inherits="TipBuddy_TargetTargetCheckbox_Template" id="79">
3280 <Size>
3281 <AbsDimension x="24" y="24"/>
3282 </Size>
3283 <Anchors>
3284 <Anchor point="TOP" relativeTo="TB_Op_Check9" relativePoint="BOTTOM">
3285 <Offset>
3286 <AbsDimension x="12" y="-3"/>
3287 </Offset>
3288 </Anchor>
3289 </Anchors>
3290 </CheckButton>
3291 <CheckButton name="TB_Op_Check64" inherits="TipBuddy_CheckButtonTemplate" id="64">
3292 <Size>
3293 <AbsDimension x="24" y="24"/>
3294 </Size>
3295 <Anchors>
3296 <Anchor point="TOP" relativeTo="TB_Op_Check79" relativePoint="BOTTOM">
3297 <Offset>
3298 <AbsDimension x="0" y="-1"/>
3299 </Offset>
3300 </Anchor>
3301 </Anchors>
3302 </CheckButton>
3303 <CheckButton name="TB_Op_Check10" inherits="TipBuddy_CheckButtonTemplate" id="10">
3304 <Size>
3305 <AbsDimension x="24" y="24"/>
3306 </Size>
3307 <Anchors>
3308 <Anchor point="TOP" relativeTo="TB_Op_Check64" relativePoint="BOTTOM">
3309 <Offset>
3310 <AbsDimension x="0" y="-1"/>
3311 </Offset>
3312 </Anchor>
3313 </Anchors>
3314 </CheckButton>
3315 <CheckButton name="TB_Op_Check12" inherits="TipBuddy_CheckButtonTemplate" id="12">
3316 <Size>
3317 <AbsDimension x="24" y="24"/>
3318 </Size>
3319 <Anchors>
3320 <Anchor point="TOP" relativeTo="TB_Op_Check10" relativePoint="BOTTOM">
3321 <Offset>
3322 <AbsDimension x="0" y="-1"/>
3323 </Offset>
3324 </Anchor>
3325 </Anchors>
3326 </CheckButton>
3327 <CheckButton name="TB_Op_Check13" inherits="TipBuddy_CheckButtonTemplate" id="13">
3328 <Size>
3329 <AbsDimension x="24" y="24"/>
3330 </Size>
3331 <Anchors>
3332 <Anchor point="TOP" relativeTo="TB_Op_Check12" relativePoint="BOTTOM">
3333 <Offset>
3334 <AbsDimension x="0" y="-1"/>
3335 </Offset>
3336 </Anchor>
3337 </Anchors>
3338 </CheckButton>
3339 </Frames>
3340 </Frame>
3341 <CheckButton name="TB_Op_Check14" inherits="TipBuddy_PVPCheckbox_Template" id="14">
3342 <Size>
3343 <AbsDimension x="24" y="24"/>
3344 </Size>
3345 <Anchors>
3346 <Anchor point="TOP" relativeTo="TB_Op_Check13" relativePoint="BOTTOM">
3347 <Offset>
3348 <AbsDimension x="0" y="-1"/>
3349 </Offset>
3350 </Anchor>
3351 </Anchors>
3352 </CheckButton>
3353 <CheckButton name="TB_Op_Check15" inherits="TipBuddy_CheckButtonTemplate" id="15">
3354 <Size>
3355 <AbsDimension x="24" y="24"/>
3356 </Size>
3357 <Anchors>
3358 <Anchor point="TOP" relativeTo="TB_Op_Check14" relativePoint="BOTTOM">
3359 <Offset>
3360 <AbsDimension x="0" y="-1"/>
3361 </Offset>
3362 </Anchor>
3363 </Anchors>
3364 </CheckButton>
3365 <CheckButton name="TB_Op_Check16" inherits="TipBuddy_CheckButtonTemplate" id="16">
3366 <Size>
3367 <AbsDimension x="24" y="24"/>
3368 </Size>
3369 <Anchors>
3370 <Anchor point="TOP" relativeTo="TB_Op_Check15" relativePoint="BOTTOM">
3371 <Offset>
3372 <AbsDimension x="0" y="-1"/>
3373 </Offset>
3374 </Anchor>
3375 </Anchors>
3376 </CheckButton>
3377 <CheckButton name="TB_Op_Check11" inherits="TipBuddy_HealthbarCheckbox_Template" id="11">
3378 <Size>
3379 <AbsDimension x="24" y="24"/>
3380 </Size>
3381 <Anchors>
3382 <Anchor point="TOP" relativeTo="TB_Op_Check16" relativePoint="BOTTOM">
3383 <Offset>
3384 <AbsDimension x="0" y="-1"/>
3385 </Offset>
3386 </Anchor>
3387 </Anchors>
3388 </CheckButton>
3389 <Frame name="TB_PCParty_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
3390 <Scripts>
3391 <OnShow>
3392 TipBuddy_BDColorDropDown_OnLoad( "pc_party" );
3393 </OnShow>
3394 <OnEnter>
3395 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3396 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
3397 </OnEnter>
3398 <OnLeave>
3399 GameTooltip:Hide();
3400 </OnLeave>
3401 </Scripts>
3402 </Frame>
3403 <Button name="TipBuddy_OptionsFrame_ColorPicker2" inherits="TipBuddy_ColorPickerButton_Template" id="2">
3404 <Size>
3405 <AbsDimension x="32" y="32"/>
3406 </Size>
3407 <Anchors>
3408 <Anchor point="LEFT" relativeTo="TB_PCParty_BDColorDropDown" relativePoint="RIGHT">
3409 <Offset>
3410 <AbsDimension x="-8" y="1"/>
3411 </Offset>
3412 </Anchor>
3413 </Anchors>
3414 </Button>
3415 <Frame name="TB_PCParty_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
3416 <Scripts>
3417 <OnShow>
3418 TipBuddy_BDBColorDropDown_OnLoad( "pc_party" );
3419 </OnShow>
3420 <OnEnter>
3421 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3422 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
3423 </OnEnter>
3424 <OnLeave>
3425 GameTooltip:Hide();
3426 </OnLeave>
3427 </Scripts>
3428 </Frame>
3429 <Button name="TipBuddy_OptionsFrame_ColorPicker12" inherits="TipBuddy_ColorPickerButton_Template" id="12">
3430 <Size>
3431 <AbsDimension x="32" y="32"/>
3432 </Size>
3433 <Anchors>
3434 <Anchor point="LEFT" relativeTo="TB_PCParty_BDBColorDropDown" relativePoint="RIGHT">
3435 <Offset>
3436 <AbsDimension x="-8" y="1"/>
3437 </Offset>
3438 </Anchor>
3439 </Anchors>
3440 </Button>
3441 </Frames>
3442 <Scripts>
3443 <OnLoad>
3444 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
3445 this:SetBackdropColor(0.15, 0.15, 0.15);
3446 getglobal(this:GetName().."Title"):SetText( TB_PC_PARTY );
3447 </OnLoad>
3448 </Scripts>
3449 </Frame>
3450  
3451 <Frame name="TipBuddy_OptionsFrame_PCEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
3452  
3453 <Frames>
3454 <Frame name="TB_PCEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
3455 <Scripts>
3456 <OnShow>
3457 TipBuddy_TipStyleDropDown_OnLoad( "pc_enemy" );
3458 </OnShow>
3459 <OnEnter>
3460 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3461 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
3462 </OnEnter>
3463 <OnLeave>
3464 GameTooltip:Hide();
3465 </OnLeave>
3466 </Scripts>
3467 </Frame>
3468 <CheckButton name="TB_Op_Check17" inherits="TipBuddy_CheckButtonTemplate" id="17" hidden="true">
3469 <Anchors>
3470 <Anchor point="TOPLEFT">
3471 <Offset>
3472 <AbsDimension x="10" y="-6"/>
3473 </Offset>
3474 </Anchor>
3475 </Anchors>
3476 <Scripts>
3477 <OnClick>
3478 <!--TipBuddy_ToggleCheckboxFrame( this );-->
3479 </OnClick>
3480 </Scripts>
3481 </CheckButton>
3482 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
3483 <Size>
3484 <AbsDimension x="164" y="246"/>
3485 </Size>
3486 <Anchors>
3487 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3488 <Offset>
3489 <AbsDimension x="12" y="-22"/>
3490 </Offset>
3491 </Anchor>
3492 </Anchors>
3493 <Frames>
3494 <EditBox name="TB_EditBox_03_1" inherits="TipBuddy_EditBox_Template1" id="3">
3495 </EditBox>
3496 <EditBox name="TB_EditBox_03_2" inherits="TipBuddy_EditBox_Template2">
3497 </EditBox>
3498 </Frames>
3499 </Frame>
3500 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
3501 <Size>
3502 <AbsDimension x="164" y="246"/>
3503 </Size>
3504 <Anchors>
3505 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PlayersFrame">
3506 <Offset>
3507 <AbsDimension x="12" y="-22"/>
3508 </Offset>
3509 </Anchor>
3510 </Anchors>
3511 <Frames>
3512  
3513 <CheckButton name="TB_Op_Check80" inherits="TipBuddy_TargetTargetCheckbox_Template" id="80">
3514 <Size>
3515 <AbsDimension x="24" y="24"/>
3516 </Size>
3517 <Anchors>
3518 <Anchor point="TOP" relativeTo="TB_Op_Check17" relativePoint="BOTTOM">
3519 <Offset>
3520 <AbsDimension x="12" y="-3"/>
3521 </Offset>
3522 </Anchor>
3523 </Anchors>
3524 </CheckButton>
3525 <CheckButton name="TB_Op_Check65" inherits="TipBuddy_CheckButtonTemplate" id="65">
3526 <Size>
3527 <AbsDimension x="24" y="24"/>
3528 </Size>
3529 <Anchors>
3530 <Anchor point="TOP" relativeTo="TB_Op_Check80" relativePoint="BOTTOM">
3531 <Offset>
3532 <AbsDimension x="0" y="-1"/>
3533 </Offset>
3534 </Anchor>
3535 </Anchors>
3536 </CheckButton>
3537 <CheckButton name="TB_Op_Check18" inherits="TipBuddy_CheckButtonTemplate" id="18">
3538 <Size>
3539 <AbsDimension x="24" y="24"/>
3540 </Size>
3541 <Anchors>
3542 <Anchor point="TOP" relativeTo="TB_Op_Check65" relativePoint="BOTTOM">
3543 <Offset>
3544 <AbsDimension x="0" y="-1"/>
3545 </Offset>
3546 </Anchor>
3547 </Anchors>
3548 </CheckButton>
3549 <!-- HIDDEN -->
3550 <CheckButton name="TB_Op_Check20" inherits="TipBuddy_CheckButtonTemplate" id="20">
3551 <Size>
3552 <AbsDimension x="24" y="24"/>
3553 </Size>
3554 <Anchors>
3555 <Anchor point="TOP" relativeTo="TB_Op_Check18" relativePoint="BOTTOM">
3556 <Offset>
3557 <AbsDimension x="0" y="-1"/>
3558 </Offset>
3559 </Anchor>
3560 </Anchors>
3561 </CheckButton>
3562 <CheckButton name="TB_Op_Check21" inherits="TipBuddy_CheckButtonTemplate" id="21">
3563 <Size>
3564 <AbsDimension x="24" y="24"/>
3565 </Size>
3566 <Anchors>
3567 <Anchor point="TOP" relativeTo="TB_Op_Check20" relativePoint="BOTTOM">
3568 <Offset>
3569 <AbsDimension x="0" y="-1"/>
3570 </Offset>
3571 </Anchor>
3572 </Anchors>
3573 </CheckButton>
3574 </Frames>
3575 </Frame>
3576 <CheckButton name="TB_Op_Check22" inherits="TipBuddy_PVPCheckbox_Template" id="22">
3577 <Size>
3578 <AbsDimension x="24" y="24"/>
3579 </Size>
3580 <Anchors>
3581 <Anchor point="TOP" relativeTo="TB_Op_Check21" relativePoint="BOTTOM">
3582 <Offset>
3583 <AbsDimension x="0" y="-1"/>
3584 </Offset>
3585 </Anchor>
3586 </Anchors>
3587 </CheckButton>
3588 <CheckButton name="TB_Op_Check23" inherits="TipBuddy_CheckButtonTemplate" id="23">
3589 <Size>
3590 <AbsDimension x="24" y="24"/>
3591 </Size>
3592 <Anchors>
3593 <Anchor point="TOP" relativeTo="TB_Op_Check22" relativePoint="BOTTOM">
3594 <Offset>
3595 <AbsDimension x="0" y="-1"/>
3596 </Offset>
3597 </Anchor>
3598 </Anchors>
3599 </CheckButton>
3600 <CheckButton name="TB_Op_Check24" inherits="TipBuddy_CheckButtonTemplate" id="24">
3601 <Size>
3602 <AbsDimension x="24" y="24"/>
3603 </Size>
3604 <Anchors>
3605 <Anchor point="TOP" relativeTo="TB_Op_Check23" relativePoint="BOTTOM">
3606 <Offset>
3607 <AbsDimension x="0" y="-1"/>
3608 </Offset>
3609 </Anchor>
3610 </Anchors>
3611 </CheckButton>
3612 <CheckButton name="TB_Op_Check19" inherits="TipBuddy_HealthbarCheckbox_Template" id="19">
3613 <Size>
3614 <AbsDimension x="24" y="24"/>
3615 </Size>
3616 <Anchors>
3617 <Anchor point="TOP" relativeTo="TB_Op_Check24" relativePoint="BOTTOM">
3618 <Offset>
3619 <AbsDimension x="0" y="-1"/>
3620 </Offset>
3621 </Anchor>
3622 </Anchors>
3623 </CheckButton>
3624 <Frame name="TB_PCEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
3625 <Scripts>
3626 <OnShow>
3627 TipBuddy_BDColorDropDown_OnLoad( "pc_enemy" );
3628 </OnShow>
3629 <OnEnter>
3630 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3631 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
3632 </OnEnter>
3633 <OnLeave>
3634 GameTooltip:Hide();
3635 </OnLeave>
3636 </Scripts>
3637 </Frame>
3638 <Button name="TipBuddy_OptionsFrame_ColorPicker3" inherits="TipBuddy_ColorPickerButton_Template" id="3">
3639 <Size>
3640 <AbsDimension x="32" y="32"/>
3641 </Size>
3642 <Anchors>
3643 <Anchor point="LEFT" relativeTo="TB_PCEnemy_BDColorDropDown" relativePoint="RIGHT">
3644 <Offset>
3645 <AbsDimension x="-8" y="1"/>
3646 </Offset>
3647 </Anchor>
3648 </Anchors>
3649 </Button>
3650 <Frame name="TB_PCEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
3651 <Scripts>
3652 <OnShow>
3653 TipBuddy_BDBColorDropDown_OnLoad( "pc_enemy" );
3654 </OnShow>
3655 <OnEnter>
3656 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3657 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
3658 </OnEnter>
3659 <OnLeave>
3660 GameTooltip:Hide();
3661 </OnLeave>
3662 </Scripts>
3663 </Frame>
3664 <Button name="TipBuddy_OptionsFrame_ColorPicker13" inherits="TipBuddy_ColorPickerButton_Template" id="13">
3665 <Size>
3666 <AbsDimension x="32" y="32"/>
3667 </Size>
3668 <Anchors>
3669 <Anchor point="LEFT" relativeTo="TB_PCEnemy_BDBColorDropDown" relativePoint="RIGHT">
3670 <Offset>
3671 <AbsDimension x="-8" y="1"/>
3672 </Offset>
3673 </Anchor>
3674 </Anchors>
3675 </Button>
3676 </Frames>
3677 <Scripts>
3678 <OnLoad>
3679 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
3680 this:SetBackdropColor(0.15, 0.15, 0.15);
3681 getglobal(this:GetName().."Title"):SetText( TB_PC_ENEMY );
3682 </OnLoad>
3683 </Scripts>
3684 </Frame>
3685  
3686 </Frames>
3687 </Frame>
3688  
3689  
3690 <!-- NPC FRAME -->
3691 <Frame name="TipBuddy_OptionsFrame_NPCsFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">
3692  
3693 <Frames>
3694  
3695 <!-- TABFRAME TITLE -->
3696 <Frame name="TipBuddy_OptionsFrame_NPCsFrameTitle">
3697 <Size>
3698 <AbsDimension x="210" y="22"/>
3699 </Size>
3700 <Anchors>
3701 <Anchor point="BOTTOM" relativePoint="TOP">
3702 <Offset>
3703 <AbsDimension x="0" y="20"/>
3704 </Offset>
3705 </Anchor>
3706 </Anchors>
3707 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
3708 <EdgeSize>
3709 <AbsValue val="8"/>
3710 </EdgeSize>
3711 <TileSize>
3712 <AbsValue val="8"/>
3713 </TileSize>
3714 <BackgroundInsets>
3715 <AbsInset left="2" right="2" top="2" bottom="2"/>
3716 </BackgroundInsets>
3717 </Backdrop>
3718 <Layers>
3719 <Layer>
3720 <FontString inherits="GameFontHighlight" text="NPCs">
3721 <Anchors>
3722 <Anchor point="CENTER">
3723 <Offset>
3724 <AbsDimension x="0" y="0"/>
3725 </Offset>
3726 </Anchor>
3727 </Anchors>
3728 </FontString>
3729 </Layer>
3730 </Layers>
3731 <Scripts>
3732 <OnLoad>
3733 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
3734 this:SetBackdropColor(0.15, 0.15, 0.15);
3735 </OnLoad>
3736 </Scripts>
3737 </Frame>
3738  
3739 <!-- NPCS TABS -->
3740 <Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
3741 <Size>
3742 <AbsDimension x="100" y="32"/>
3743 </Size>
3744 <Anchors>
3745 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
3746 <Offset>
3747 <AbsDimension x="4" y="30"/>
3748 </Offset>
3749 </Anchor>
3750 </Anchors>
3751 <Scripts>
3752 <OnLoad>
3753 PanelTemplates_SelectTab(this);
3754 PanelTemplates_TabResize(-10, this);
3755 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
3756 </OnLoad>
3757 <OnClick>
3758 TipBuddy_NPCsFrameTab_OnClick(1);
3759 </OnClick>
3760 </Scripts>
3761 </Button>
3762  
3763 <Button name="$parentTab2" inherits="TabButtonTemplate" text="Neutral" id="2">
3764 <Size>
3765 <AbsDimension x="100" y="32"/>
3766 </Size>
3767 <Anchors>
3768 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">>
3769 <Offset>
3770 <AbsDimension x="0" y="30"/>
3771 </Offset>
3772 </Anchor>
3773 </Anchors>
3774 <Scripts>
3775 <OnLoad>
3776 PanelTemplates_DeselectTab(this);
3777 PanelTemplates_TabResize(-10, this);
3778 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
3779 </OnLoad>
3780 <OnClick>
3781 TipBuddy_NPCsFrameTab_OnClick(2);
3782 </OnClick>
3783 </Scripts>
3784 </Button>
3785  
3786 <Button name="$parentTab3" inherits="TabButtonTemplate" text="Enemy" id="3">
3787 <Size>
3788 <AbsDimension x="100" y="32"/>
3789 </Size>
3790 <Anchors>
3791 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
3792 <Offset>
3793 <AbsDimension x="-4" y="30"/>
3794 </Offset>
3795 </Anchor>
3796 </Anchors>
3797 <Scripts>
3798 <OnLoad>
3799 PanelTemplates_DeselectTab(this);
3800 PanelTemplates_TabResize(-10, this);
3801 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
3802 </OnLoad>
3803 <OnClick>
3804 TipBuddy_NPCsFrameTab_OnClick(3);
3805 </OnClick>
3806 </Scripts>
3807 </Button>
3808 <Frame name="TipBuddy_OptionsFrame_NPCFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
3809  
3810 <Frames>
3811 <Frame name="TB_NPCFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
3812 <Scripts>
3813 <OnShow>
3814 TipBuddy_TipStyleDropDown_OnLoad( "npc_friend" );
3815 </OnShow>
3816 <OnEnter>
3817 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3818 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
3819 </OnEnter>
3820 <OnLeave>
3821 GameTooltip:Hide();
3822 </OnLeave>
3823 </Scripts>
3824 </Frame>
3825 <CheckButton name="TB_Op_Check25" inherits="TipBuddy_CheckButtonTemplate" id="25" hidden="true">
3826 <Anchors>
3827 <Anchor point="TOPLEFT">
3828 <Offset>
3829 <AbsDimension x="10" y="-6"/>
3830 </Offset>
3831 </Anchor>
3832 </Anchors>
3833 <Scripts>
3834 <OnClick>
3835 <!--TipBuddy_ToggleCheckboxFrame( this );-->
3836 </OnClick>
3837 </Scripts>
3838 </CheckButton>
3839 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
3840 <Size>
3841 <AbsDimension x="164" y="246"/>
3842 </Size>
3843 <Anchors>
3844 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
3845 <Offset>
3846 <AbsDimension x="12" y="-22"/>
3847 </Offset>
3848 </Anchor>
3849 </Anchors>
3850 <Frames>
3851 <EditBox name="TB_EditBox_04_1" inherits="TipBuddy_EditBox_Template1" id="4">
3852 </EditBox>
3853 <EditBox name="TB_EditBox_04_2" inherits="TipBuddy_EditBox_Template2">
3854 </EditBox>
3855 </Frames>
3856 </Frame>
3857 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
3858 <Size>
3859 <AbsDimension x="164" y="246"/>
3860 </Size>
3861 <Anchors>
3862 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
3863 <Offset>
3864 <AbsDimension x="12" y="-22"/>
3865 </Offset>
3866 </Anchor>
3867 </Anchors>
3868 <Frames>
3869  
3870 <CheckButton name="TB_Op_Check81" inherits="TipBuddy_TargetTargetCheckbox_Template" id="81">
3871 <Size>
3872 <AbsDimension x="24" y="24"/>
3873 </Size>
3874 <Anchors>
3875 <Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
3876 <Offset>
3877 <AbsDimension x="12" y="-4"/>
3878 </Offset>
3879 </Anchor>
3880 </Anchors>
3881 </CheckButton>
3882 <CheckButton name="TB_Op_Check26" inherits="TipBuddy_CheckButtonTemplate" id="26">
3883 <Size>
3884 <AbsDimension x="24" y="24"/>
3885 </Size>
3886 <Anchors>
3887 <Anchor point="TOP" relativeTo="TB_Op_Check81" relativePoint="BOTTOM">
3888 <Offset>
3889 <AbsDimension x="0" y="-1"/>
3890 </Offset>
3891 </Anchor>
3892 </Anchors>
3893 </CheckButton>
3894 <CheckButton name="TB_Op_Check28" inherits="TipBuddy_CheckButtonTemplate" id="28">
3895 <Size>
3896 <AbsDimension x="24" y="24"/>
3897 </Size>
3898 <Anchors>
3899 <Anchor point="TOP" relativeTo="TB_Op_Check26" relativePoint="BOTTOM">
3900 <Offset>
3901 <AbsDimension x="0" y="-1"/>
3902 </Offset>
3903 </Anchor>
3904 </Anchors>
3905 </CheckButton>
3906 <CheckButton name="TB_Op_Check29" inherits="TipBuddy_CheckButtonTemplate" id="29">
3907 <Size>
3908 <AbsDimension x="24" y="24"/>
3909 </Size>
3910 <Anchors>
3911 <Anchor point="TOP" relativeTo="TB_Op_Check28" relativePoint="BOTTOM">
3912 <Offset>
3913 <AbsDimension x="0" y="-1"/>
3914 </Offset>
3915 </Anchor>
3916 </Anchors>
3917 </CheckButton>
3918 </Frames>
3919 </Frame>
3920 <CheckButton name="TB_Op_Check30" inherits="TipBuddy_PVPCheckbox_Template" id="30">
3921 <Size>
3922 <AbsDimension x="24" y="24"/>
3923 </Size>
3924 <Anchors>
3925 <Anchor point="TOP" relativeTo="TB_Op_Check29" relativePoint="BOTTOM">
3926 <Offset>
3927 <AbsDimension x="0" y="-24"/>
3928 </Offset>
3929 </Anchor>
3930 </Anchors>
3931 </CheckButton>
3932 <CheckButton name="TB_Op_Check31" inherits="TipBuddy_CheckButtonTemplate" id="31">
3933 <Size>
3934 <AbsDimension x="24" y="24"/>
3935 </Size>
3936 <Anchors>
3937 <Anchor point="TOP" relativeTo="TB_Op_Check30" relativePoint="BOTTOM">
3938 <Offset>
3939 <AbsDimension x="0" y="-1"/>
3940 </Offset>
3941 </Anchor>
3942 </Anchors>
3943 </CheckButton>
3944 <!-- NOT USED -->
3945 <CheckButton name="TB_Op_Check32" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="32">
3946 <Size>
3947 <AbsDimension x="24" y="24"/>
3948 </Size>
3949 <Anchors>
3950 <Anchor point="TOP" relativeTo="TB_Op_Check31" relativePoint="BOTTOM">
3951 <Offset>
3952 <AbsDimension x="0" y="-1"/>
3953 </Offset>
3954 </Anchor>
3955 </Anchors>
3956 </CheckButton>
3957 <CheckButton name="TB_Op_Check27" inherits="TipBuddy_HealthbarCheckbox_Template" id="27">
3958 <Size>
3959 <AbsDimension x="24" y="24"/>
3960 </Size>
3961 <Anchors>
3962 <Anchor point="TOP" relativeTo="TB_Op_Check31" relativePoint="BOTTOM">
3963 <Offset>
3964 <AbsDimension x="0" y="-1"/>
3965 </Offset>
3966 </Anchor>
3967 </Anchors>
3968 </CheckButton>
3969 <Frame name="TB_NPCFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
3970 <Scripts>
3971 <OnShow>
3972 TipBuddy_BDColorDropDown_OnLoad( "npc_friend" );
3973 </OnShow>
3974 <OnEnter>
3975 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
3976 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
3977 </OnEnter>
3978 <OnLeave>
3979 GameTooltip:Hide();
3980 </OnLeave>
3981 </Scripts>
3982 </Frame>
3983 <Button name="TipBuddy_OptionsFrame_ColorPicker4" inherits="TipBuddy_ColorPickerButton_Template" id="4">
3984 <Size>
3985 <AbsDimension x="32" y="32"/>
3986 </Size>
3987 <Anchors>
3988 <Anchor point="LEFT" relativeTo="TB_NPCFriend_BDColorDropDown" relativePoint="RIGHT">
3989 <Offset>
3990 <AbsDimension x="-8" y="1"/>
3991 </Offset>
3992 </Anchor>
3993 </Anchors>
3994 </Button>
3995 <Frame name="TB_NPCFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
3996 <Scripts>
3997 <OnShow>
3998 TipBuddy_BDBColorDropDown_OnLoad( "npc_friend" );
3999 </OnShow>
4000 <OnEnter>
4001 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4002 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
4003 </OnEnter>
4004 <OnLeave>
4005 GameTooltip:Hide();
4006 </OnLeave>
4007 </Scripts>
4008 </Frame>
4009 <Button name="TipBuddy_OptionsFrame_ColorPicker14" inherits="TipBuddy_ColorPickerButton_Template" id="14">
4010 <Size>
4011 <AbsDimension x="32" y="32"/>
4012 </Size>
4013 <Anchors>
4014 <Anchor point="LEFT" relativeTo="TB_NPCFriend_BDBColorDropDown" relativePoint="RIGHT">
4015 <Offset>
4016 <AbsDimension x="-8" y="1"/>
4017 </Offset>
4018 </Anchor>
4019 </Anchors>
4020 </Button>
4021 </Frames>
4022 <Scripts>
4023 <OnLoad>
4024 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
4025 this:SetBackdropColor(0.15, 0.15, 0.15);
4026 getglobal(this:GetName().."Title"):SetText( TB_NPC_FRIEND );
4027 </OnLoad>
4028 </Scripts>
4029 </Frame>
4030  
4031 <Frame name="TipBuddy_OptionsFrame_NPCNeutral_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
4032  
4033 <Frames>
4034 <Frame name="TB_NPCNeutral_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
4035 <Scripts>
4036 <OnShow>
4037 TipBuddy_TipStyleDropDown_OnLoad( "npc_neutral" );
4038 </OnShow>
4039 <OnEnter>
4040 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4041 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
4042 </OnEnter>
4043 <OnLeave>
4044 GameTooltip:Hide();
4045 </OnLeave>
4046 </Scripts>
4047 </Frame>
4048 <CheckButton name="TB_Op_Check70" inherits="TipBuddy_CheckButtonTemplate" id="70" hidden="true">
4049 <Anchors>
4050 <Anchor point="TOPLEFT">
4051 <Offset>
4052 <AbsDimension x="10" y="-6"/>
4053 </Offset>
4054 </Anchor>
4055 </Anchors>
4056 <Scripts>
4057 <OnClick>
4058 <!--TipBuddy_ToggleCheckboxFrame( this );-->
4059 </OnClick>
4060 </Scripts>
4061 </CheckButton>
4062 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
4063 <Size>
4064 <AbsDimension x="164" y="246"/>
4065 </Size>
4066 <Anchors>
4067 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
4068 <Offset>
4069 <AbsDimension x="12" y="-22"/>
4070 </Offset>
4071 </Anchor>
4072 </Anchors>
4073 <Frames>
4074 <EditBox name="TB_EditBox_05_1" inherits="TipBuddy_EditBox_Template1" id="5">
4075 </EditBox>
4076 <EditBox name="TB_EditBox_05_2" inherits="TipBuddy_EditBox_Template2">
4077 </EditBox>
4078 </Frames>
4079 </Frame>
4080 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
4081 <Size>
4082 <AbsDimension x="164" y="246"/>
4083 </Size>
4084 <Anchors>
4085 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
4086 <Offset>
4087 <AbsDimension x="12" y="-22"/>
4088 </Offset>
4089 </Anchor>
4090 </Anchors>
4091 <Frames>
4092  
4093 <CheckButton name="TB_Op_Check82" inherits="TipBuddy_TargetTargetCheckbox_Template" id="82">
4094 <Size>
4095 <AbsDimension x="24" y="24"/>
4096 </Size>
4097 <Anchors>
4098 <Anchor point="TOP" relativeTo="TB_Op_Check70" relativePoint="BOTTOM">
4099 <Offset>
4100 <AbsDimension x="12" y="-4"/>
4101 </Offset>
4102 </Anchor>
4103 </Anchors>
4104 </CheckButton>
4105 <CheckButton name="TB_Op_Check71" inherits="TipBuddy_CheckButtonTemplate" id="71">
4106 <Size>
4107 <AbsDimension x="24" y="24"/>
4108 </Size>
4109 <Anchors>
4110 <Anchor point="TOP" relativeTo="TB_Op_Check82" relativePoint="BOTTOM">
4111 <Offset>
4112 <AbsDimension x="0" y="-1"/>
4113 </Offset>
4114 </Anchor>
4115 </Anchors>
4116 </CheckButton>
4117 <CheckButton name="TB_Op_Check73" inherits="TipBuddy_CheckButtonTemplate" id="73">
4118 <Size>
4119 <AbsDimension x="24" y="24"/>
4120 </Size>
4121 <Anchors>
4122 <Anchor point="TOP" relativeTo="TB_Op_Check71" relativePoint="BOTTOM">
4123 <Offset>
4124 <AbsDimension x="0" y="-1"/>
4125 </Offset>
4126 </Anchor>
4127 </Anchors>
4128 </CheckButton>
4129 <CheckButton name="TB_Op_Check74" inherits="TipBuddy_CheckButtonTemplate" id="74">
4130 <Size>
4131 <AbsDimension x="24" y="24"/>
4132 </Size>
4133 <Anchors>
4134 <Anchor point="TOP" relativeTo="TB_Op_Check73" relativePoint="BOTTOM">
4135 <Offset>
4136 <AbsDimension x="0" y="-1"/>
4137 </Offset>
4138 </Anchor>
4139 </Anchors>
4140 </CheckButton>
4141 </Frames>
4142 </Frame>
4143 <CheckButton name="TB_Op_Check75" inherits="TipBuddy_PVPCheckbox_Template" id="75">
4144 <Size>
4145 <AbsDimension x="24" y="24"/>
4146 </Size>
4147 <Anchors>
4148 <Anchor point="TOP" relativeTo="TB_Op_Check74" relativePoint="BOTTOM">
4149 <Offset>
4150 <AbsDimension x="0" y="-24"/>
4151 </Offset>
4152 </Anchor>
4153 </Anchors>
4154 </CheckButton>
4155 <CheckButton name="TB_Op_Check76" inherits="TipBuddy_CheckButtonTemplate" id="76">
4156 <Size>
4157 <AbsDimension x="24" y="24"/>
4158 </Size>
4159 <Anchors>
4160 <Anchor point="TOP" relativeTo="TB_Op_Check75" relativePoint="BOTTOM">
4161 <Offset>
4162 <AbsDimension x="0" y="-1"/>
4163 </Offset>
4164 </Anchor>
4165 </Anchors>
4166 </CheckButton>
4167 <!-- NOT USED -->
4168 <CheckButton name="TB_Op_Check77" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="77">
4169 <Size>
4170 <AbsDimension x="24" y="24"/>
4171 </Size>
4172 <Anchors>
4173 <Anchor point="TOP" relativeTo="TB_Op_Check76" relativePoint="BOTTOM">
4174 <Offset>
4175 <AbsDimension x="0" y="-1"/>
4176 </Offset>
4177 </Anchor>
4178 </Anchors>
4179 </CheckButton>
4180 <CheckButton name="TB_Op_Check72" inherits="TipBuddy_HealthbarCheckbox_Template" id="72">
4181 <Size>
4182 <AbsDimension x="24" y="24"/>
4183 </Size>
4184 <Anchors>
4185 <Anchor point="TOP" relativeTo="TB_Op_Check76" relativePoint="BOTTOM">
4186 <Offset>
4187 <AbsDimension x="0" y="-1"/>
4188 </Offset>
4189 </Anchor>
4190 </Anchors>
4191 </CheckButton>
4192 <Frame name="TB_NPCNeutral_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
4193 <Scripts>
4194 <OnShow>
4195 TipBuddy_BDColorDropDown_OnLoad( "npc_neutral" );
4196 </OnShow>
4197 <OnEnter>
4198 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4199 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
4200 </OnEnter>
4201 <OnLeave>
4202 GameTooltip:Hide();
4203 </OnLeave>
4204 </Scripts>
4205 </Frame>
4206 <Button name="TipBuddy_OptionsFrame_ColorPicker5" inherits="TipBuddy_ColorPickerButton_Template" id="5">
4207 <Size>
4208 <AbsDimension x="32" y="32"/>
4209 </Size>
4210 <Anchors>
4211 <Anchor point="LEFT" relativeTo="TB_NPCNeutral_BDColorDropDown" relativePoint="RIGHT">
4212 <Offset>
4213 <AbsDimension x="-8" y="1"/>
4214 </Offset>
4215 </Anchor>
4216 </Anchors>
4217 </Button>
4218 <Frame name="TB_NPCNeutral_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
4219 <Scripts>
4220 <OnShow>
4221 TipBuddy_BDBColorDropDown_OnLoad( "npc_neutral" );
4222 </OnShow>
4223 <OnEnter>
4224 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4225 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
4226 </OnEnter>
4227 <OnLeave>
4228 GameTooltip:Hide();
4229 </OnLeave>
4230 </Scripts>
4231 </Frame>
4232 <Button name="TipBuddy_OptionsFrame_ColorPicker15" inherits="TipBuddy_ColorPickerButton_Template" id="15">
4233 <Size>
4234 <AbsDimension x="32" y="32"/>
4235 </Size>
4236 <Anchors>
4237 <Anchor point="LEFT" relativeTo="TB_NPCNeutral_BDBColorDropDown" relativePoint="RIGHT">
4238 <Offset>
4239 <AbsDimension x="-8" y="1"/>
4240 </Offset>
4241 </Anchor>
4242 </Anchors>
4243 </Button>
4244 </Frames>
4245 <Scripts>
4246 <OnLoad>
4247 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
4248 this:SetBackdropColor(0.15, 0.15, 0.15);
4249 getglobal(this:GetName().."Title"):SetText( TB_NPC_NEUTRAL );
4250 </OnLoad>
4251 </Scripts>
4252 </Frame>
4253  
4254 <!-- /script TipBuddy_OptionsFrame_NPCEnemy_Options_Checks:Hide(); TipBuddy_OptionsFrame_NPCEnemy_Options_EB:Show() -->
4255 <Frame name="TipBuddy_OptionsFrame_NPCEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
4256  
4257 <Frames>
4258 <Frame name="TB_NPCEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
4259 <Scripts>
4260 <OnShow>
4261 TipBuddy_TipStyleDropDown_OnLoad( "npc_enemy" );
4262 </OnShow>
4263 <OnEnter>
4264 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4265 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
4266 </OnEnter>
4267 <OnLeave>
4268 GameTooltip:Hide();
4269 </OnLeave>
4270 </Scripts>
4271 </Frame>
4272 <CheckButton name="TB_Op_Check33" inherits="TipBuddy_CheckButtonTemplate" id="33" hidden="true">
4273 <Anchors>
4274 <Anchor point="TOPLEFT">
4275 <Offset>
4276 <AbsDimension x="10" y="-6"/>
4277 </Offset>
4278 </Anchor>
4279 </Anchors>
4280 <Scripts>
4281 <OnClick>
4282 <!--TipBuddy_ToggleCheckboxFrame( this );-->
4283 </OnClick>
4284 </Scripts>
4285 </CheckButton>
4286 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
4287 <Size>
4288 <AbsDimension x="164" y="246"/>
4289 </Size>
4290 <Anchors>
4291 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
4292 <Offset>
4293 <AbsDimension x="12" y="-22"/>
4294 </Offset>
4295 </Anchor>
4296 </Anchors>
4297 <Frames>
4298 <EditBox name="TB_EditBox_06_1" inherits="TipBuddy_EditBox_Template1" id="6">
4299 </EditBox>
4300 <EditBox name="TB_EditBox_06_2" inherits="TipBuddy_EditBox_Template2">
4301 </EditBox>
4302 </Frames>
4303 </Frame>
4304 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
4305 <Size>
4306 <AbsDimension x="164" y="246"/>
4307 </Size>
4308 <Anchors>
4309 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_NPCsFrame">
4310 <Offset>
4311 <AbsDimension x="12" y="-22"/>
4312 </Offset>
4313 </Anchor>
4314 </Anchors>
4315 <Frames>
4316  
4317 <CheckButton name="TB_Op_Check83" inherits="TipBuddy_TargetTargetCheckbox_Template" id="83">
4318 <Size>
4319 <AbsDimension x="24" y="24"/>
4320 </Size>
4321 <Anchors>
4322 <Anchor point="TOP" relativeTo="TB_Op_Check33" relativePoint="BOTTOM">
4323 <Offset>
4324 <AbsDimension x="12" y="-4"/>
4325 </Offset>
4326 </Anchor>
4327 </Anchors>
4328 </CheckButton>
4329 <CheckButton name="TB_Op_Check34" inherits="TipBuddy_CheckButtonTemplate" id="34">
4330 <Size>
4331 <AbsDimension x="24" y="24"/>
4332 </Size>
4333 <Anchors>
4334 <Anchor point="TOP" relativeTo="TB_Op_Check83" relativePoint="BOTTOM">
4335 <Offset>
4336 <AbsDimension x="0" y="-1"/>
4337 </Offset>
4338 </Anchor>
4339 </Anchors>
4340 </CheckButton>
4341 <CheckButton name="TB_Op_Check36" inherits="TipBuddy_CheckButtonTemplate" id="36">
4342 <Size>
4343 <AbsDimension x="24" y="24"/>
4344 </Size>
4345 <Anchors>
4346 <Anchor point="TOP" relativeTo="TB_Op_Check34" relativePoint="BOTTOM">
4347 <Offset>
4348 <AbsDimension x="0" y="-1"/>
4349 </Offset>
4350 </Anchor>
4351 </Anchors>
4352 </CheckButton>
4353 <CheckButton name="TB_Op_Check37" inherits="TipBuddy_CheckButtonTemplate" id="37">
4354 <Size>
4355 <AbsDimension x="24" y="24"/>
4356 </Size>
4357 <Anchors>
4358 <Anchor point="TOP" relativeTo="TB_Op_Check36" relativePoint="BOTTOM">
4359 <Offset>
4360 <AbsDimension x="0" y="-1"/>
4361 </Offset>
4362 </Anchor>
4363 </Anchors>
4364 </CheckButton>
4365 </Frames>
4366 </Frame>
4367 <CheckButton name="TB_Op_Check38" inherits="TipBuddy_PVPCheckbox_Template" id="38">
4368 <Size>
4369 <AbsDimension x="24" y="24"/>
4370 </Size>
4371 <Anchors>
4372 <Anchor point="TOP" relativeTo="TB_Op_Check37" relativePoint="BOTTOM">
4373 <Offset>
4374 <AbsDimension x="0" y="-24"/>
4375 </Offset>
4376 </Anchor>
4377 </Anchors>
4378 </CheckButton>
4379 <CheckButton name="TB_Op_Check39" inherits="TipBuddy_CheckButtonTemplate" id="39">
4380 <Size>
4381 <AbsDimension x="24" y="24"/>
4382 </Size>
4383 <Anchors>
4384 <Anchor point="TOP" relativeTo="TB_Op_Check38" relativePoint="BOTTOM">
4385 <Offset>
4386 <AbsDimension x="0" y="-1"/>
4387 </Offset>
4388 </Anchor>
4389 </Anchors>
4390 </CheckButton>
4391 <!-- NOT USED -->
4392 <CheckButton name="TB_Op_Check40" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="40">
4393 <Size>
4394 <AbsDimension x="24" y="24"/>
4395 </Size>
4396 <Anchors>
4397 <Anchor point="TOP" relativeTo="TB_Op_Check39" relativePoint="BOTTOM">
4398 <Offset>
4399 <AbsDimension x="0" y="-1"/>
4400 </Offset>
4401 </Anchor>
4402 </Anchors>
4403 </CheckButton>
4404 <CheckButton name="TB_Op_Check35" inherits="TipBuddy_HealthbarCheckbox_Template" id="35">
4405 <Size>
4406 <AbsDimension x="24" y="24"/>
4407 </Size>
4408 <Anchors>
4409 <Anchor point="TOP" relativeTo="TB_Op_Check39" relativePoint="BOTTOM">
4410 <Offset>
4411 <AbsDimension x="0" y="-1"/>
4412 </Offset>
4413 </Anchor>
4414 </Anchors>
4415 </CheckButton>
4416 <Frame name="TB_NPCEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
4417 <Scripts>
4418 <OnShow>
4419 TipBuddy_BDColorDropDown_OnLoad( "npc_enemy" );
4420 </OnShow>
4421 <OnEnter>
4422 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4423 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
4424 </OnEnter>
4425 <OnLeave>
4426 GameTooltip:Hide();
4427 </OnLeave>
4428 </Scripts>
4429 </Frame>
4430 <Button name="TipBuddy_OptionsFrame_ColorPicker6" inherits="TipBuddy_ColorPickerButton_Template" id="6">
4431 <Size>
4432 <AbsDimension x="32" y="32"/>
4433 </Size>
4434 <Anchors>
4435 <Anchor point="LEFT" relativeTo="TB_NPCEnemy_BDColorDropDown" relativePoint="RIGHT">
4436 <Offset>
4437 <AbsDimension x="-8" y="1"/>
4438 </Offset>
4439 </Anchor>
4440 </Anchors>
4441 </Button>
4442 <Frame name="TB_NPCEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
4443 <Scripts>
4444 <OnShow>
4445 TipBuddy_BDBColorDropDown_OnLoad( "npc_enemy" );
4446 </OnShow>
4447 <OnEnter>
4448 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4449 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
4450 </OnEnter>
4451 <OnLeave>
4452 GameTooltip:Hide();
4453 </OnLeave>
4454 </Scripts>
4455 </Frame>
4456 <Button name="TipBuddy_OptionsFrame_ColorPicker16" inherits="TipBuddy_ColorPickerButton_Template" id="16">
4457 <Size>
4458 <AbsDimension x="32" y="32"/>
4459 </Size>
4460 <Anchors>
4461 <Anchor point="LEFT" relativeTo="TB_NPCEnemy_BDBColorDropDown" relativePoint="RIGHT">
4462 <Offset>
4463 <AbsDimension x="-8" y="1"/>
4464 </Offset>
4465 </Anchor>
4466 </Anchors>
4467 </Button>
4468 </Frames>
4469 <Scripts>
4470 <OnLoad>
4471 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
4472 this:SetBackdropColor(0.15, 0.15, 0.15);
4473 getglobal(this:GetName().."Title"):SetText( TB_NPC_ENEMY );
4474 </OnLoad>
4475 </Scripts>
4476 </Frame>
4477  
4478 </Frames>
4479 </Frame>
4480  
4481  
4482 <!-- PET FRAME -->
4483 <Frame name="TipBuddy_OptionsFrame_PetsFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">
4484  
4485 <Frames>
4486  
4487 <!-- TABFRAME TITLE -->
4488 <Frame name="TipBuddy_OptionsFrame_PetsFrameTitle">
4489 <Size>
4490 <AbsDimension x="210" y="22"/>
4491 </Size>
4492 <Anchors>
4493 <Anchor point="BOTTOM" relativePoint="TOP">
4494 <Offset>
4495 <AbsDimension x="0" y="20"/>
4496 </Offset>
4497 </Anchor>
4498 </Anchors>
4499 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
4500 <EdgeSize>
4501 <AbsValue val="8"/>
4502 </EdgeSize>
4503 <TileSize>
4504 <AbsValue val="8"/>
4505 </TileSize>
4506 <BackgroundInsets>
4507 <AbsInset left="2" right="2" top="2" bottom="2"/>
4508 </BackgroundInsets>
4509 </Backdrop>
4510 <Layers>
4511 <Layer>
4512 <FontString inherits="GameFontHighlight" text="PETS">
4513 <Anchors>
4514 <Anchor point="CENTER">
4515 <Offset>
4516 <AbsDimension x="0" y="0"/>
4517 </Offset>
4518 </Anchor>
4519 </Anchors>
4520 </FontString>
4521 </Layer>
4522 </Layers>
4523 <Scripts>
4524 <OnLoad>
4525 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
4526 this:SetBackdropColor(0.15, 0.15, 0.15);
4527 </OnLoad>
4528 </Scripts>
4529 </Frame>
4530  
4531 <!-- PET TABS -->
4532 <Button name="$parentTab1" inherits="TabButtonTemplate" text="Friendly" id="1">
4533 <Size>
4534 <AbsDimension x="100" y="32"/>
4535 </Size>
4536 <Anchors>
4537 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
4538 <Offset>
4539 <AbsDimension x="4" y="30"/>
4540 </Offset>
4541 </Anchor>
4542 </Anchors>
4543 <Scripts>
4544 <OnLoad>
4545 PanelTemplates_SelectTab(this);
4546 PanelTemplates_TabResize(-10, this);
4547 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
4548 </OnLoad>
4549 <OnClick>
4550 TipBuddy_PetsFrameTab_OnClick(1);
4551 </OnClick>
4552 </Scripts>
4553 </Button>
4554  
4555 <Button name="$parentTab2" inherits="TabButtonTemplate" text="Enemy" id="2">
4556 <Size>
4557 <AbsDimension x="100" y="32"/>
4558 </Size>
4559 <Anchors>
4560 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
4561 <Offset>
4562 <AbsDimension x="-4" y="30"/>
4563 </Offset>
4564 </Anchor>
4565 </Anchors>
4566 <Scripts>
4567 <OnLoad>
4568 PanelTemplates_DeselectTab(this);
4569 PanelTemplates_TabResize(-10, this);
4570 getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 16);
4571 </OnLoad>
4572 <OnClick>
4573 TipBuddy_PetsFrameTab_OnClick(2);
4574 </OnClick>
4575 </Scripts>
4576 </Button>
4577 <Frame name="TipBuddy_OptionsFrame_PETFriend_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
4578  
4579 <Frames>
4580 <Frame name="TB_PETFriend_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
4581 <Scripts>
4582 <OnShow>
4583 TipBuddy_TipStyleDropDown_OnLoad( "pet_friend" );
4584 </OnShow>
4585 <OnEnter>
4586 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4587 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
4588 </OnEnter>
4589 <OnLeave>
4590 GameTooltip:Hide();
4591 </OnLeave>
4592 </Scripts>
4593 </Frame>
4594 <CheckButton name="TB_Op_Check41" inherits="TipBuddy_CheckButtonTemplate" id="41" hidden="true">
4595 <Anchors>
4596 <Anchor point="TOPLEFT">
4597 <Offset>
4598 <AbsDimension x="10" y="-6"/>
4599 </Offset>
4600 </Anchor>
4601 </Anchors>
4602 <Scripts>
4603 <OnClick>
4604 <!--TipBuddy_ToggleCheckboxFrame( this );-->
4605 </OnClick>
4606 </Scripts>
4607 </CheckButton>
4608 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
4609 <Size>
4610 <AbsDimension x="164" y="246"/>
4611 </Size>
4612 <Anchors>
4613 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
4614 <Offset>
4615 <AbsDimension x="12" y="-22"/>
4616 </Offset>
4617 </Anchor>
4618 </Anchors>
4619 <Frames>
4620 <EditBox name="TB_EditBox_07_1" inherits="TipBuddy_EditBox_Template1" id="7">
4621 </EditBox>
4622 <EditBox name="TB_EditBox_07_2" inherits="TipBuddy_EditBox_Template2">
4623 </EditBox>
4624 </Frames>
4625 </Frame>
4626 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
4627 <Size>
4628 <AbsDimension x="164" y="246"/>
4629 </Size>
4630 <Anchors>
4631 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
4632 <Offset>
4633 <AbsDimension x="12" y="-22"/>
4634 </Offset>
4635 </Anchor>
4636 </Anchors>
4637 <Frames>
4638  
4639 <CheckButton name="TB_Op_Check84" inherits="TipBuddy_TargetTargetCheckbox_Template" id="84">
4640 <Size>
4641 <AbsDimension x="24" y="24"/>
4642 </Size>
4643 <Anchors>
4644 <Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
4645 <Offset>
4646 <AbsDimension x="12" y="-4"/>
4647 </Offset>
4648 </Anchor>
4649 </Anchors>
4650 </CheckButton>
4651 <CheckButton name="TB_Op_Check42" inherits="TipBuddy_CheckButtonTemplate" id="42">
4652 <Size>
4653 <AbsDimension x="24" y="24"/>
4654 </Size>
4655 <Anchors>
4656 <Anchor point="TOP" relativeTo="TB_Op_Check84" relativePoint="BOTTOM">
4657 <Offset>
4658 <AbsDimension x="0" y="-1"/>
4659 </Offset>
4660 </Anchor>
4661 </Anchors>
4662 </CheckButton>
4663 <CheckButton name="TB_Op_Check44" inherits="TipBuddy_CheckButtonTemplate" id="44">
4664 <Size>
4665 <AbsDimension x="24" y="24"/>
4666 </Size>
4667 <Anchors>
4668 <Anchor point="TOP" relativeTo="TB_Op_Check42" relativePoint="BOTTOM">
4669 <Offset>
4670 <AbsDimension x="0" y="-1"/>
4671 </Offset>
4672 </Anchor>
4673 </Anchors>
4674 </CheckButton>
4675 <CheckButton name="TB_Op_Check45" inherits="TipBuddy_CheckButtonTemplate" id="45">
4676 <Size>
4677 <AbsDimension x="24" y="24"/>
4678 </Size>
4679 <Anchors>
4680 <Anchor point="TOP" relativeTo="TB_Op_Check44" relativePoint="BOTTOM">
4681 <Offset>
4682 <AbsDimension x="0" y="-1"/>
4683 </Offset>
4684 </Anchor>
4685 </Anchors>
4686 </CheckButton>
4687 </Frames>
4688 </Frame>
4689 <CheckButton name="TB_Op_Check46" inherits="TipBuddy_PVPCheckbox_Template" id="46">
4690 <Size>
4691 <AbsDimension x="24" y="24"/>
4692 </Size>
4693 <Anchors>
4694 <Anchor point="TOP" relativeTo="TB_Op_Check45" relativePoint="BOTTOM">
4695 <Offset>
4696 <AbsDimension x="0" y="-24"/>
4697 </Offset>
4698 </Anchor>
4699 </Anchors>
4700 </CheckButton>
4701 <CheckButton name="TB_Op_Check47" inherits="TipBuddy_CheckButtonTemplate" id="47">
4702 <Size>
4703 <AbsDimension x="24" y="24"/>
4704 </Size>
4705 <Anchors>
4706 <Anchor point="TOP" relativeTo="TB_Op_Check46" relativePoint="BOTTOM">
4707 <Offset>
4708 <AbsDimension x="0" y="-1"/>
4709 </Offset>
4710 </Anchor>
4711 </Anchors>
4712 </CheckButton>
4713 <CheckButton name="TB_Op_Check43" inherits="TipBuddy_HealthbarCheckbox_Template" id="43">
4714 <Size>
4715 <AbsDimension x="24" y="24"/>
4716 </Size>
4717 <Anchors>
4718 <Anchor point="TOP" relativeTo="TB_Op_Check47" relativePoint="BOTTOM">
4719 <Offset>
4720 <AbsDimension x="0" y="-1"/>
4721 </Offset>
4722 </Anchor>
4723 </Anchors>
4724 </CheckButton>
4725 <!-- NOT USED -->
4726 <CheckButton name="TB_Op_Check48" inherits="TipBuddy_CheckButtonTemplate" id="48" hidden="true">
4727 <Size>
4728 <AbsDimension x="24" y="24"/>
4729 </Size>
4730 <Anchors>
4731 <Anchor point="TOP" relativeTo="TB_Op_Check47" relativePoint="BOTTOM">
4732 <Offset>
4733 <AbsDimension x="0" y="-1"/>
4734 </Offset>
4735 </Anchor>
4736 </Anchors>
4737 </CheckButton>
4738 <Frame name="TB_PETFriend_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
4739 <Scripts>
4740 <OnShow>
4741 TipBuddy_BDColorDropDown_OnLoad( "pet_friend" );
4742 </OnShow>
4743 <OnEnter>
4744 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4745 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
4746 </OnEnter>
4747 <OnLeave>
4748 GameTooltip:Hide();
4749 </OnLeave>
4750 </Scripts>
4751 </Frame>
4752 <Button name="TipBuddy_OptionsFrame_ColorPicker7" inherits="TipBuddy_ColorPickerButton_Template" id="7">
4753 <Size>
4754 <AbsDimension x="32" y="32"/>
4755 </Size>
4756 <Anchors>
4757 <Anchor point="LEFT" relativeTo="TB_PETFriend_BDColorDropDown" relativePoint="RIGHT">
4758 <Offset>
4759 <AbsDimension x="-8" y="1"/>
4760 </Offset>
4761 </Anchor>
4762 </Anchors>
4763 </Button>
4764 <Frame name="TB_PETFriend_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
4765 <Scripts>
4766 <OnShow>
4767 TipBuddy_BDBColorDropDown_OnLoad( "pet_friend" );
4768 </OnShow>
4769 <OnEnter>
4770 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4771 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
4772 </OnEnter>
4773 <OnLeave>
4774 GameTooltip:Hide();
4775 </OnLeave>
4776 </Scripts>
4777 </Frame>
4778 <Button name="TipBuddy_OptionsFrame_ColorPicker17" inherits="TipBuddy_ColorPickerButton_Template" id="17">
4779 <Size>
4780 <AbsDimension x="32" y="32"/>
4781 </Size>
4782 <Anchors>
4783 <Anchor point="LEFT" relativeTo="TB_PETFriend_BDBColorDropDown" relativePoint="RIGHT">
4784 <Offset>
4785 <AbsDimension x="-8" y="1"/>
4786 </Offset>
4787 </Anchor>
4788 </Anchors>
4789 </Button>
4790 </Frames>
4791 <Scripts>
4792 <OnLoad>
4793 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
4794 this:SetBackdropColor(0.15, 0.15, 0.15);
4795 getglobal(this:GetName().."Title"):SetText( TB_PET_FRIEND );
4796 </OnLoad>
4797 </Scripts>
4798 </Frame>
4799  
4800 <Frame name="TipBuddy_OptionsFrame_PETEnemy_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
4801  
4802 <Frames>
4803 <Frame name="TB_PETEnemy_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
4804 <Scripts>
4805 <OnShow>
4806 TipBuddy_TipStyleDropDown_OnLoad( "pet_enemy" );
4807 </OnShow>
4808 <OnEnter>
4809 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4810 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
4811 </OnEnter>
4812 <OnLeave>
4813 GameTooltip:Hide();
4814 </OnLeave>
4815 </Scripts>
4816 </Frame>
4817 <CheckButton name="TB_Op_Check49" inherits="TipBuddy_CheckButtonTemplate" id="41" hidden="true">
4818 <Anchors>
4819 <Anchor point="TOPLEFT">
4820 <Offset>
4821 <AbsDimension x="10" y="-6"/>
4822 </Offset>
4823 </Anchor>
4824 </Anchors>
4825 <Scripts>
4826 <OnClick>
4827 <!--TipBuddy_ToggleCheckboxFrame( this );-->
4828 </OnClick>
4829 </Scripts>
4830 </CheckButton>
4831 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
4832 <Size>
4833 <AbsDimension x="164" y="246"/>
4834 </Size>
4835 <Anchors>
4836 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
4837 <Offset>
4838 <AbsDimension x="12" y="-22"/>
4839 </Offset>
4840 </Anchor>
4841 </Anchors>
4842 <Frames>
4843 <EditBox name="TB_EditBox_08_1" inherits="TipBuddy_EditBox_Template1" id="8">
4844 </EditBox>
4845 <EditBox name="TB_EditBox_08_2" inherits="TipBuddy_EditBox_Template2">
4846 </EditBox>
4847 </Frames>
4848 </Frame>
4849 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
4850 <Size>
4851 <AbsDimension x="164" y="246"/>
4852 </Size>
4853 <Anchors>
4854 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_PetsFrame">
4855 <Offset>
4856 <AbsDimension x="12" y="-22"/>
4857 </Offset>
4858 </Anchor>
4859 </Anchors>
4860 <Frames>
4861  
4862 <CheckButton name="TB_Op_Check85" inherits="TipBuddy_TargetTargetCheckbox_Template" id="85">
4863 <Size>
4864 <AbsDimension x="24" y="24"/>
4865 </Size>
4866 <Anchors>
4867 <Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
4868 <Offset>
4869 <AbsDimension x="12" y="-4"/>
4870 </Offset>
4871 </Anchor>
4872 </Anchors>
4873 </CheckButton>
4874 <CheckButton name="TB_Op_Check50" inherits="TipBuddy_CheckButtonTemplate" id="50">
4875 <Size>
4876 <AbsDimension x="24" y="24"/>
4877 </Size>
4878 <Anchors>
4879 <Anchor point="TOP" relativeTo="TB_Op_Check85" relativePoint="BOTTOM">
4880 <Offset>
4881 <AbsDimension x="0" y="-1"/>
4882 </Offset>
4883 </Anchor>
4884 </Anchors>
4885 </CheckButton>
4886 <CheckButton name="TB_Op_Check52" inherits="TipBuddy_CheckButtonTemplate" id="52">
4887 <Size>
4888 <AbsDimension x="24" y="24"/>
4889 </Size>
4890 <Anchors>
4891 <Anchor point="TOP" relativeTo="TB_Op_Check50" relativePoint="BOTTOM">
4892 <Offset>
4893 <AbsDimension x="0" y="-1"/>
4894 </Offset>
4895 </Anchor>
4896 </Anchors>
4897 </CheckButton>
4898 <CheckButton name="TB_Op_Check53" inherits="TipBuddy_CheckButtonTemplate" id="53">
4899 <Size>
4900 <AbsDimension x="24" y="24"/>
4901 </Size>
4902 <Anchors>
4903 <Anchor point="TOP" relativeTo="TB_Op_Check52" relativePoint="BOTTOM">
4904 <Offset>
4905 <AbsDimension x="0" y="-1"/>
4906 </Offset>
4907 </Anchor>
4908 </Anchors>
4909 </CheckButton>
4910 </Frames>
4911 </Frame>
4912 <CheckButton name="TB_Op_Check54" inherits="TipBuddy_PVPCheckbox_Template" id="54">
4913 <Size>
4914 <AbsDimension x="24" y="24"/>
4915 </Size>
4916 <Anchors>
4917 <Anchor point="TOP" relativeTo="TB_Op_Check53" relativePoint="BOTTOM">
4918 <Offset>
4919 <AbsDimension x="0" y="-24"/>
4920 </Offset>
4921 </Anchor>
4922 </Anchors>
4923 </CheckButton>
4924 <CheckButton name="TB_Op_Check55" inherits="TipBuddy_CheckButtonTemplate" id="55">
4925 <Size>
4926 <AbsDimension x="24" y="24"/>
4927 </Size>
4928 <Anchors>
4929 <Anchor point="TOP" relativeTo="TB_Op_Check54" relativePoint="BOTTOM">
4930 <Offset>
4931 <AbsDimension x="0" y="-1"/>
4932 </Offset>
4933 </Anchor>
4934 </Anchors>
4935 </CheckButton>
4936 <CheckButton name="TB_Op_Check51" inherits="TipBuddy_HealthbarCheckbox_Template" id="51">
4937 <Size>
4938 <AbsDimension x="24" y="24"/>
4939 </Size>
4940 <Anchors>
4941 <Anchor point="TOP" relativeTo="TB_Op_Check55" relativePoint="BOTTOM">
4942 <Offset>
4943 <AbsDimension x="0" y="-1"/>
4944 </Offset>
4945 </Anchor>
4946 </Anchors>
4947 </CheckButton>
4948 <!-- NOT USED -->
4949 <CheckButton name="TB_Op_Check56" inherits="TipBuddy_CheckButtonTemplate" id="56" hidden="true">
4950 <Size>
4951 <AbsDimension x="24" y="24"/>
4952 </Size>
4953 <Anchors>
4954 <Anchor point="TOP" relativeTo="TB_Op_Check51" relativePoint="BOTTOM">
4955 <Offset>
4956 <AbsDimension x="0" y="-1"/>
4957 </Offset>
4958 </Anchor>
4959 </Anchors>
4960 </CheckButton>
4961 <Frame name="TB_PETEnemy_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
4962 <Scripts>
4963 <OnShow>
4964 TipBuddy_BDColorDropDown_OnLoad( "pet_enemy" );
4965 </OnShow>
4966 <OnEnter>
4967 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4968 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
4969 </OnEnter>
4970 <OnLeave>
4971 GameTooltip:Hide();
4972 </OnLeave>
4973 </Scripts>
4974 </Frame>
4975 <Button name="TipBuddy_OptionsFrame_ColorPicker8" inherits="TipBuddy_ColorPickerButton_Template" id="8">
4976 <Size>
4977 <AbsDimension x="32" y="32"/>
4978 </Size>
4979 <Anchors>
4980 <Anchor point="LEFT" relativeTo="TB_PETEnemy_BDColorDropDown" relativePoint="RIGHT">
4981 <Offset>
4982 <AbsDimension x="-8" y="1"/>
4983 </Offset>
4984 </Anchor>
4985 </Anchors>
4986 </Button>
4987 <Frame name="TB_PETEnemy_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
4988 <Scripts>
4989 <OnShow>
4990 TipBuddy_BDBColorDropDown_OnLoad( "pet_enemy" );
4991 </OnShow>
4992 <OnEnter>
4993 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
4994 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
4995 </OnEnter>
4996 <OnLeave>
4997 GameTooltip:Hide();
4998 </OnLeave>
4999 </Scripts>
5000 </Frame>
5001 <Button name="TipBuddy_OptionsFrame_ColorPicker18" inherits="TipBuddy_ColorPickerButton_Template" id="18">
5002 <Size>
5003 <AbsDimension x="32" y="32"/>
5004 </Size>
5005 <Anchors>
5006 <Anchor point="LEFT" relativeTo="TB_PETEnemy_BDBColorDropDown" relativePoint="RIGHT">
5007 <Offset>
5008 <AbsDimension x="-8" y="1"/>
5009 </Offset>
5010 </Anchor>
5011 </Anchors>
5012 </Button>
5013 </Frames>
5014 <Scripts>
5015 <OnLoad>
5016 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5017 this:SetBackdropColor(0.15, 0.15, 0.15);
5018 getglobal(this:GetName().."Title"):SetText( TB_PET_ENEMY );
5019 </OnLoad>
5020 </Scripts>
5021 </Frame>
5022 </Frames>
5023 </Frame>
5024  
5025  
5026 <!-- CORPSE FRAME -->
5027 <Frame name="TipBuddy_OptionsFrame_CORPSEFrame" inherits="TipBuddy_OptionsFrame_UnitsTemplate">
5028  
5029 <Frames>
5030  
5031 <!-- TABFRAME TITLE -->
5032 <Frame name="TipBuddy_OptionsFrame_CORPSEFrameTitle">
5033 <Size>
5034 <AbsDimension x="210" y="22"/>
5035 </Size>
5036 <Anchors>
5037 <Anchor point="BOTTOM" relativePoint="TOP">
5038 <Offset>
5039 <AbsDimension x="0" y="20"/>
5040 </Offset>
5041 </Anchor>
5042 </Anchors>
5043 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
5044 <EdgeSize>
5045 <AbsValue val="8"/>
5046 </EdgeSize>
5047 <TileSize>
5048 <AbsValue val="8"/>
5049 </TileSize>
5050 <BackgroundInsets>
5051 <AbsInset left="2" right="2" top="2" bottom="2"/>
5052 </BackgroundInsets>
5053 </Backdrop>
5054 <Layers>
5055 <Layer>
5056 <FontString inherits="GameFontHighlight" text="CORPSE">
5057 <Anchors>
5058 <Anchor point="CENTER">
5059 <Offset>
5060 <AbsDimension x="0" y="0"/>
5061 </Offset>
5062 </Anchor>
5063 </Anchors>
5064 </FontString>
5065 </Layer>
5066 </Layers>
5067 <Scripts>
5068 <OnLoad>
5069 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5070 this:SetBackdropColor(0.15, 0.15, 0.15);
5071 </OnLoad>
5072 </Scripts>
5073 </Frame>
5074  
5075 <Frame name="TipBuddy_OptionsFrame_CORPSE_Options" inherits="TipBuddy_OptionsFrame_UnitsOptions_Template">
5076  
5077 <Frames>
5078 <Frame name="TB_CORPSE_TipStyleDropDown" inherits="TB_TipStyleDropDown_Template">
5079 <Scripts>
5080 <OnShow>
5081 TipBuddy_TipStyleDropDown_OnLoad( "corpse" );
5082 </OnShow>
5083 <OnEnter>
5084 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
5085 GameTooltip:SetText(TB_OPTION_STYLEMODE_TOOLTIP, nil, nil, nil, nil, 1);
5086 </OnEnter>
5087 <OnLeave>
5088 GameTooltip:Hide();
5089 </OnLeave>
5090 </Scripts>
5091 </Frame>
5092 <CheckButton name="TB_Op_Check86" inherits="TipBuddy_CheckButtonTemplate" id="86" hidden="true">
5093 <Anchors>
5094 <Anchor point="TOPLEFT">
5095 <Offset>
5096 <AbsDimension x="10" y="-6"/>
5097 </Offset>
5098 </Anchor>
5099 </Anchors>
5100 <Scripts>
5101 <OnClick>
5102 <!--TipBuddy_ToggleCheckboxFrame( this );-->
5103 </OnClick>
5104 </Scripts>
5105 </CheckButton>
5106 <Frame name="$parent_EB" frameStrata="DIALOG" toplevel="true" hidden="true">
5107 <Size>
5108 <AbsDimension x="164" y="246"/>
5109 </Size>
5110 <Anchors>
5111 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_CORPSEFrame">
5112 <Offset>
5113 <AbsDimension x="12" y="-22"/>
5114 </Offset>
5115 </Anchor>
5116 </Anchors>
5117 <Frames>
5118 <EditBox name="TB_EditBox_09_1" inherits="TipBuddy_EditBox_Template1" id="9">
5119 </EditBox>
5120 <EditBox name="TB_EditBox_09_2" inherits="TipBuddy_EditBox_Template2">
5121 </EditBox>
5122 </Frames>
5123 </Frame>
5124 <Frame name="$parent_Checks" frameStrata="DIALOG" toplevel="true">
5125 <Size>
5126 <AbsDimension x="164" y="246"/>
5127 </Size>
5128 <Anchors>
5129 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_CORPSEFrame">
5130 <Offset>
5131 <AbsDimension x="12" y="-22"/>
5132 </Offset>
5133 </Anchor>
5134 </Anchors>
5135 <Frames>
5136  
5137 <CheckButton name="TB_Op_Check87" inherits="TipBuddy_CheckButtonTemplate" id="87">
5138 <Size>
5139 <AbsDimension x="24" y="24"/>
5140 </Size>
5141 <Anchors>
5142 <Anchor point="TOP" relativeTo="TB_Op_Check25" relativePoint="BOTTOM">
5143 <Offset>
5144 <AbsDimension x="12" y="-4"/>
5145 </Offset>
5146 </Anchor>
5147 </Anchors>
5148 </CheckButton>
5149 <CheckButton name="TB_Op_Check88" inherits="TipBuddy_CheckButtonTemplate" id="88">
5150 <Size>
5151 <AbsDimension x="24" y="24"/>
5152 </Size>
5153 <Anchors>
5154 <Anchor point="TOP" relativeTo="TB_Op_Check87" relativePoint="BOTTOM">
5155 <Offset>
5156 <AbsDimension x="0" y="-1"/>
5157 </Offset>
5158 </Anchor>
5159 </Anchors>
5160 </CheckButton>
5161 <CheckButton name="TB_Op_Check89" inherits="TipBuddy_CheckButtonTemplate" id="89">
5162 <Size>
5163 <AbsDimension x="24" y="24"/>
5164 </Size>
5165 <Anchors>
5166 <Anchor point="TOP" relativeTo="TB_Op_Check88" relativePoint="BOTTOM">
5167 <Offset>
5168 <AbsDimension x="0" y="-1"/>
5169 </Offset>
5170 </Anchor>
5171 </Anchors>
5172 </CheckButton>
5173 </Frames>
5174 </Frame>
5175 <Frame name="TB_CORPSE_BDColorDropDown" inherits="TB_BDColorDropDown_Template">
5176 <Scripts>
5177 <OnShow>
5178 TipBuddy_BDColorDropDown_OnLoad( "corpse" );
5179 </OnShow>
5180 <OnEnter>
5181 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
5182 GameTooltip:SetText(TB_OPTION_BACKDROP_TOOLTIP, nil, nil, nil, nil, 1);
5183 </OnEnter>
5184 <OnLeave>
5185 GameTooltip:Hide();
5186 </OnLeave>
5187 </Scripts>
5188 </Frame>
5189 <Button name="TipBuddy_OptionsFrame_ColorPicker10" inherits="TipBuddy_ColorPickerButton_Template" id="10">
5190 <Size>
5191 <AbsDimension x="32" y="32"/>
5192 </Size>
5193 <Anchors>
5194 <Anchor point="LEFT" relativeTo="TB_CORPSE_BDColorDropDown" relativePoint="RIGHT">
5195 <Offset>
5196 <AbsDimension x="-8" y="1"/>
5197 </Offset>
5198 </Anchor>
5199 </Anchors>
5200 </Button>
5201 <Frame name="TB_CORPSE_BDBColorDropDown" inherits="TB_BDBColorDropDown_Template">
5202 <Scripts>
5203 <OnShow>
5204 TipBuddy_BDBColorDropDown_OnLoad( "corpse" );
5205 </OnShow>
5206 <OnEnter>
5207 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
5208 GameTooltip:SetText(TB_OPTION_BORDER_TOOLTIP, nil, nil, nil, nil, 1);
5209 </OnEnter>
5210 <OnLeave>
5211 GameTooltip:Hide();
5212 </OnLeave>
5213 </Scripts>
5214 </Frame>
5215 <Button name="TipBuddy_OptionsFrame_ColorPicker20" inherits="TipBuddy_ColorPickerButton_Template" id="20">
5216 <Size>
5217 <AbsDimension x="32" y="32"/>
5218 </Size>
5219 <Anchors>
5220 <Anchor point="LEFT" relativeTo="TB_CORPSE_BDBColorDropDown" relativePoint="RIGHT">
5221 <Offset>
5222 <AbsDimension x="-8" y="1"/>
5223 </Offset>
5224 </Anchor>
5225 </Anchors>
5226 </Button>
5227 </Frames>
5228 <Scripts>
5229 <OnLoad>
5230 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5231 this:SetBackdropColor(0.15, 0.15, 0.15);
5232 getglobal(this:GetName().."Title"):SetText( TB_CORPSE );
5233 </OnLoad>
5234 </Scripts>
5235 </Frame>
5236  
5237 </Frames>
5238 </Frame>
5239  
5240  
5241 <Frame name="TipBuddy_OptionsFrame_General_Options" inherits="OptionFrameBoxTemplate">
5242 <Size>
5243 <AbsDimension x="220" y="380"/>
5244 </Size>
5245 <Anchors>
5246 <Anchor point="CENTER">
5247 <Offset>
5248 <AbsDimension x="40" y="0"/>
5249 </Offset>
5250 </Anchor>
5251 </Anchors>
5252 <Scripts>
5253 <OnLoad>
5254 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5255 this:SetBackdropColor(0.15, 0.15, 0.15);
5256 </OnLoad>
5257 </Scripts>
5258 <Frames>
5259  
5260  
5261  
5262  
5263 <Slider name="TipBuddy_OptionsFrame_Slider6" inherits="TipBuddy_SliderWithText_Template">
5264 <Anchors>
5265 <Anchor point="TOP">
5266 <Offset>
5267 <AbsDimension x="-6" y="-36"/>
5268 </Offset>
5269 </Anchor>
5270 </Anchors>
5271 </Slider>
5272 <Slider name="TipBuddy_OptionsFrame_Slider1" inherits="TipBuddy_SliderWithText_Template">
5273 <Anchors>
5274 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider6" relativePoint="BOTTOM">
5275 <Offset>
5276 <AbsDimension x="0" y="-21"/>
5277 </Offset>
5278 </Anchor>
5279 </Anchors>
5280 </Slider>
5281 <CheckButton name="TB_Op_Check58" inherits="TipBuddy_CheckButtonTemplate" id="58">
5282 <Anchors>
5283 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_Slider1" relativePoint="BOTTOMLEFT">
5284 <Offset>
5285 <AbsDimension x="0" y="-22"/>
5286 </Offset>
5287 </Anchor>
5288 </Anchors>
5289 <Scripts>
5290  
5291 </Scripts>
5292 </CheckButton>
5293 <!-- DIFF AS BACK (HIDDEN) -->
5294 <CheckButton name="TB_Op_Check62" hidden="true" inherits="TipBuddy_CheckButtonTemplate" id="62">
5295 <Anchors>
5296 <Anchor point="TOPLEFT" relativeTo="TB_Op_Check60" relativePoint="BOTTOMLEFT">
5297 <Offset>
5298 <AbsDimension x="0" y="-2"/>
5299 </Offset>
5300 </Anchor>
5301 </Anchors>
5302 <Scripts>
5303  
5304 </Scripts>
5305 </CheckButton>
5306 <Button name="TipBuddy_OptionsFrame_ColorPicker9" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="9">
5307 <Size>
5308 <AbsDimension x="32" y="30"/>
5309 </Size>
5310 <Anchors>
5311 <Anchor point="TOPLEFT" relativeTo="TB_Op_Check58" relativePoint="BOTTOMLEFT">
5312 <Offset>
5313 <AbsDimension x="0" y="-11"/>
5314 </Offset>
5315 </Anchor>
5316 </Anchors>
5317 </Button>
5318 <Button name="TipBuddy_OptionsFrame_ColorPicker19" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="19">
5319 <Size>
5320 <AbsDimension x="32" y="30"/>
5321 </Size>
5322 <Anchors>
5323 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker9" relativePoint="BOTTOMLEFT">
5324 <Offset>
5325 <AbsDimension x="0" y="-2"/>
5326 </Offset>
5327 </Anchor>
5328 </Anchors>
5329 </Button>
5330 <Button name="TipBuddy_OptionsFrame_ColorPicker21" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="21">
5331 <Size>
5332 <AbsDimension x="32" y="30"/>
5333 </Size>
5334 <Anchors>
5335 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker19" relativePoint="BOTTOMLEFT">
5336 <Offset>
5337 <AbsDimension x="0" y="-16"/>
5338 </Offset>
5339 </Anchor>
5340 </Anchors>
5341 </Button>
5342 <Button name="TipBuddy_OptionsFrame_ColorPicker22" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="22">
5343 <Size>
5344 <AbsDimension x="32" y="30"/>
5345 </Size>
5346 <Anchors>
5347 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker21" relativePoint="BOTTOMLEFT">
5348 <Offset>
5349 <AbsDimension x="0" y="-2"/>
5350 </Offset>
5351 </Anchor>
5352 </Anchors>
5353 </Button>
5354 <CheckButton name="TB_Op_Check60" inherits="TipBuddy_CheckButtonTemplate" id="60">
5355 <Anchors>
5356 <Anchor point="TOPLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker22" relativePoint="BOTTOMLEFT">
5357 <Offset>
5358 <AbsDimension x="0" y="-9"/>
5359 </Offset>
5360 </Anchor>
5361 </Anchors>
5362 <Scripts>
5363  
5364 </Scripts>
5365 </CheckButton>
5366 <CheckButton name="TB_Op_Check61" inherits="TipBuddy_CheckButtonTemplate" id="61">
5367 <Anchors>
5368 <Anchor point="TOP" relativeTo="TB_Op_Check60" relativePoint="BOTTOM">
5369 <Offset>
5370 <AbsDimension x="0" y="1"/>
5371 </Offset>
5372 </Anchor>
5373 </Anchors>
5374 </CheckButton>
5375 <Frame name="TipBuddy_OptionsFrame_GeneralOptionsTitle">
5376 <Size>
5377 <AbsDimension x="210" y="22"/>
5378 </Size>
5379 <Anchors>
5380 <Anchor point="BOTTOM" relativePoint="TOP">
5381 <Offset>
5382 <AbsDimension x="0" y="-4"/>
5383 </Offset>
5384 </Anchor>
5385 </Anchors>
5386 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
5387 <EdgeSize>
5388 <AbsValue val="8"/>
5389 </EdgeSize>
5390 <TileSize>
5391 <AbsValue val="8"/>
5392 </TileSize>
5393 <BackgroundInsets>
5394 <AbsInset left="2" right="2" top="2" bottom="2"/>
5395 </BackgroundInsets>
5396 </Backdrop>
5397 <Layers>
5398 <Layer>
5399 <FontString name="$parentText" inherits="GameFontHighlight" text="GENERAL OPTIONS">
5400 <Anchors>
5401 <Anchor point="CENTER">
5402 <Offset>
5403 <AbsDimension x="0" y="0"/>
5404 </Offset>
5405 </Anchor>
5406 </Anchors>
5407 </FontString>
5408 </Layer>
5409 </Layers>
5410 <Scripts>
5411 <OnLoad>
5412 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5413 this:SetBackdropColor(0.15, 0.15, 0.15);
5414 </OnLoad>
5415 </Scripts>
5416 </Frame>
5417 </Frames>
5418 </Frame>
5419  
5420 <Frame name="TipBuddy_OptionsFrame_Anchoring_Options" hidden="true" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
5421 <Size>
5422 <AbsDimension x="220" y="320"/>
5423 </Size>
5424 <Anchors>
5425 <Anchor point="CENTER">
5426 <Offset>
5427 <AbsDimension x="40" y="0"/>
5428 </Offset>
5429 </Anchor>
5430 </Anchors>
5431 <Scripts>
5432 <OnLoad>
5433 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5434 this:SetBackdropColor(0.15, 0.15, 0.15);
5435 </OnLoad>
5436 </Scripts>
5437 <Frames>
5438 <Frame name="TipBuddy_CursorPosDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
5439 <Size>
5440 <AbsDimension x="40" y="32"/>
5441 </Size>
5442 <Anchors>
5443 <Anchor point="TOPLEFT">
5444 <Offset>
5445 <AbsDimension x="22" y="-46"/>
5446 </Offset>
5447 </Anchor>
5448 </Anchors>
5449 <Layers>
5450 <Layer level="BACKGROUND">
5451 <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Tooltip Cursor Position">
5452 <Anchors>
5453 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
5454 <Offset>
5455 <AbsDimension x="18" y="2"/>
5456 </Offset>
5457 </Anchor>
5458 </Anchors>
5459 </FontString>
5460 </Layer>
5461 </Layers>
5462 <Scripts>
5463 <OnShow>
5464 TipBuddy_CursorPosDropDown_OnLoad();
5465 </OnShow>
5466 <OnEnter>
5467 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
5468 GameTooltip:SetText(TB_OPTION_CURSORPOS_TOOLTIP, nil, nil, nil, nil, 1);
5469 </OnEnter>
5470 <OnLeave>
5471 GameTooltip:Hide();
5472 </OnLeave>
5473 </Scripts>
5474 </Frame>
5475 <Slider name="TipBuddy_OptionsFrame_Slider4" inherits="TipBuddy_SliderWithText_Template2">
5476 <Size>
5477 <AbsDimension x="128" y="16"/>
5478 </Size>
5479 <Anchors>
5480 <Anchor point="TOP" relativeTo="TipBuddy_CursorPosDropDown" relativePoint="BOTTOM">
5481 <Offset>
5482 <AbsDimension x="0" y="0"/>
5483 </Offset>
5484 </Anchor>
5485 </Anchors>
5486 </Slider>
5487 <Slider name="TipBuddy_OptionsFrame_Slider5" inherits="TipBuddy_SliderWithText_Template2">
5488 <Size>
5489 <AbsDimension x="128" y="16"/>
5490 </Size>
5491 <Anchors>
5492 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider4" relativePoint="BOTTOM">
5493 <Offset>
5494 <AbsDimension x="0" y="-4"/>
5495 </Offset>
5496 </Anchor>
5497 </Anchors>
5498 </Slider>
5499 <CheckButton name="TB_Op_Check57" inherits="TipBuddy_CheckButtonTemplate" id="57">
5500 <Anchors>
5501 <Anchor point="TOPLEFT" relativeTo="TipBuddy_CursorPosDropDown" relativePoint="BOTTOMLEFT">
5502 <Offset>
5503 <AbsDimension x="22" y="-70"/>
5504 </Offset>
5505 </Anchor>
5506 </Anchors>
5507 <Scripts>
5508 <OnClick>
5509 if ( this:GetChecked() ) then
5510 TipBuddy_Header_Frame:Show();
5511 <!-- TB_Op_Check61:Disable();
5512 getglobal("TB_Op_Check61Text"):SetTextColor(GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b); -->
5513 else
5514 <!-- TB_Op_Check61:Enable();
5515 getglobal("TB_Op_Check61Text"):SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); -->
5516 end
5517 </OnClick>
5518 </Scripts>
5519 </CheckButton>
5520 <Frame name="TipBuddy_NonUnitTipPosDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
5521 <Anchors>
5522 <Anchor point="BOTTOMLEFT">
5523 <Offset>
5524 <AbsDimension x="22" y="84"/>
5525 </Offset>
5526 </Anchor>
5527 </Anchors>
5528 <Layers>
5529 <Layer level="BACKGROUND">
5530 <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Non-Unit Tooltips">
5531 <Anchors>
5532 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
5533 <Offset>
5534 <AbsDimension x="18" y="2"/>
5535 </Offset>
5536 </Anchor>
5537 </Anchors>
5538 </FontString>
5539 </Layer>
5540 </Layers>
5541 <Scripts>
5542 <OnShow>
5543 TipBuddy_NonUnitTipPosDropDown_OnLoad();
5544 </OnShow>
5545 <OnEnter>
5546 GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT");
5547 GameTooltip:SetText(TB_OPTION_NONUNITPOS_TOOLTIP, nil, nil, nil, nil, 1);
5548 </OnEnter>
5549 <OnLeave>
5550 GameTooltip:Hide();
5551 </OnLeave>
5552 </Scripts>
5553 </Frame>
5554 <Button name="TipBuddy_ShowAnchorButton" inherits="GameMenuButtonTemplate" text="Display TipBuddyAnchor">
5555 <Anchors>
5556 <Anchor point="BOTTOMLEFT">
5557 <Offset>
5558 <AbsDimension x="28" y="44"/>
5559 </Offset>
5560 </Anchor>
5561 </Anchors>
5562 <Size>
5563 <AbsDimension x="154" y="24"/>
5564 </Size>
5565  
5566 <NormalText name="$parentText" inherits="TBGameFontNormal"/>
5567 <DisabledText inherits="TBGameFontDisable"/>
5568 <HighlightText inherits="TBGameFontHighlight"/>
5569 <NormalTexture inherits="UIPanelButtonUpTexture"/>
5570 <PushedTexture inherits="UIPanelButtonDownTexture"/>
5571 <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
5572 <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
5573 <Scripts>
5574 <OnClick>
5575 TipBuddy_Header_Frame:Show();
5576 PlaySound("igMainMenuOptionCheckBoxOn");
5577 </OnClick>
5578 </Scripts>
5579 </Button>
5580 <Button name="TipBuddy_ResetAnchorButton" inherits="GameMenuButtonTemplate" text="Reset TipBuddyAnchor ">
5581 <Anchors>
5582 <Anchor point="TOP" relativeTo="TipBuddy_ShowAnchorButton" relativePoint="BOTTOM">
5583 <Offset>
5584 <AbsDimension x="0" y="1"/>
5585 </Offset>
5586 </Anchor>
5587 </Anchors>
5588 <Size>
5589 <AbsDimension x="118" y="18"/>
5590 </Size>
5591  
5592 <NormalText name="$parentText" inherits="TB_TTGameFontNormalSmall"/>
5593 <DisabledText inherits="TB_TTGameFontNormalSmallHighlight"/>
5594 <HighlightText inherits="TB_TTGameFontNormalSmallHighlight"/>
5595 <NormalTexture inherits="UIPanelButtonDisabledTexture"/>
5596 <PushedTexture inherits="UIPanelButtonDownTexture"/>
5597 <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
5598 <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
5599 <Scripts>
5600 <OnShow>
5601 --TipBuddy_ResetAnchorButtonText:SetTextHeight(8);
5602 </OnShow>
5603 <OnClick>
5604 TipBuddy_ResetAnchorPos();
5605 DEFAULT_CHAT_FRAME:AddMessage("|cff20ff20TipBuddy: Resetting TipBuddyAnchor position.");
5606 PlaySound("igMainMenuOptionCheckBoxOn");
5607 </OnClick>
5608 </Scripts>
5609 </Button>
5610  
5611 <Frame name="TipBuddy_OptionsFrame_AnchoringOptionsTitle">
5612 <Size>
5613 <AbsDimension x="210" y="22"/>
5614 </Size>
5615 <Anchors>
5616 <Anchor point="BOTTOM" relativePoint="TOP">
5617 <Offset>
5618 <AbsDimension x="0" y="-4"/>
5619 </Offset>
5620 </Anchor>
5621 </Anchors>
5622 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
5623 <EdgeSize>
5624 <AbsValue val="8"/>
5625 </EdgeSize>
5626 <TileSize>
5627 <AbsValue val="8"/>
5628 </TileSize>
5629 <BackgroundInsets>
5630 <AbsInset left="2" right="2" top="2" bottom="2"/>
5631 </BackgroundInsets>
5632 </Backdrop>
5633 <Layers>
5634 <Layer>
5635 <FontString name="$parentText" inherits="GameFontHighlight" text="ANCHORING OPTIONS">
5636 <Anchors>
5637 <Anchor point="CENTER">
5638 <Offset>
5639 <AbsDimension x="0" y="0"/>
5640 </Offset>
5641 </Anchor>
5642 </Anchors>
5643 </FontString>
5644 </Layer>
5645 </Layers>
5646 <Scripts>
5647 <OnLoad>
5648 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5649 this:SetBackdropColor(0.15, 0.15, 0.15);
5650 </OnLoad>
5651 </Scripts>
5652 </Frame>
5653 </Frames>
5654 </Frame>
5655  
5656  
5657 <Frame name="TipBuddy_OptionsFrame_Compact_Options" hidden="true" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
5658 <Size>
5659 <AbsDimension x="220" y="320"/>
5660 </Size>
5661 <Anchors>
5662 <Anchor point="CENTER">
5663 <Offset>
5664 <AbsDimension x="40" y="0"/>
5665 </Offset>
5666 </Anchor>
5667 </Anchors>
5668 <Scripts>
5669 <OnLoad>
5670 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5671 this:SetBackdropColor(0.15, 0.15, 0.15);
5672 </OnLoad>
5673 </Scripts>
5674 <Frames>
5675 <CheckButton name="TB_Op_Check59" inherits="TipBuddy_CheckButtonTemplate" id="59">
5676 <Anchors>
5677 <Anchor point="TOP">
5678 <Offset>
5679 <AbsDimension x="-52" y="-40"/>
5680 </Offset>
5681 </Anchor>
5682 </Anchors>
5683 <Scripts>
5684  
5685 </Scripts>
5686 </CheckButton>
5687 <Slider name="TipBuddy_OptionsFrame_Slider2" inherits="TipBuddy_SliderWithText_Template">
5688 <Anchors>
5689 <Anchor point="TOP" relativeTo="TB_Op_Check59" relativePoint="BOTTOM">
5690 <Offset>
5691 <AbsDimension x="46" y="-30"/>
5692 </Offset>
5693 </Anchor>
5694 </Anchors>
5695 </Slider>
5696 <Slider name="TipBuddy_OptionsFrame_Slider3" inherits="TipBuddy_SliderWithText_Template">
5697 <Anchors>
5698 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_Slider2" relativePoint="BOTTOM">
5699 <Offset>
5700 <AbsDimension x="0" y="-25"/>
5701 </Offset>
5702 </Anchor>
5703 </Anchors>
5704 </Slider>
5705 <Frame name="TipBuddy_OptionsFrame_CompactOptionsTitle">
5706 <Size>
5707 <AbsDimension x="210" y="22"/>
5708 </Size>
5709 <Anchors>
5710 <Anchor point="BOTTOM" relativePoint="TOP">
5711 <Offset>
5712 <AbsDimension x="0" y="-4"/>
5713 </Offset>
5714 </Anchor>
5715 </Anchors>
5716 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
5717 <EdgeSize>
5718 <AbsValue val="8"/>
5719 </EdgeSize>
5720 <TileSize>
5721 <AbsValue val="8"/>
5722 </TileSize>
5723 <BackgroundInsets>
5724 <AbsInset left="2" right="2" top="2" bottom="2"/>
5725 </BackgroundInsets>
5726 </Backdrop>
5727 <Layers>
5728 <Layer>
5729 <FontString name="$parentText" inherits="GameFontHighlight" text="FADING OPTIONS">
5730 <Anchors>
5731 <Anchor point="CENTER">
5732 <Offset>
5733 <AbsDimension x="0" y="0"/>
5734 </Offset>
5735 </Anchor>
5736 </Anchors>
5737 </FontString>
5738 </Layer>
5739 </Layers>
5740 <Scripts>
5741 <OnLoad>
5742 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
5743 this:SetBackdropColor(0.15, 0.15, 0.15);
5744 </OnLoad>
5745 </Scripts>
5746 </Frame>
5747 </Frames>
5748 </Frame>
5749  
5750  
5751  
5752  
5753 <Button name="TipBuddy_OptionsFrameApply" inherits="GameMenuButtonTemplate" text="Apply">
5754 <Size>
5755 <AbsDimension x="80" y="21"/>
5756 </Size>
5757 <Anchors>
5758 <Anchor point="BOTTOMRIGHT">
5759 <Offset>
5760 <AbsDimension x="-20" y="16"/>
5761 </Offset>
5762 </Anchor>
5763 </Anchors>
5764 <Scripts>
5765 <OnClick>
5766 TipBuddy_OptionsFrame_OnSave();
5767 </OnClick>
5768 </Scripts>
5769 </Button>
5770 <Button name="TipBuddy_OptionsFrameCancel" inherits="GameMenuButtonTemplate" text="Cancel">
5771 <Size>
5772 <AbsDimension x="80" y="21"/>
5773 </Size>
5774 <Anchors>
5775 <Anchor point="RIGHT" relativeTo="TipBuddy_OptionsFrameApply" relativePoint="LEFT">
5776 <Offset>
5777 <AbsDimension x="-2" y="0"/>
5778 </Offset>
5779 </Anchor>
5780 </Anchors>
5781 <Scripts>
5782 <OnClick>
5783 TipBuddy_ToggleOptionsFrame();
5784 </OnClick>
5785 </Scripts>
5786 </Button>
5787 <Button name="TipBuddy_OptionsFrameOkay" inherits="GameMenuButtonTemplate" text="Okay">
5788 <Size>
5789 <AbsDimension x="80" y="21"/>
5790 </Size>
5791 <Anchors>
5792 <Anchor point="RIGHT" relativeTo="TipBuddy_OptionsFrameCancel" relativePoint="LEFT">
5793 <Offset>
5794 <AbsDimension x="-2" y="0"/>
5795 </Offset>
5796 </Anchor>
5797 </Anchors>
5798 <Scripts>
5799 <OnClick>
5800 TipBuddy_OptionsFrame_OnSave();
5801 TipBuddy_ToggleOptionsFrame();
5802 </OnClick>
5803 </Scripts>
5804 </Button>
5805  
5806 <!-- SIDE TAB BUTTONS -->
5807 <Button name="TipBuddy_OptionsTabButton_Players" inherits="GameMenuButtonTemplate" text="Players">
5808 <Size>
5809 <AbsDimension x="80" y="21"/>
5810 </Size>
5811 <Anchors>
5812 <Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
5813 <Offset>
5814 <AbsDimension x="14" y="-38"/>
5815 </Offset>
5816 </Anchor>
5817 </Anchors>
5818 <Scripts>
5819 <OnClick>
5820 TipBuddy_HideOptionPanels();
5821 PlaySound("igMainMenuOptionCheckBoxOn");
5822 TipBuddy_OptionsFrame_PlayersFrame:Show();
5823 </OnClick>
5824 </Scripts>
5825 </Button>
5826 <Button name="TipBuddy_OptionsTabButton_NPCs" inherits="GameMenuButtonTemplate" text="NPCs">
5827 <Size>
5828 <AbsDimension x="80" y="21"/>
5829 </Size>
5830 <Anchors>
5831 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Players" relativePoint="BOTTOM">
5832 <Offset>
5833 <AbsDimension x="0" y="-4"/>
5834 </Offset>
5835 </Anchor>
5836 </Anchors>
5837 <Scripts>
5838 <OnClick>
5839 TipBuddy_HideOptionPanels();
5840 PlaySound("igMainMenuOptionCheckBoxOn");
5841 TipBuddy_OptionsFrame_NPCsFrame:Show();
5842 </OnClick>
5843 </Scripts>
5844 </Button>
5845 <Button name="TipBuddy_OptionsTabButton_Pets" inherits="GameMenuButtonTemplate" text="Pets">
5846 <Size>
5847 <AbsDimension x="80" y="21"/>
5848 </Size>
5849 <Anchors>
5850 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_NPCs" relativePoint="BOTTOM">
5851 <Offset>
5852 <AbsDimension x="0" y="-4"/>
5853 </Offset>
5854 </Anchor>
5855 </Anchors>
5856 <Scripts>
5857 <OnClick>
5858 TipBuddy_HideOptionPanels();
5859 PlaySound("igMainMenuOptionCheckBoxOn");
5860 TipBuddy_OptionsFrame_PetsFrame:Show();
5861 </OnClick>
5862 </Scripts>
5863 </Button>
5864 <Button name="TipBuddy_OptionsTabButton_CORPSE" inherits="GameMenuButtonTemplate" text="Corpse">
5865 <Size>
5866 <AbsDimension x="80" y="21"/>
5867 </Size>
5868 <Anchors>
5869 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Pets" relativePoint="BOTTOM">
5870 <Offset>
5871 <AbsDimension x="0" y="-4"/>
5872 </Offset>
5873 </Anchor>
5874 </Anchors>
5875 <Scripts>
5876 <OnClick>
5877 TipBuddy_HideOptionPanels();
5878 PlaySound("igMainMenuOptionCheckBoxOn");
5879 TipBuddy_OptionsFrame_CORPSEFrame:Show();
5880 </OnClick>
5881 </Scripts>
5882 </Button>
5883  
5884 <Button name="TipBuddy_OptionsTabButton_General" inherits="GameMenuButtonTemplate" text="General">
5885 <Size>
5886 <AbsDimension x="80" y="21"/>
5887 </Size>
5888 <Anchors>
5889 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_CORPSE" relativePoint="BOTTOM">
5890 <Offset>
5891 <AbsDimension x="0" y="-32"/>
5892 </Offset>
5893 </Anchor>
5894 </Anchors>
5895 <Scripts>
5896 <OnClick>
5897 TipBuddy_HideOptionPanels();
5898 PlaySound("igMainMenuOptionCheckBoxOn");
5899 TipBuddy_OptionsFrame_General_Options:Show();
5900 </OnClick>
5901 </Scripts>
5902 </Button>
5903 <Button name="TipBuddy_OptionsTabButton_Anchoring" inherits="GameMenuButtonTemplate" text="Anchoring">
5904 <Size>
5905 <AbsDimension x="80" y="21"/>
5906 </Size>
5907 <Anchors>
5908 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_General" relativePoint="BOTTOM">
5909 <Offset>
5910 <AbsDimension x="0" y="-4"/>
5911 </Offset>
5912 </Anchor>
5913 </Anchors>
5914 <Scripts>
5915 <OnClick>
5916 TipBuddy_HideOptionPanels();
5917 PlaySound("igMainMenuOptionCheckBoxOn");
5918 TipBuddy_OptionsFrame_Anchoring_Options:Show();
5919 </OnClick>
5920 </Scripts>
5921 </Button>
5922 <Button name="TipBuddy_OptionsTabButton_Compact" inherits="GameMenuButtonTemplate" text="Fading">
5923 <Size>
5924 <AbsDimension x="80" y="21"/>
5925 </Size>
5926 <Anchors>
5927 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Anchoring" relativePoint="BOTTOM">
5928 <Offset>
5929 <AbsDimension x="0" y="-4"/>
5930 </Offset>
5931 </Anchor>
5932 </Anchors>
5933 <Scripts>
5934 <OnClick>
5935 TipBuddy_HideOptionPanels();
5936 PlaySound("igMainMenuOptionCheckBoxOn");
5937 TipBuddy_OptionsFrame_Compact_Options:Show();
5938 </OnClick>
5939 </Scripts>
5940 </Button>
5941 <Button name="TipBuddy_ShowColorsButton" inherits="GameMenuButtonTemplate" text="Text Colors">
5942 <Size>
5943 <AbsDimension x="80" y="21"/>
5944 </Size>
5945 <Anchors>
5946 <Anchor point="TOP" relativeTo="TipBuddy_OptionsTabButton_Compact" relativePoint="BOTTOM">
5947 <Offset>
5948 <AbsDimension x="0" y="-32"/>
5949 </Offset>
5950 </Anchor>
5951 </Anchors>
5952  
5953 <NormalText name="$parentText" inherits="TBGameFontNormal"/>
5954 <DisabledText inherits="TBGameFontDisable"/>
5955 <HighlightText inherits="TBGameFontHighlight"/>
5956 <NormalTexture inherits="UIPanelButtonUpTexture"/>
5957 <PushedTexture inherits="UIPanelButtonDownTexture"/>
5958 <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
5959 <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
5960 <Scripts>
5961 <OnClick>
5962 TipBuddy_ColorOptionsFrame:Show();
5963 PlaySound("igMainMenuOptionCheckBoxOn");
5964 TipBuddy_ToggleOptionsFrame();
5965 </OnClick>
5966 <OnEnter>
5967 GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
5968 GameTooltip:SetText( TB_OPTION_COLORTEXTBUTTON_TOOLTIP, nil, nil, nil, nil, 1);
5969 </OnEnter>
5970 <OnLeave>
5971 GameTooltip:Hide();
5972 </OnLeave>
5973 </Scripts>
5974 </Button>
5975 <Button name="TipBuddy_ShowTextVars" inherits="GameMenuButtonTemplate" text="Show Vars">
5976 <Size>
5977 <AbsDimension x="80" y="21"/>
5978 </Size>
5979 <Anchors>
5980 <Anchor point="TOP" relativeTo="TipBuddy_ShowColorsButton" relativePoint="BOTTOM">
5981 <Offset>
5982 <AbsDimension x="0" y="-16"/>
5983 </Offset>
5984 </Anchor>
5985 </Anchors>
5986 <NormalText name="$parentText" inherits="TBGameFontNormal"/>
5987 <DisabledText inherits="TBGameFontDisable"/>
5988 <HighlightText inherits="TBGameFontHighlight"/>
5989 <NormalTexture inherits="UIPanelButtonUpTexture"/>
5990 <PushedTexture inherits="UIPanelButtonDownTexture"/>
5991 <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
5992 <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
5993 <Scripts>
5994 <OnClick>
5995 if (TB_TextVariablesFrame:IsVisible()) then
5996 TB_TextVariablesFrame:Hide();
5997 TipBuddy_ShowTextVars:SetText("Show Vars");
5998 else
5999 TB_TextVariablesFrame:Show();
6000 TipBuddy_ShowTextVars:SetText("Hide Vars");
6001 end
6002 </OnClick>
6003 </Scripts>
6004 </Button>
6005 <Button name="TipBuddy_OptionsFrameResetVars" inherits="GameMenuButtonTemplate" text="Reset All">
6006 <Size>
6007 <AbsDimension x="80" y="21"/>
6008 </Size>
6009 <Anchors>
6010 <Anchor point="TOP" relativeTo="TipBuddy_ShowTextVars" relativePoint="BOTTOM">
6011 <Offset>
6012 <AbsDimension x="0" y="-64"/>
6013 </Offset>
6014 </Anchor>
6015 </Anchors>
6016 <Scripts>
6017 <OnClick>
6018 TipBuddy_ClickResetVarsButton();
6019 </OnClick>
6020 </Scripts>
6021 </Button>
6022  
6023 </Frames>
6024 </Frame>
6025  
6026  
6027  
6028  
6029  
6030  
6031  
6032 <Frame name="TipBuddy_ColorOptionsFrame" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
6033 <Size>
6034 <AbsDimension x="572" y="464"/>
6035 </Size>
6036 <Anchors>
6037 <Anchor point="CENTER" />
6038 </Anchors>
6039 <Scripts>
6040 <OnLoad>
6041 TipBuddy_OptionsFrame_OnLoad();
6042 </OnLoad>
6043 <OnKeyDown>
6044 if ( arg1 == "ESCAPE" ) then
6045 this:Hide();
6046 TipBuddy_ToggleOptionsFrame();
6047 elseif ( arg1 == "ENTER") then
6048 ChatFrame_OpenChat("", chatFrame);
6049 elseif ( arg1 == "/") then
6050 ChatFrame_OpenChat("/", chatFrame);
6051 elseif ( arg1 == strupper(GetBindingKey("SCREENSHOT"))) then
6052 RunBinding("SCREENSHOT");
6053 end
6054 </OnKeyDown>
6055 </Scripts>
6056  
6057 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
6058 <BackgroundInsets>
6059 <AbsInset left="11" right="12" top="12" bottom="11"/>
6060 </BackgroundInsets>
6061 <TileSize>
6062 <AbsValue val="32"/>
6063 </TileSize>
6064 <EdgeSize>
6065 <AbsValue val="32"/>
6066 </EdgeSize>
6067 </Backdrop>
6068  
6069 <Layers>
6070 <Layer level="ARTWORK">
6071 <Texture name="TipBuddy_ColorOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
6072 <Size>
6073 <AbsDimension x="290" y="64"/>
6074 </Size>
6075 <Anchors>
6076 <Anchor point="TOP">
6077 <Offset>
6078 <AbsDimension x="0" y="12"/>
6079 </Offset>
6080 </Anchor>
6081 </Anchors>
6082 </Texture>
6083 <FontString name="" inherits="GameFontNormal" text="Text Colors">
6084 <Anchors>
6085 <Anchor point="TOP" relativeTo="TipBuddy_ColorOptionsFrameHeader">
6086 <Offset>
6087 <AbsDimension x="0" y="-14"/>
6088 </Offset>
6089 </Anchor>
6090 </Anchors>
6091 </FontString>
6092 </Layer>
6093 </Layers>
6094  
6095 <Frames>
6096 <Frame name="TipBuddy_OptionsFrame_Color_Options" inherits="OptionFrameBoxTemplate" frameStrata="DIALOG" toplevel="true">
6097 <Size>
6098 <AbsDimension x="534" y="400"/>
6099 </Size>
6100 <Anchors>
6101 <Anchor point="BOTTOM">
6102 <Offset>
6103 <AbsDimension x="0" y="40"/>
6104 </Offset>
6105 </Anchor>
6106 </Anchors>
6107 <Scripts>
6108 <OnLoad>
6109 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
6110 this:SetBackdropColor(0.15, 0.15, 0.15);
6111 </OnLoad>
6112 </Scripts>
6113 <Frames>
6114  
6115 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text1" inherits="TipBuddy_ColorPickerButtonSml_Template" id="1">
6116 <Size>
6117 <AbsDimension x="32" y="30"/>
6118 </Size>
6119 <Anchors>
6120 <Anchor point="TOPLEFT">
6121 <Offset>
6122 <AbsDimension x="16" y="-36"/>
6123 </Offset>
6124 </Anchor>
6125 </Anchors>
6126 </Button>
6127 <Frame name="TipBuddy_ColorSub_Name" frameStrata="DIALOG" toplevel="true">
6128 <Size>
6129 <AbsDimension x="120" y="22"/>
6130 </Size>
6131 <Anchors>
6132 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="TOPLEFT">
6133 <Offset>
6134 <AbsDimension x="0" y="2"/>
6135 </Offset>
6136 </Anchor>
6137 </Anchors>
6138 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6139 <EdgeSize>
6140 <AbsValue val="16"/>
6141 </EdgeSize>
6142 <TileSize>
6143 <AbsValue val="16"/>
6144 </TileSize>
6145 <BackgroundInsets>
6146 <AbsInset left="2" right="2" top="2" bottom="2"/>
6147 </BackgroundInsets>
6148 </Backdrop>
6149 <Layers>
6150 <Layer level="ARTWORK">
6151 <FontString name="" inherits="GameFontNormal" text="|cffffffffNames">
6152 <Anchors>
6153 <Anchor point="CENTER"/>
6154 </Anchors>
6155 </FontString>
6156 </Layer>
6157 </Layers>
6158 <Scripts>
6159 <OnLoad>
6160 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6161 this:SetBackdropColor(0.15, 0.15, 0.15);
6162 </OnLoad>
6163 </Scripts>
6164 </Frame>
6165 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text2" inherits="TipBuddy_ColorPickerButtonSml_Template" id="2">
6166 <Size>
6167 <AbsDimension x="32" y="30"/>
6168 </Size>
6169 <Anchors>
6170 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="BOTTOM">
6171 <Offset>
6172 <AbsDimension x="0" y="-2"/>
6173 </Offset>
6174 </Anchor>
6175 </Anchors>
6176 </Button>
6177 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text3" inherits="TipBuddy_ColorPickerButtonSml_Template" id="3">
6178 <Size>
6179 <AbsDimension x="32" y="30"/>
6180 </Size>
6181 <Anchors>
6182 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text2" relativePoint="BOTTOM">
6183 <Offset>
6184 <AbsDimension x="0" y="-2"/>
6185 </Offset>
6186 </Anchor>
6187 </Anchors>
6188 </Button>
6189 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text4" inherits="TipBuddy_ColorPickerButtonSml_Template" id="4">
6190 <Size>
6191 <AbsDimension x="32" y="30"/>
6192 </Size>
6193 <Anchors>
6194 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text3" relativePoint="BOTTOM">
6195 <Offset>
6196 <AbsDimension x="0" y="-2"/>
6197 </Offset>
6198 </Anchor>
6199 </Anchors>
6200 </Button>
6201 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text5" inherits="TipBuddy_ColorPickerButtonSml_Template" id="5">
6202 <Size>
6203 <AbsDimension x="32" y="30"/>
6204 </Size>
6205 <Anchors>
6206 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text4" relativePoint="BOTTOM">
6207 <Offset>
6208 <AbsDimension x="0" y="-2"/>
6209 </Offset>
6210 </Anchor>
6211 </Anchors>
6212 </Button>
6213 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text6" inherits="TipBuddy_ColorPickerButtonSml_Template" id="6">
6214 <Size>
6215 <AbsDimension x="32" y="30"/>
6216 </Size>
6217 <Anchors>
6218 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text15" relativePoint="BOTTOM">
6219 <Offset>
6220 <AbsDimension x="0" y="-2"/>
6221 </Offset>
6222 </Anchor>
6223 </Anchors>
6224 </Button>
6225 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text7" inherits="TipBuddy_ColorPickerButtonSml_Template" id="7">
6226 <Size>
6227 <AbsDimension x="32" y="30"/>
6228 </Size>
6229 <Anchors>
6230 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text6" relativePoint="BOTTOM">
6231 <Offset>
6232 <AbsDimension x="0" y="-2"/>
6233 </Offset>
6234 </Anchor>
6235 </Anchors>
6236 </Button>
6237 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text8" inherits="TipBuddy_ColorPickerButtonSml_Template" id="8">
6238 <Size>
6239 <AbsDimension x="32" y="30"/>
6240 </Size>
6241 <Anchors>
6242 <Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text1" relativePoint="RIGHT">
6243 <Offset>
6244 <AbsDimension x="96" y="0"/>
6245 </Offset>
6246 </Anchor>
6247 </Anchors>
6248 </Button>
6249 <Frame name="TipBuddy_ColorSub_Guild" frameStrata="DIALOG" toplevel="true">
6250 <Size>
6251 <AbsDimension x="120" y="22"/>
6252 </Size>
6253 <Anchors>
6254 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="TOPLEFT">
6255 <Offset>
6256 <AbsDimension x="0" y="2"/>
6257 </Offset>
6258 </Anchor>
6259 </Anchors>
6260 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6261 <EdgeSize>
6262 <AbsValue val="16"/>
6263 </EdgeSize>
6264 <TileSize>
6265 <AbsValue val="16"/>
6266 </TileSize>
6267 <BackgroundInsets>
6268 <AbsInset left="2" right="2" top="2" bottom="2"/>
6269 </BackgroundInsets>
6270 </Backdrop>
6271 <Layers>
6272 <Layer level="ARTWORK">
6273 <FontString name="" inherits="GameFontNormal" text="|cffffffffGuild/Titles">
6274 <Anchors>
6275 <Anchor point="CENTER"/>
6276 </Anchors>
6277 </FontString>
6278 </Layer>
6279 </Layers>
6280 <Scripts>
6281 <OnLoad>
6282 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6283 this:SetBackdropColor(0.15, 0.15, 0.15);
6284 </OnLoad>
6285 </Scripts>
6286 </Frame>
6287 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text9" inherits="TipBuddy_ColorPickerButtonSml_Template" id="9">
6288 <Size>
6289 <AbsDimension x="32" y="30"/>
6290 </Size>
6291 <Anchors>
6292 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="BOTTOM">
6293 <Offset>
6294 <AbsDimension x="0" y="-2"/>
6295 </Offset>
6296 </Anchor>
6297 </Anchors>
6298 </Button>
6299 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text10" inherits="TipBuddy_ColorPickerButtonSml_Template" id="10">
6300 <Size>
6301 <AbsDimension x="32" y="30"/>
6302 </Size>
6303 <Anchors>
6304 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text9" relativePoint="BOTTOM">
6305 <Offset>
6306 <AbsDimension x="0" y="-2"/>
6307 </Offset>
6308 </Anchor>
6309 </Anchors>
6310 </Button>
6311 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text11" inherits="TipBuddy_ColorPickerButtonSml_Template" id="11">
6312 <Size>
6313 <AbsDimension x="32" y="30"/>
6314 </Size>
6315 <Anchors>
6316 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text10" relativePoint="BOTTOM">
6317 <Offset>
6318 <AbsDimension x="0" y="-2"/>
6319 </Offset>
6320 </Anchor>
6321 </Anchors>
6322 </Button>
6323 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text12" inherits="TipBuddy_ColorPickerButtonSml_Template" id="12">
6324 <Size>
6325 <AbsDimension x="32" y="30"/>
6326 </Size>
6327 <Anchors>
6328 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text11" relativePoint="BOTTOM">
6329 <Offset>
6330 <AbsDimension x="0" y="-2"/>
6331 </Offset>
6332 </Anchor>
6333 </Anchors>
6334 </Button>
6335 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text13" inherits="TipBuddy_ColorPickerButtonSml_Template" id="13">
6336 <Size>
6337 <AbsDimension x="32" y="30"/>
6338 </Size>
6339 <Anchors>
6340 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text12" relativePoint="BOTTOM">
6341 <Offset>
6342 <AbsDimension x="0" y="-2"/>
6343 </Offset>
6344 </Anchor>
6345 </Anchors>
6346 </Button>
6347 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text14" inherits="TipBuddy_ColorPickerButtonSml_Template" id="14">
6348 <Size>
6349 <AbsDimension x="32" y="30"/>
6350 </Size>
6351 <Anchors>
6352 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text13" relativePoint="BOTTOM">
6353 <Offset>
6354 <AbsDimension x="0" y="-2"/>
6355 </Offset>
6356 </Anchor>
6357 </Anchors>
6358 </Button>
6359 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text15" inherits="TipBuddy_ColorPickerButtonSml_Template" id="15">
6360 <Size>
6361 <AbsDimension x="32" y="30"/>
6362 </Size>
6363 <Anchors>
6364 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text14" relativePoint="BOTTOM">
6365 <Offset>
6366 <AbsDimension x="0" y="-2"/>
6367 </Offset>
6368 </Anchor>
6369 </Anchors>
6370 </Button>
6371 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text16" inherits="TipBuddy_ColorPickerButtonSml_Template" id="16">
6372 <Size>
6373 <AbsDimension x="32" y="30"/>
6374 </Size>
6375 <Anchors>
6376 <Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text8" relativePoint="RIGHT">
6377 <Offset>
6378 <AbsDimension x="96" y="0"/>
6379 </Offset>
6380 </Anchor>
6381 </Anchors>
6382 </Button>
6383 <Frame name="TipBuddy_ColorSub_Level" frameStrata="DIALOG" toplevel="true">
6384 <Size>
6385 <AbsDimension x="120" y="22"/>
6386 </Size>
6387 <Anchors>
6388 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="TOPLEFT">
6389 <Offset>
6390 <AbsDimension x="0" y="2"/>
6391 </Offset>
6392 </Anchor>
6393 </Anchors>
6394 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6395 <EdgeSize>
6396 <AbsValue val="16"/>
6397 </EdgeSize>
6398 <TileSize>
6399 <AbsValue val="16"/>
6400 </TileSize>
6401 <BackgroundInsets>
6402 <AbsInset left="2" right="2" top="2" bottom="2"/>
6403 </BackgroundInsets>
6404 </Backdrop>
6405 <Layers>
6406 <Layer level="ARTWORK">
6407 <FontString name="" inherits="GameFontNormal" text="|cffffffffLevel Difficulty">
6408 <Anchors>
6409 <Anchor point="CENTER"/>
6410 </Anchors>
6411 </FontString>
6412 </Layer>
6413 </Layers>
6414 <Scripts>
6415 <OnLoad>
6416 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6417 this:SetBackdropColor(0.15, 0.15, 0.15);
6418 </OnLoad>
6419 </Scripts>
6420 </Frame>
6421 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text17" inherits="TipBuddy_ColorPickerButtonSml_Template" id="17">
6422 <Size>
6423 <AbsDimension x="32" y="30"/>
6424 </Size>
6425 <Anchors>
6426 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="BOTTOM">
6427 <Offset>
6428 <AbsDimension x="0" y="-2"/>
6429 </Offset>
6430 </Anchor>
6431 </Anchors>
6432 </Button>
6433 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text18" inherits="TipBuddy_ColorPickerButtonSml_Template" id="18">
6434 <Size>
6435 <AbsDimension x="32" y="30"/>
6436 </Size>
6437 <Anchors>
6438 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text17" relativePoint="BOTTOM">
6439 <Offset>
6440 <AbsDimension x="0" y="-2"/>
6441 </Offset>
6442 </Anchor>
6443 </Anchors>
6444 </Button>
6445 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text19" inherits="TipBuddy_ColorPickerButtonSml_Template" id="19">
6446 <Size>
6447 <AbsDimension x="32" y="30"/>
6448 </Size>
6449 <Anchors>
6450 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text18" relativePoint="BOTTOM">
6451 <Offset>
6452 <AbsDimension x="0" y="-2"/>
6453 </Offset>
6454 </Anchor>
6455 </Anchors>
6456 </Button>
6457 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text20" inherits="TipBuddy_ColorPickerButtonSml_Template" id="20">
6458 <Size>
6459 <AbsDimension x="32" y="30"/>
6460 </Size>
6461 <Anchors>
6462 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text19" relativePoint="BOTTOM">
6463 <Offset>
6464 <AbsDimension x="0" y="-2"/>
6465 </Offset>
6466 </Anchor>
6467 </Anchors>
6468 </Button>
6469 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text21" inherits="TipBuddy_ColorPickerButtonSml_Template" id="21">
6470 <Size>
6471 <AbsDimension x="32" y="30"/>
6472 </Size>
6473 <Anchors>
6474 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text20" relativePoint="BOTTOM">
6475 <Offset>
6476 <AbsDimension x="0" y="-2"/>
6477 </Offset>
6478 </Anchor>
6479 </Anchors>
6480 </Button>
6481 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text22" inherits="TipBuddy_ColorPickerButtonSml_Template" id="22">
6482 <Size>
6483 <AbsDimension x="32" y="30"/>
6484 </Size>
6485 <Anchors>
6486 <Anchor point="LEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text16" relativePoint="RIGHT">
6487 <Offset>
6488 <AbsDimension x="96" y="0"/>
6489 </Offset>
6490 </Anchor>
6491 </Anchors>
6492 </Button>
6493 <Frame name="TipBuddy_ColorSub_Classes" frameStrata="DIALOG" toplevel="true">
6494 <Size>
6495 <AbsDimension x="120" y="22"/>
6496 </Size>
6497 <Anchors>
6498 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text22" relativePoint="TOPLEFT">
6499 <Offset>
6500 <AbsDimension x="0" y="2"/>
6501 </Offset>
6502 </Anchor>
6503 </Anchors>
6504 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6505 <EdgeSize>
6506 <AbsValue val="16"/>
6507 </EdgeSize>
6508 <TileSize>
6509 <AbsValue val="16"/>
6510 </TileSize>
6511 <BackgroundInsets>
6512 <AbsInset left="2" right="2" top="2" bottom="2"/>
6513 </BackgroundInsets>
6514 </Backdrop>
6515 <Layers>
6516 <Layer level="ARTWORK">
6517 <FontString name="" inherits="GameFontNormal" text="|cffffffffClasses">
6518 <Anchors>
6519 <Anchor point="CENTER"/>
6520 </Anchors>
6521 </FontString>
6522 </Layer>
6523 </Layers>
6524 <Scripts>
6525 <OnLoad>
6526 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6527 this:SetBackdropColor(0.15, 0.15, 0.15);
6528 </OnLoad>
6529 </Scripts>
6530 </Frame>
6531 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text23" inherits="TipBuddy_ColorPickerButtonSml_Template" id="23">
6532 <Size>
6533 <AbsDimension x="32" y="30"/>
6534 </Size>
6535 <Anchors>
6536 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text22" relativePoint="BOTTOM">
6537 <Offset>
6538 <AbsDimension x="0" y="-2"/>
6539 </Offset>
6540 </Anchor>
6541 </Anchors>
6542 </Button>
6543 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text24" inherits="TipBuddy_ColorPickerButtonSml_Template" id="24">
6544 <Size>
6545 <AbsDimension x="32" y="30"/>
6546 </Size>
6547 <Anchors>
6548 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text23" relativePoint="BOTTOM">
6549 <Offset>
6550 <AbsDimension x="0" y="-2"/>
6551 </Offset>
6552 </Anchor>
6553 </Anchors>
6554 </Button>
6555 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text25" inherits="TipBuddy_ColorPickerButtonSml_Template" id="25">
6556 <Size>
6557 <AbsDimension x="32" y="30"/>
6558 </Size>
6559 <Anchors>
6560 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text24" relativePoint="BOTTOM">
6561 <Offset>
6562 <AbsDimension x="0" y="-2"/>
6563 </Offset>
6564 </Anchor>
6565 </Anchors>
6566 </Button>
6567 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text26" inherits="TipBuddy_ColorPickerButtonSml_Template" id="26">
6568 <Size>
6569 <AbsDimension x="32" y="30"/>
6570 </Size>
6571 <Anchors>
6572 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text25" relativePoint="BOTTOM">
6573 <Offset>
6574 <AbsDimension x="0" y="-2"/>
6575 </Offset>
6576 </Anchor>
6577 </Anchors>
6578 </Button>
6579 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text27" inherits="TipBuddy_ColorPickerButtonSml_Template" id="27">
6580 <Size>
6581 <AbsDimension x="32" y="30"/>
6582 </Size>
6583 <Anchors>
6584 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text26" relativePoint="BOTTOM">
6585 <Offset>
6586 <AbsDimension x="0" y="-2"/>
6587 </Offset>
6588 </Anchor>
6589 </Anchors>
6590 </Button>
6591 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text28" inherits="TipBuddy_ColorPickerButtonSml_Template" id="28">
6592 <Size>
6593 <AbsDimension x="32" y="30"/>
6594 </Size>
6595 <Anchors>
6596 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text27" relativePoint="BOTTOM">
6597 <Offset>
6598 <AbsDimension x="0" y="-2"/>
6599 </Offset>
6600 </Anchor>
6601 </Anchors>
6602 </Button>
6603 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text29" inherits="TipBuddy_ColorPickerButtonSml_Template" id="29">
6604 <Size>
6605 <AbsDimension x="32" y="30"/>
6606 </Size>
6607 <Anchors>
6608 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text28" relativePoint="BOTTOM">
6609 <Offset>
6610 <AbsDimension x="0" y="-2"/>
6611 </Offset>
6612 </Anchor>
6613 </Anchors>
6614 </Button>
6615 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text30" inherits="TipBuddy_ColorPickerButtonSml_Template" id="30">
6616 <Size>
6617 <AbsDimension x="32" y="30"/>
6618 </Size>
6619 <Anchors>
6620 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text29" relativePoint="BOTTOM">
6621 <Offset>
6622 <AbsDimension x="0" y="-2"/>
6623 </Offset>
6624 </Anchor>
6625 </Anchors>
6626 </Button>
6627 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text31" inherits="TipBuddy_ColorPickerButtonSml_Template" id="31">
6628 <Size>
6629 <AbsDimension x="32" y="30"/>
6630 </Size>
6631 <Anchors>
6632 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text30" relativePoint="BOTTOM">
6633 <Offset>
6634 <AbsDimension x="0" y="-2"/>
6635 </Offset>
6636 </Anchor>
6637 </Anchors>
6638 </Button>
6639 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text32" inherits="TipBuddy_ColorPickerButtonSml_Template" id="32">
6640 <Size>
6641 <AbsDimension x="32" y="30"/>
6642 </Size>
6643 <Anchors>
6644 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text7" relativePoint="BOTTOM">
6645 <Offset>
6646 <AbsDimension x="0" y="-42"/>
6647 </Offset>
6648 </Anchor>
6649 </Anchors>
6650 </Button>
6651 <Frame name="TipBuddy_ColorSub_UniqueUnits" frameStrata="DIALOG" toplevel="true">
6652 <Size>
6653 <AbsDimension x="120" y="22"/>
6654 </Size>
6655 <Anchors>
6656 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text32" relativePoint="TOPLEFT">
6657 <Offset>
6658 <AbsDimension x="0" y="2"/>
6659 </Offset>
6660 </Anchor>
6661 </Anchors>
6662 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6663 <EdgeSize>
6664 <AbsValue val="16"/>
6665 </EdgeSize>
6666 <TileSize>
6667 <AbsValue val="16"/>
6668 </TileSize>
6669 <BackgroundInsets>
6670 <AbsInset left="2" right="2" top="2" bottom="2"/>
6671 </BackgroundInsets>
6672 </Backdrop>
6673 <Layers>
6674 <Layer level="ARTWORK">
6675 <FontString name="" inherits="GameFontNormal" text="|cffffffffUnique Units">
6676 <Anchors>
6677 <Anchor point="CENTER"/>
6678 </Anchors>
6679 </FontString>
6680 </Layer>
6681 </Layers>
6682 <Scripts>
6683 <OnLoad>
6684 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6685 this:SetBackdropColor(0.15, 0.15, 0.15);
6686 </OnLoad>
6687 </Scripts>
6688 </Frame>
6689 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text33" inherits="TipBuddy_ColorPickerButtonSml_Template" id="33">
6690 <Size>
6691 <AbsDimension x="32" y="30"/>
6692 </Size>
6693 <Anchors>
6694 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text32" relativePoint="BOTTOM">
6695 <Offset>
6696 <AbsDimension x="0" y="-2"/>
6697 </Offset>
6698 </Anchor>
6699 </Anchors>
6700 </Button>
6701 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text34" inherits="TipBuddy_ColorPickerButtonSml_Template" id="34">
6702 <Size>
6703 <AbsDimension x="32" y="30"/>
6704 </Size>
6705 <Anchors>
6706 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text21" relativePoint="BOTTOM">
6707 <Offset>
6708 <AbsDimension x="0" y="-32"/>
6709 </Offset>
6710 </Anchor>
6711 </Anchors>
6712 </Button>
6713 <Frame name="TipBuddy_ColorSub_Other" frameStrata="DIALOG" toplevel="true">
6714 <Size>
6715 <AbsDimension x="120" y="22"/>
6716 </Size>
6717 <Anchors>
6718 <Anchor point="BOTTOMLEFT" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text34" relativePoint="TOPLEFT">
6719 <Offset>
6720 <AbsDimension x="0" y="2"/>
6721 </Offset>
6722 </Anchor>
6723 </Anchors>
6724 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
6725 <EdgeSize>
6726 <AbsValue val="16"/>
6727 </EdgeSize>
6728 <TileSize>
6729 <AbsValue val="16"/>
6730 </TileSize>
6731 <BackgroundInsets>
6732 <AbsInset left="2" right="2" top="2" bottom="2"/>
6733 </BackgroundInsets>
6734 </Backdrop>
6735 <Layers>
6736 <Layer level="ARTWORK">
6737 <FontString name="" inherits="GameFontNormal" text="|cffffffffOther">
6738 <Anchors>
6739 <Anchor point="CENTER"/>
6740 </Anchors>
6741 </FontString>
6742 </Layer>
6743 </Layers>
6744 <Scripts>
6745 <OnLoad>
6746 this:SetBackdropBorderColor(0.6, 0.6, 0.7);
6747 this:SetBackdropColor(0.15, 0.15, 0.15);
6748 </OnLoad>
6749 </Scripts>
6750 </Frame>
6751 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text35" inherits="TipBuddy_ColorPickerButtonSml_Template" id="35">
6752 <Size>
6753 <AbsDimension x="32" y="30"/>
6754 </Size>
6755 <Anchors>
6756 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text34" relativePoint="BOTTOM">
6757 <Offset>
6758 <AbsDimension x="0" y="-2"/>
6759 </Offset>
6760 </Anchor>
6761 </Anchors>
6762 </Button>
6763 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text36" inherits="TipBuddy_ColorPickerButtonSml_Template" id="36">
6764 <Size>
6765 <AbsDimension x="32" y="30"/>
6766 </Size>
6767 <Anchors>
6768 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text35" relativePoint="BOTTOM">
6769 <Offset>
6770 <AbsDimension x="0" y="-2"/>
6771 </Offset>
6772 </Anchor>
6773 </Anchors>
6774 </Button>
6775 <Button name="TipBuddy_OptionsFrame_ColorPicker_Text37" inherits="TipBuddy_ColorPickerButtonSml_Template" id="37">
6776 <Size>
6777 <AbsDimension x="32" y="30"/>
6778 </Size>
6779 <Anchors>
6780 <Anchor point="TOP" relativeTo="TipBuddy_OptionsFrame_ColorPicker_Text36" relativePoint="BOTTOM">
6781 <Offset>
6782 <AbsDimension x="0" y="-2"/>
6783 </Offset>
6784 </Anchor>
6785 </Anchors>
6786 </Button>
6787  
6788 </Frames>
6789 </Frame>
6790  
6791 <Button name="TipBuddy_ColorOptionsFrameOkay" inherits="GameMenuButtonTemplate" text="Okay">
6792 <Anchors>
6793 <Anchor point="BOTTOM">
6794 <Offset>
6795 <AbsDimension x="0" y="16"/>
6796 </Offset>
6797 </Anchor>
6798 </Anchors>
6799 <Scripts>
6800 <OnClick>
6801 TipBuddy_ColorOptionsFrame:Hide();
6802 TipBuddy_OptionsFrame_OnSave();
6803 TipBuddy_ToggleOptionsFrame();
6804 </OnClick>
6805 </Scripts>
6806 </Button>
6807  
6808 </Frames>
6809 </Frame>
6810  
6811  
6812 <!-- THIS IS A HORRIBLE HACK because bliz harcodes the target's tooltip to show on TextStatusBar mouseover :( -->
6813 <Frame name="TipBuddy_TargetFrameBarCover" toplevel="true" parent="TargetFrame">
6814 <Size>
6815 <AbsDimension x="121" y="26"/>
6816 </Size>
6817 <Anchors>
6818 <Anchor point="TOPRIGHT">
6819 <Offset>
6820 <AbsDimension x="-106" y="-41"/>
6821 </Offset>
6822 </Anchor>
6823 </Anchors>
6824 <Scripts>
6825 <OnEnter>
6826 <!-- TIPBUDDY -->
6827 TipBuddy.unitframe = 1;
6828 --TB_AddMessage("entering unit frame: "..TargetFrame.unit);
6829 TipBuddy.targetType = TipBuddy_TargetInfo_GetTargetType( TargetFrame.unit );
6830  
6831 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
6832 GameTooltip:SetUnit(TargetFrame.unit);
6833 TipBuddy_SetFrame_Visibility( TipBuddy.targetType, TargetFrame.unit );
6834 -- hiding health and mana bars because they won't update
6835 if ( TipBuddy_SavedVars[TipBuddy.targetType].off ~= 0 ) then
6836 TipBuddy_TargetFrameHealthBar:Hide();
6837 TipBuddy_TargetFrameManaBar:Hide();
6838 -- setting frame size again
6839 TipBuddy_FrameHeights_Initialize(TipBuddy.targetType);
6840 TipBuddy_SetFrame_Width();
6841 end
6842  
6843 TipBuddy_ShowRank( TipBuddy.targetType, TargetFrame.unit );
6844 TipBuddy_SetFrame_BackgroundColor( TipBuddy.targetType, TargetFrame.unit );
6845 TipBuddy_TargetBuffs_Update( TipBuddy.targetType, TargetFrame.unit );
6846  
6847 </OnEnter>
6848 <OnLeave>
6849 UnitFrame_OnLeave();
6850 <!-- GameTooltip:Hide(); -->
6851 </OnLeave>
6852 </Scripts>
6853 <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
6854 </Frame>
6855  
6856 <!-- MY COLOR PICKER -->
6857 <ColorSelect name="TBColorPickerFrame" frameStrata="DIALOG" toplevel="true" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
6858 <Size>
6859 <AbsDimension x="365" y="200"/>
6860 </Size>
6861 <Anchors>
6862 <Anchor point="CENTER"/>
6863 </Anchors>
6864 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
6865 <BackgroundInsets>
6866 <AbsInset left="11" right="12" top="12" bottom="11"/>
6867 </BackgroundInsets>
6868 <TileSize>
6869 <AbsValue val="32"/>
6870 </TileSize>
6871 <EdgeSize>
6872 <AbsValue val="32"/>
6873 </EdgeSize>
6874 </Backdrop>
6875 <Layers>
6876 <Layer level="ARTWORK">
6877 <Texture name="TBColorSwatch">
6878 <Size>
6879 <AbsDimension x="32" y="32"/>
6880 </Size>
6881 <Anchors>
6882 <Anchor point="TOPLEFT">
6883 <Offset>
6884 <AbsDimension x="225" y="-32"/>
6885 </Offset>
6886 </Anchor>
6887 </Anchors>
6888 <Color r="1.0" g="1.0" b="1.0" a="1.0"/>
6889 </Texture>
6890 <Texture name="TBColorPickerFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
6891 <Size>
6892 <AbsDimension x="256" y="64"/>
6893 </Size>
6894 <Anchors>
6895 <Anchor point="TOP">
6896 <Offset>
6897 <AbsDimension x="0" y="12"/>
6898 </Offset>
6899 </Anchor>
6900 </Anchors>
6901 </Texture>
6902 <FontString inherits="GameFontNormal" text="COLOR_PICKER">
6903 <Anchors>
6904 <Anchor point="TOP" relativeTo="TBColorPickerFrameHeader">
6905 <Offset>
6906 <AbsDimension x="0" y="-14"/>
6907 </Offset>
6908 </Anchor>
6909 </Anchors>
6910 </FontString>
6911 </Layer>
6912 </Layers>
6913 <Frames>
6914 <Frame name="TipBuddy_ColorOptionsFrame_Cover" enableMouse="true">
6915 <Size>
6916 <AbsDimension x="600" y="500"/>
6917 </Size>
6918 <Anchors>
6919 <Anchor point="CENTER" />
6920 </Anchors>
6921 <Scripts>
6922 <OnLoad>
6923 this:SetFrameLevel(TBColorPickerFrame:GetFrameLevel() - 1);
6924 </OnLoad>
6925 </Scripts>
6926 </Frame>
6927 <Button name="TBColorPickerCancelButton" inherits="GameMenuButtonTemplate" text="CANCEL">
6928 <Anchors>
6929 <Anchor point="BOTTOMRIGHT">
6930 <Offset>
6931 <AbsDimension x="-10" y="10"/>
6932 </Offset>
6933 </Anchor>
6934 </Anchors>
6935 <Scripts>
6936 <OnClick>
6937 HideUIPanel(this:GetParent());
6938 if ( TBColorPickerFrame.cancelFunc ) then
6939 TBColorPickerFrame.cancelFunc(TBColorPickerFrame.previousValues);
6940 end
6941 </OnClick>
6942 </Scripts>
6943 </Button>
6944 <Button name="TBColorPickerOkayButton" inherits="GameMenuButtonTemplate" text="OKAY">
6945 <Anchors>
6946 <Anchor point="RIGHT" relativeTo="TBColorPickerCancelButton" relativePoint="LEFT">
6947 <Offset>
6948 <AbsDimension x="0" y="0"/>
6949 </Offset>
6950 </Anchor>
6951 </Anchors>
6952 <Scripts>
6953 <OnClick>
6954 HideUIPanel(this:GetParent());
6955 TBColorPickerFrame.func();
6956 if ( TBColorPickerFrame.opacityFunc ) then
6957 TBColorPickerFrame.opacityFunc();
6958 end
6959 TipBuddy_Background_SetColor();
6960 TipBuddy_OptionsFrame_UpdateColorButtons();
6961 TipBuddy_InitializeTextColors();
6962 </OnClick>
6963 </Scripts>
6964 </Button>
6965 <Slider name="TBOpacitySliderFrame" orientation="VERTICAL" minValue="0" maxValue="1" valueStep="0.05" defaultValue="1">
6966 <Size>
6967 <AbsDimension x="16" y="128"/>
6968 </Size>
6969 <Anchors>
6970 <Anchor point="TOPLEFT" relativeTo="TBColorSwatch" relativePoint="TOPRIGHT">
6971 <Offset>
6972 <AbsDimension x="32" y="0"/>
6973 </Offset>
6974 </Anchor>
6975 </Anchors>
6976 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
6977 <EdgeSize>
6978 <AbsValue val="8"/>
6979 </EdgeSize>
6980 <TileSize>
6981 <AbsValue val="8"/>
6982 </TileSize>
6983 <BackgroundInsets>
6984 <AbsInset left="3" right="3" top="6" bottom="6"/>
6985 </BackgroundInsets>
6986 </Backdrop>
6987 <Layers>
6988 <Layer level="ARTWORK">
6989 <FontString name="$parentText" inherits="GameFontNormalSmall">
6990 <Anchors>
6991 <Anchor point="BOTTOM" relativePoint="TOP"/>
6992 </Anchors>
6993 </FontString>
6994 <FontString inherits="GameFontHighlightSmall" text="0%">
6995 <Anchors>
6996 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
6997 <Offset>
6998 <AbsDimension x="2" y="3"/>
6999 </Offset>
7000 </Anchor>
7001 </Anchors>
7002 </FontString>
7003 <FontString inherits="GameFontHighlightSmall" text="100%">
7004 <Anchors>
7005 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
7006 <Offset>
7007 <AbsDimension x="-2" y="3"/>
7008 </Offset>
7009 </Anchor>
7010 </Anchors>
7011 </FontString>
7012 <FontString name="$parentTextUpdate" inherits="GameFontHighlightSmall" text="Alpha">
7013 <Anchors>
7014 <Anchor point="LEFT" relativePoint="RIGHT">
7015 <Offset>
7016 <AbsDimension x="4" y="0"/>
7017 </Offset>
7018 </Anchor>
7019 </Anchors>
7020 </FontString>
7021 </Layer>
7022 </Layers>
7023 <Scripts>
7024 <OnValueChanged>
7025 if ( TBColorPickerFrame.opacityFunc ) then
7026 TBColorPickerFrame.opacityFunc();
7027 end
7028 </OnValueChanged>
7029 <OnUpdate>
7030 if ( this.updatetext ) then
7031 <!-- we should cap this somehow ("%.2f")? ( format("%.2f", ( this:GetValue() ) ) ) -->
7032 this.updatetext:SetText( "Alpha:\n"..(format("%.0f", ( ((this:GetValue() - 1)*-100) ) )).."%" );
7033 return;
7034 end
7035 this.updatetext = getglobal( this:GetName().."TextUpdate");
7036 </OnUpdate>
7037 </Scripts>
7038 <ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
7039 <Size>
7040 <AbsDimension x="32" y="32"/>
7041 </Size>
7042 </ThumbTexture>
7043 </Slider>
7044 </Frames>
7045 <Scripts>
7046 <OnShow>
7047 this:Raise();
7048 if ( this.hasOpacity ) then
7049 TBOpacitySliderFrame:Show();
7050 TBOpacitySliderFrame:SetValue(this.opacity);
7051 this:SetWidth(365);
7052 else
7053 TBOpacitySliderFrame:Hide();
7054 this:SetWidth(305);
7055 end
7056 PlaySound("gsTitleOptionOK");
7057 </OnShow>
7058 <OnHide>
7059 PlaySound("gsTitleOptionOK");
7060 </OnHide>
7061 <OnColorSelect>
7062 TBColorSwatch:SetTexture(arg1, arg2, arg3);
7063 if ( this.func ) then
7064 this.func();
7065 end
7066 </OnColorSelect>
7067 <OnKeyDown>
7068 if (arg1 == "ESCAPE") then
7069 HideUIPanel(this);
7070 if ( TBColorPickerFrame.cancelFunc ) then
7071 TBColorPickerFrame.cancelFunc(TBColorPickerFrame.previousValues);
7072 end
7073 end
7074 </OnKeyDown>
7075 </Scripts>
7076 <ColorWheelTexture name="TBColorPickerWheel">
7077 <Size>
7078 <AbsDimension x="128" y="128"/>
7079 </Size>
7080 <Anchors>
7081 <Anchor point="TOPLEFT">
7082 <Offset>
7083 <AbsDimension x="16" y="-32"/>
7084 </Offset>
7085 </Anchor>
7086 </Anchors>
7087 </ColorWheelTexture>
7088 <ColorWheelThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
7089 <Size>
7090 <AbsDimension x="10" y="10"/>
7091 </Size>
7092 <TexCoords left="0" right="0.15625" top="0" bottom="0.625"/>
7093 </ColorWheelThumbTexture>
7094 <ColorValueTexture>
7095 <Size>
7096 <AbsDimension x="32" y="128"/>
7097 </Size>
7098 <Anchors>
7099 <Anchor point="LEFT" relativeTo="TBColorPickerWheel" relativePoint="RIGHT">
7100 <Offset>
7101 <AbsDimension x="24" y="0"/>
7102 </Offset>
7103 </Anchor>
7104 </Anchors>
7105 </ColorValueTexture>
7106 <ColorValueThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
7107 <Size>
7108 <AbsDimension x="48" y="14"/>
7109 </Size>
7110 <TexCoords left="0.25" right="1.0" top="0" bottom="0.875"/>
7111 </ColorValueThumbTexture>
7112 </ColorSelect>
7113  
7114 <!-- MY COLOR PICKER_Text -->
7115 <ColorSelect name="TBColorPickerFrame_Text" frameStrata="DIALOG" toplevel="true" parent="UIParent" enableMouse="true" enableKeyboard="true" hidden="true">
7116 <Size>
7117 <AbsDimension x="365" y="200"/>
7118 </Size>
7119 <Anchors>
7120 <Anchor point="CENTER"/>
7121 </Anchors>
7122 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
7123 <BackgroundInsets>
7124 <AbsInset left="11" right="12" top="12" bottom="11"/>
7125 </BackgroundInsets>
7126 <TileSize>
7127 <AbsValue val="32"/>
7128 </TileSize>
7129 <EdgeSize>
7130 <AbsValue val="32"/>
7131 </EdgeSize>
7132 </Backdrop>
7133 <Layers>
7134 <Layer level="ARTWORK">
7135 <Texture name="TBColorSwatch_Text">
7136 <Size>
7137 <AbsDimension x="32" y="32"/>
7138 </Size>
7139 <Anchors>
7140 <Anchor point="TOPLEFT">
7141 <Offset>
7142 <AbsDimension x="225" y="-32"/>
7143 </Offset>
7144 </Anchor>
7145 </Anchors>
7146 <Color r="1.0" g="1.0" b="1.0" a="1.0"/>
7147 </Texture>
7148 <Texture name="TBColorPickerFrameHeader_Text" file="Interface\DialogFrame\UI-DialogBox-Header">
7149 <Size>
7150 <AbsDimension x="256" y="64"/>
7151 </Size>
7152 <Anchors>
7153 <Anchor point="TOP">
7154 <Offset>
7155 <AbsDimension x="0" y="12"/>
7156 </Offset>
7157 </Anchor>
7158 </Anchors>
7159 </Texture>
7160 <FontString inherits="GameFontNormal" text="COLOR_PICKER">
7161 <Anchors>
7162 <Anchor point="TOP" relativeTo="TBColorPickerFrameHeader_Text">
7163 <Offset>
7164 <AbsDimension x="0" y="-14"/>
7165 </Offset>
7166 </Anchor>
7167 </Anchors>
7168 </FontString>
7169 </Layer>
7170 </Layers>
7171 <Frames>
7172 <Frame name="TipBuddy_ColorOptionsFrame_Cover_Text" enableMouse="true">
7173 <Size>
7174 <AbsDimension x="600" y="500"/>
7175 </Size>
7176 <Anchors>
7177 <Anchor point="CENTER" />
7178 </Anchors>
7179 <Scripts>
7180 <OnLoad>
7181 this:SetFrameLevel(TBColorPickerFrame_Text:GetFrameLevel() - 1);
7182 </OnLoad>
7183 </Scripts>
7184 </Frame>
7185 <Button name="TBColorPickerCancelButton_Text" inherits="GameMenuButtonTemplate" text="CANCEL">
7186 <Anchors>
7187 <Anchor point="BOTTOMRIGHT">
7188 <Offset>
7189 <AbsDimension x="-10" y="10"/>
7190 </Offset>
7191 </Anchor>
7192 </Anchors>
7193 <Scripts>
7194 <OnClick>
7195 HideUIPanel(this:GetParent());
7196 if ( TBColorPickerFrame_Text.cancelFunc ) then
7197 TBColorPickerFrame_Text.cancelFunc(TBColorPickerFrame_Text.previousValues);
7198 end
7199 </OnClick>
7200 </Scripts>
7201 </Button>
7202 <Button name="TBColorPickerOkayButton_Text" inherits="GameMenuButtonTemplate" text="OKAY">
7203 <Anchors>
7204 <Anchor point="RIGHT" relativeTo="TBColorPickerCancelButton_Text" relativePoint="LEFT">
7205 <Offset>
7206 <AbsDimension x="0" y="0"/>
7207 </Offset>
7208 </Anchor>
7209 </Anchors>
7210 <Scripts>
7211 <OnClick>
7212 HideUIPanel(this:GetParent());
7213 TBColorPickerFrame_Text.func();
7214 if ( TBColorPickerFrame_Text.opacityFunc ) then
7215 TBColorPickerFrame_Text.opacityFunc();
7216 end
7217 TipBuddy_Background_SetColor_Text();
7218 TipBuddy_OptionsFrame_UpdateColorButtons_Text();
7219 TipBuddy_InitializeTextColors();
7220 </OnClick>
7221 </Scripts>
7222 </Button>
7223 <Slider name="TBOpacitySliderFrame_Text" orientation="VERTICAL" minValue="0" maxValue="1" valueStep="0.05" defaultValue="1">
7224 <Size>
7225 <AbsDimension x="16" y="128"/>
7226 </Size>
7227 <Anchors>
7228 <Anchor point="TOPLEFT" relativeTo="TBColorSwatch_Text" relativePoint="TOPRIGHT">
7229 <Offset>
7230 <AbsDimension x="32" y="0"/>
7231 </Offset>
7232 </Anchor>
7233 </Anchors>
7234 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
7235 <EdgeSize>
7236 <AbsValue val="8"/>
7237 </EdgeSize>
7238 <TileSize>
7239 <AbsValue val="8"/>
7240 </TileSize>
7241 <BackgroundInsets>
7242 <AbsInset left="3" right="3" top="6" bottom="6"/>
7243 </BackgroundInsets>
7244 </Backdrop>
7245 <Layers>
7246 <Layer level="ARTWORK">
7247 <FontString name="$parentText" inherits="GameFontNormalSmall">
7248 <Anchors>
7249 <Anchor point="BOTTOM" relativePoint="TOP"/>
7250 </Anchors>
7251 </FontString>
7252 <FontString inherits="GameFontHighlightSmall" text="0%">
7253 <Anchors>
7254 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
7255 <Offset>
7256 <AbsDimension x="2" y="3"/>
7257 </Offset>
7258 </Anchor>
7259 </Anchors>
7260 </FontString>
7261 <FontString inherits="GameFontHighlightSmall" text="100%">
7262 <Anchors>
7263 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
7264 <Offset>
7265 <AbsDimension x="-2" y="3"/>
7266 </Offset>
7267 </Anchor>
7268 </Anchors>
7269 </FontString>
7270 </Layer>
7271 </Layers>
7272 <Scripts>
7273 <OnValueChanged>
7274 if ( TBColorPickerFrame_Text.opacityFunc ) then
7275 TBColorPickerFrame_Text.opacityFunc();
7276 end
7277 </OnValueChanged>
7278 </Scripts>
7279 <ThumbTexture file="Interface\Buttons\UI-SliderBar-Button-Vertical">
7280 <Size>
7281 <AbsDimension x="32" y="32"/>
7282 </Size>
7283 </ThumbTexture>
7284 </Slider>
7285 </Frames>
7286 <Scripts>
7287 <OnShow>
7288 this:Raise();
7289 if ( this.hasOpacity ) then
7290 TBOpacitySliderFrame_Text:Show();
7291 TBOpacitySliderFrame_Text:SetValue(this.opacity);
7292 this:SetWidth(365);
7293 else
7294 TBOpacitySliderFrame_Text:Hide();
7295 this:SetWidth(305);
7296 end
7297 PlaySound("gsTitleOptionOK");
7298 </OnShow>
7299 <OnHide>
7300 PlaySound("gsTitleOptionOK");
7301 </OnHide>
7302 <OnColorSelect>
7303 TBColorSwatch_Text:SetTexture(arg1, arg2, arg3);
7304 if ( this.func ) then
7305 this.func();
7306 end
7307 </OnColorSelect>
7308 <OnKeyDown>
7309 if (arg1 == "ESCAPE") then
7310 HideUIPanel(this);
7311 if ( TBColorPickerFrame_Text.cancelFunc ) then
7312 TBColorPickerFrame_Text.cancelFunc(TBColorPickerFrame_Text.previousValues);
7313 end
7314 end
7315 </OnKeyDown>
7316 </Scripts>
7317 <ColorWheelTexture name="TBColorPickerWheel_Text">
7318 <Size>
7319 <AbsDimension x="128" y="128"/>
7320 </Size>
7321 <Anchors>
7322 <Anchor point="TOPLEFT">
7323 <Offset>
7324 <AbsDimension x="16" y="-32"/>
7325 </Offset>
7326 </Anchor>
7327 </Anchors>
7328 </ColorWheelTexture>
7329 <ColorWheelThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
7330 <Size>
7331 <AbsDimension x="10" y="10"/>
7332 </Size>
7333 <TexCoords left="0" right="0.15625" top="0" bottom="0.625"/>
7334 </ColorWheelThumbTexture>
7335 <ColorValueTexture>
7336 <Size>
7337 <AbsDimension x="32" y="128"/>
7338 </Size>
7339 <Anchors>
7340 <Anchor point="LEFT" relativeTo="TBColorPickerWheel" relativePoint="RIGHT">
7341 <Offset>
7342 <AbsDimension x="24" y="0"/>
7343 </Offset>
7344 </Anchor>
7345 </Anchors>
7346 </ColorValueTexture>
7347 <ColorValueThumbTexture file="Interface\Buttons\UI-ColorPicker-Buttons">
7348 <Size>
7349 <AbsDimension x="48" y="14"/>
7350 </Size>
7351 <TexCoords left="0.25" right="1.0" top="0" bottom="0.875"/>
7352 </ColorValueThumbTexture>
7353 </ColorSelect>
7354  
7355 <!-- EXTRA CHECKBUTTONS -->
7356 <CheckButton name="TB_Op_Check66" inherits="TipBuddy_CheckButtonTemplate" id="66">
7357 </CheckButton>
7358 <CheckButton name="TB_Op_Check67" inherits="TipBuddy_CheckButtonTemplate" id="67">
7359 </CheckButton>
7360 <CheckButton name="TB_Op_Check68" inherits="TipBuddy_CheckButtonTemplate" id="68">
7361 </CheckButton>
7362 <CheckButton name="TB_Op_Check69" inherits="TipBuddy_CheckButtonTemplate" id="69">
7363 </CheckButton>
7364  
7365 <Frame name="TB_ExtraStuff" hidden="true" parent="UIParent">
7366 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
7367 <EdgeSize>
7368 <AbsValue val="16"/>
7369 </EdgeSize>
7370 <TileSize>
7371 <AbsValue val="16"/>
7372 </TileSize>
7373 <BackgroundInsets>
7374 <AbsInset left="5" right="5" top="5" bottom="5"/>
7375 </BackgroundInsets>
7376 </Backdrop>
7377 <Size>
7378 <AbsDimension x="128" y="128"/>
7379 </Size>
7380 <Anchors>
7381 <Anchor point="CENTER">
7382 <Offset>
7383 <AbsDimension x="0" y="0"/>
7384 </Offset>
7385 </Anchor>
7386 </Anchors>
7387 <Frames>
7388 <Button name="TipBuddy_OptionsFrame_ColorPicker10" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="10">
7389 <Size>
7390 <AbsDimension x="32" y="30"/>
7391 </Size>
7392 <Anchors>
7393 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
7394 <Offset>
7395 <AbsDimension x="0" y="-2"/>
7396 </Offset>
7397 </Anchor>
7398 </Anchors>
7399 </Button>
7400 <Button name="TipBuddy_OptionsFrame_ColorPicker20" toplevel="true" frameStrata="HIGH" inherits="TipBuddy_ColorPickerButton_Template" id="20">
7401 <Size>
7402 <AbsDimension x="32" y="30"/>
7403 </Size>
7404 <Anchors>
7405 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
7406 <Offset>
7407 <AbsDimension x="0" y="-2"/>
7408 </Offset>
7409 </Anchor>
7410 </Anchors>
7411 </Button>
7412 </Frames>
7413 </Frame>
7414 <!-- <Frame parent="UIParent">
7415 <Frames>
7416 <Button name="TitanPanelTipBuddyTitanButton" inherits="TitanPanelIconTemplate" frameStrata="FULLSCREEN" toplevel="true">
7417 <Scripts>
7418 <OnLoad>
7419 TitanPanelTipBuddyIcon_OnLoad();
7420 </OnLoad>
7421 <OnEvent>
7422 TitanPanelTipBuddyIcon_OnEvent();
7423 </OnEvent>
7424 <OnClick>
7425 TitanPanelTipBuddyIcon_OnClick(arg1);
7426 </OnClick>
7427 </Scripts>
7428 </Button>
7429 </Frames>
7430 </Frame> -->
7431 </Ui>