vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui>
2 <Script file="tradeDispenser.lua"/>
3 <Frame name="tDItemTemp" inherits="TradeItemTemplate" virtual="true">
4 <Frames>
5 <Button name="$parentItemButton" inherits="ItemButtonTemplate">
6 <Anchors>
7 <Anchor point="TOPLEFT" relativeTo="$parent"/>
8 </Anchors>
9 <Scripts>
10 <OnClick>
11 tradeDispenserClick(this:GetParent():GetID());
12 </OnClick>
13 <OnDragStart>
14 tradeDispenserClick(this:GetParent():GetID());
15 </OnDragStart>
16 <OnReceiveDrag>
17 tradeDispenserClick(this:GetParent():GetID());
18 </OnReceiveDrag>
19 <OnLoad>
20 this:RegisterForDrag("LeftButton");
21 this:SetFrameLevel(this:GetFrameLevel() + 2);
22 getglobal(this:GetParent():GetName().."Name"):SetText("")
23 </OnLoad>
24 <OnEnter>
25 CursorUpdate();
26 </OnEnter>
27 <OnLeave>
28 GameTooltip:Hide();
29 ResetCursor();
30 </OnLeave>
31 <OnUpdate>
32 CursorOnUpdate();
33 </OnUpdate>
34 </Scripts>
35 </Button>
36 </Frames>
37 </Frame>
38  
39  
40  
41  
42 <Button name="tDProfilesTemp" inherits="UIPanelButtonGrayTemplate" virtual="true">
43 <Size> <AbsDimension x="123" y="17"/> </Size>
44 <Scripts>
45 <OnLoad>
46 this:SetFrameLevel(this:GetParent():GetParent():GetFrameLevel()+4);
47 this:SetText(tD_Loc.profile[this:GetID()]);
48 </OnLoad>
49 <OnClick>
50 tradeDispenserPlaySound(this)
51 local f=getglobal(this:GetParent():GetParent():GetName().."DDTitleLbL");
52 local col = tradeDispenserProfileColors[this:GetID()];
53 f:SetText(this:GetText())
54 f:SetTextColor(col.r,col.g,col.b)
55 this:GetParent():Hide()
56 tD_CharDatas.ActualProfile=this:GetID()
57 tradeDispenserUpdate()
58 </OnClick>
59 </Scripts>
60 </Button>
61  
62  
63 <Frame name="tDProfileDDTemp" virtual="true">
64 <Size> <AbsDimension x="105" y="25"/> </Size>
65 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
66 <BackgroundInsets>
67 <AbsInset left="0" right="0" top="0" bottom="0"/>
68 </BackgroundInsets>
69 <TileSize><AbsValue val="2"/></TileSize>
70 <EdgeSize><AbsValue val="0"/></EdgeSize>
71 </Backdrop>
72 <Layers>
73 <Layer level="ARTWORK"> <!-- TITLE -->
74 <FontString name="$parentLbL" inherits="GameFontNormal" text="Show Profile">
75 <Anchors>
76 <Anchor point="TOPLEFT">
77 <Offset><AbsDimension x="0" y="18"/></Offset>
78 </Anchor>
79 </Anchors>
80 </FontString>
81 </Layer>
82 </Layers>
83 <Frames>
84 <Button name="$parent_DDbtn">
85 <Size><AbsDimension x="24" y="24"/></Size>
86 <Anchors>
87 <Anchor point="TOPRIGHT">
88 <Offset><AbsDimension x="0" y="2"/></Offset>
89 </Anchor>
90 </Anchors>
91 <Scripts>
92 <OnClick>
93 PlaySound("MINIMAPCLOSE")
94 local f = getglobal(this:GetParent():GetName().."DDframe");
95 if (f:IsShown()) then f:Hide() else f:Show() end
96 </OnClick>
97 <OnEnter>
98 GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,0);
99 tradeDispenserDrawTooltip(tD_Loc.settings.Hint)
100 </OnEnter>
101 <OnLeave> GameTooltip:Hide(); </OnLeave>
102 </Scripts>
103 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"></NormalTexture>
104 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"></PushedTexture>
105 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"></HighlightTexture>
106 </Button>
107 <Frame name="$parentDDTitle" hidden="false">
108 <Size><AbsDimension x="102" y="22"/></Size>
109 <Anchors>
110 <Anchor point="RIGHT" relativeTo="$parent_DDbtn" relativePoint="RIGHT">
111 <Offset><AbsDimension x="-1" y="0"/></Offset>
112 </Anchor>
113 </Anchors>
114 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
115 <BackgroundInsets>
116 <AbsInset left="2" right="2" top="2" bottom="2" />
117 </BackgroundInsets>
118 <TileSize><AbsValue val="12" /></TileSize>
119 <EdgeSize><AbsValue val="2" /></EdgeSize>
120 </Backdrop>
121 <Layers>
122 <Layer level="ARTWORK"> <!-- Selected value -->
123 <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="DummyProfile">
124 <Anchors>
125 <Anchor point="LEFT">
126 <Offset><AbsDimension x="3" y="1"/></Offset>
127 </Anchor>
128 </Anchors>
129 </FontString>
130 </Layer>
131 </Layers>
132 <Scripts>
133 <OnLoad>
134 this:SetBackdropBorderColor(0, 0, 0, 0);
135 this:SetBackdropColor(0,0,0, 0);
136 </OnLoad>
137 <OnShow>
138 local s = 1
139 if (tD_CharDatas.ActualProfile) then
140 s = tD_CharDatas.ActualProfile
141 end
142 local col = tradeDispenserProfileColors[s];
143 local f = getglobal(this:GetName().."LbL")
144 f:SetTextColor(col.r, col.g, col.b);
145 f:SetText(tD_Loc.profile[s]);
146 </OnShow>
147 </Scripts>
148 </Frame>
149 <Frame name="$parentDDframe" hidden="true" enableMouse="true">
150 <Size><AbsDimension x="150" y="242"/></Size>
151 <Anchors>
152 <Anchor point="TOPRIGHT">
153 <Offset><AbsDimension x="-18" y="0"/></Offset>
154 </Anchor>
155 </Anchors>
156 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
157 <BackgroundInsets>
158 <AbsInset left="11" right="12" top="12" bottom="11"/>
159 </BackgroundInsets>
160 <TileSize>
161 <AbsValue val="32"/>
162 </TileSize>
163 <EdgeSize>
164 <AbsValue val="32"/>
165 </EdgeSize>
166 </Backdrop>
167 <!-- ###################### SUB-FRAMES of DROP-DOWN (clickable) ###################### -->
168 <Frames>
169 <Button name="$parentSub1" inherits="tDProfilesTemp" id="1" text="all" >
170 <Anchors>
171 <Anchor point="TOP">
172 <Offset><AbsDimension x="0" y="-15"/></Offset>
173 </Anchor>
174 </Anchors>
175 </Button>
176 <Button name="$parentSub2" inherits="tDProfilesTemp" id="2" text="warrior" >
177 <Anchors>
178 <Anchor point="TOP" relativeTo="$parentSub1" relativePoint="BOTTOM">
179 <Offset><AbsDimension x="0" y="-5"/></Offset>
180 </Anchor>
181 </Anchors>
182 </Button>
183 <Button name="$parentSub3" inherits="tDProfilesTemp" id="3" text="rogue" >
184 <Anchors>
185 <Anchor point="TOP" relativeTo="$parentSub2" relativePoint="BOTTOM">
186 <Offset><AbsDimension x="0" y="0"/></Offset>
187 </Anchor>
188 </Anchors>
189 </Button>
190 <Button name="$parentSub4" inherits="tDProfilesTemp" id="4" text="hunter" >
191 <Anchors>
192 <Anchor point="TOP" relativeTo="$parentSub3" relativePoint="BOTTOM">
193 <Offset><AbsDimension x="0" y="0"/></Offset>
194 </Anchor>
195 </Anchors>
196 </Button>
197 <Button name="$parentSub5" inherits="tDProfilesTemp" id="5" text="warlock" >
198 <Anchors>
199 <Anchor point="TOP" relativeTo="$parentSub4" relativePoint="BOTTOM">
200 <Offset><AbsDimension x="0" y="0"/></Offset>
201 </Anchor>
202 </Anchors>
203 </Button>
204 <Button name="$parentSub6" inherits="tDProfilesTemp" id="6" text="mage" >
205 <Anchors>
206 <Anchor point="TOP" relativeTo="$parentSub5" relativePoint="BOTTOM">
207 <Offset><AbsDimension x="0" y="0"/></Offset>
208 </Anchor>
209 </Anchors>
210 </Button>
211 <Button name="$parentSub7" inherits="tDProfilesTemp" id="7" text="druid" >
212 <Anchors>
213 <Anchor point="TOP" relativeTo="$parentSub6" relativePoint="BOTTOM">
214 <Offset><AbsDimension x="0" y="0"/></Offset>
215 </Anchor>
216 </Anchors>
217 </Button>
218 <Button name="$parentSub8" inherits="tDProfilesTemp" id="8" text="priest" >
219 <Anchors>
220 <Anchor point="TOP" relativeTo="$parentSub7" relativePoint="BOTTOM">
221 <Offset><AbsDimension x="0" y="0"/></Offset>
222 </Anchor>
223 </Anchors>
224 </Button>
225 <Button name="$parentSub9" inherits="tDProfilesTemp" id="9" text="combo" >
226 <Anchors>
227 <Anchor point="TOP" relativeTo="$parentSub8" relativePoint="BOTTOM">
228 <Offset><AbsDimension x="0" y="0"/></Offset>
229 </Anchor>
230 </Anchors>
231 </Button>
232 <Button name="$parentSub10" inherits="tDProfilesTemp" id="10" text="melee" >
233 <Anchors>
234 <Anchor point="TOP" relativeTo="$parentSub9" relativePoint="BOTTOM">
235 <Offset><AbsDimension x="0" y="-5"/></Offset>
236 </Anchor>
237 </Anchors>
238 </Button>
239 <Button name="$parentSub11" inherits="tDProfilesTemp" id="11" text="mana" >
240 <Anchors>
241 <Anchor point="TOP" relativeTo="$parentSub10" relativePoint="BOTTOM">
242 <Offset><AbsDimension x="0" y="0"/></Offset>
243 </Anchor>
244 </Anchors>
245 </Button>
246 <Button name="$parentSub12" inherits="tDProfilesTemp" id="12" text="healer" >
247 <Anchors>
248 <Anchor point="TOP" relativeTo="$parentSub11" relativePoint="BOTTOM">
249 <Offset><AbsDimension x="0" y="0"/></Offset>
250 </Anchor>
251 </Anchors>
252 </Button>
253 </Frames>
254 <Scripts>
255 <OnLoad>
256 this:SetFrameLevel(this:GetParent():GetFrameLevel()+3);
257 </OnLoad>
258 <OnShow>
259 local i;
260 for i=1,12 do
261 local col = tradeDispenserProfileColors[i];
262 local f=getglobal(this:GetName().."Sub"..i);
263 f:SetTextColor(col.r, col.g, col.b);
264 f:Show();
265 end
266 </OnShow>
267 </Scripts>
268 </Frame>
269 </Frames>
270 <Scripts>
271 <OnLoad>
272 local f=getglobal(this:GetName().."LbL");
273 f:SetText(tD_Loc.profile.title);
274 f:SetTextColor(1,1,1);
275 this:SetBackdropBorderColor(0, 0, 0, 0);
276 this:SetBackdropColor(0, 0, 0, 0);
277 </OnLoad>
278 </Scripts>
279 </Frame>
280  
281  
282  
283 <Button name="tDRacksTemp" inherits="UIPanelButtonGrayTemplate" virtual="true">
284 <Size> <AbsDimension x="123" y="17"/> </Size>
285 <Scripts>
286 <OnLoad>
287 this:SetFrameLevel(this:GetParent():GetParent():GetFrameLevel()+4);
288 this:SetText(tradeDispenserRackColor[this:GetID()].text..tD_Loc.rack..this:GetID());
289 </OnLoad>
290 <OnClick>
291 tradeDispenserPlaySound(this)
292 local f=getglobal(this:GetParent():GetParent():GetName().."DDTitleLbL");
293 f:SetText(tradeDispenserRackColor[this:GetID()].text..this:GetText())
294 this:GetParent():Hide()
295 tD_CharDatas.ActualRack=this:GetID()
296 tradeDispenserVerbose(3,"Rack set to "..tD_CharDatas.ActualRack);
297 tradeDispenserUpdate()
298 </OnClick>
299 </Scripts>
300 </Button>
301  
302  
303 <Frame name="tDRackDDTemp" virtual="true">
304 <Size> <AbsDimension x="105" y="25"/> </Size>
305 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
306 <BackgroundInsets>
307 <AbsInset left="0" right="0" top="0" bottom="0"/>
308 </BackgroundInsets>
309 <TileSize><AbsValue val="2"/></TileSize>
310 <EdgeSize><AbsValue val="0"/></EdgeSize>
311 </Backdrop>
312 <Layers>
313 <Layer level="ARTWORK"> <!-- TITLE -->
314 <FontString name="$parentLbL" inherits="GameFontNormal" text="Show Rack">
315 <Anchors>
316 <Anchor point="TOPLEFT">
317 <Offset><AbsDimension x="0" y="18"/></Offset>
318 </Anchor>
319 </Anchors>
320 </FontString>
321 </Layer>
322 </Layers>
323 <Frames>
324 <Button name="$parent_DDbtn">
325 <Size><AbsDimension x="24" y="24"/></Size>
326 <Anchors>
327 <Anchor point="TOPRIGHT">
328 <Offset><AbsDimension x="0" y="2"/></Offset>
329 </Anchor>
330 </Anchors>
331 <Scripts>
332 <OnClick>
333 PlaySound("MINIMAPCLOSE")
334 local f = getglobal(this:GetParent():GetName().."DDframe");
335 if (f:IsShown()) then f:Hide() else f:Show() end
336 </OnClick>
337 </Scripts>
338 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"></NormalTexture>
339 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"></PushedTexture>
340 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"></HighlightTexture>
341 </Button>
342 <Frame name="$parentDDTitle" hidden="false">
343 <Size><AbsDimension x="102" y="22"/></Size>
344 <Anchors>
345 <Anchor point="RIGHT" relativeTo="$parent_DDbtn" relativePoint="RIGHT">
346 <Offset><AbsDimension x="-1" y="0"/></Offset>
347 </Anchor>
348 </Anchors>
349 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
350 <BackgroundInsets>
351 <AbsInset left="2" right="2" top="2" bottom="2" />
352 </BackgroundInsets>
353 <TileSize><AbsValue val="12" /></TileSize>
354 <EdgeSize><AbsValue val="2" /></EdgeSize>
355 </Backdrop>
356 <Layers>
357 <Layer level="ARTWORK"> <!-- Selected value -->
358 <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="DummyProfile">
359 <Anchors>
360 <Anchor point="LEFT">
361 <Offset><AbsDimension x="3" y="1"/></Offset>
362 </Anchor>
363 </Anchors>
364 </FontString>
365 </Layer>
366 </Layers>
367 <Scripts>
368 <OnLoad>
369 this:SetBackdropBorderColor(0, 0, 0, 0);
370 this:SetBackdropColor(0,0,0, 0);
371 </OnLoad>
372 <OnShow>
373 local s = 1
374 if (tD_CharDatas.ActualRack) then s = tD_CharDatas.ActualRack end
375 getglobal(this:GetName().."LbL"):SetText(tradeDispenserRackColor[s].text..tD_Loc.rack..s);
376 </OnShow>
377 </Scripts>
378 </Frame>
379 <Frame name="$parentDDframe" hidden="true" enableMouse="true">
380 <Size><AbsDimension x="150" y="82"/></Size>
381 <Anchors>
382 <Anchor point="TOPRIGHT">
383 <Offset><AbsDimension x="-18" y="0"/></Offset>
384 </Anchor>
385 </Anchors>
386 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
387 <BackgroundInsets>
388 <AbsInset left="11" right="12" top="12" bottom="11"/>
389 </BackgroundInsets>
390 <TileSize>
391 <AbsValue val="32"/>
392 </TileSize>
393 <EdgeSize>
394 <AbsValue val="32"/>
395 </EdgeSize>
396 </Backdrop>
397 <!-- ###################### SUB-FRAMES of DROP-DOWN (clickable) ###################### -->
398 <Frames>
399 <Button name="$parentSub1" inherits="tDRacksTemp" id="1" text="all" >
400 <Anchors>
401 <Anchor point="TOP">
402 <Offset><AbsDimension x="0" y="-15"/></Offset>
403 </Anchor>
404 </Anchors>
405 </Button>
406 <Button name="$parentSub2" inherits="tDRacksTemp" id="2" text="warrior" >
407 <Anchors>
408 <Anchor point="TOP" relativeTo="$parentSub1" relativePoint="BOTTOM">
409 <Offset><AbsDimension x="0" y="0"/></Offset>
410 </Anchor>
411 </Anchors>
412 </Button>
413 <Button name="$parentSub3" inherits="tDRacksTemp" id="3" text="rogue" >
414 <Anchors>
415 <Anchor point="TOP" relativeTo="$parentSub2" relativePoint="BOTTOM">
416 <Offset><AbsDimension x="0" y="0"/></Offset>
417 </Anchor>
418 </Anchors>
419 </Button>
420 </Frames>
421 <Scripts>
422 <OnLoad>
423 this:SetFrameLevel(this:GetParent():GetFrameLevel()+3);
424 </OnLoad>
425 <OnShow>
426 local i;
427 for i=1,3 do
428 local f=getglobal(this:GetName().."Sub"..i);
429 f:SetTextColor(1, 0.8, 0);
430 f:Show();
431 end
432 </OnShow>
433 </Scripts>
434 </Frame>
435 </Frames>
436 <Scripts>
437 <OnLoad>
438 local f=getglobal(this:GetName().."LbL");
439 f:SetText(tD_Loc.RackTitle);
440 f:SetTextColor(1,1,1);
441 this:SetBackdropBorderColor(0, 0, 0, 0);
442 this:SetBackdropColor(0, 0, 0, 0);
443 </OnLoad>
444 </Scripts>
445 </Frame>
446  
447  
448  
449  
450  
451 <Frame name="tradeDispenser" parent="UIParent" hidden="true" enableMouse="true" movable="true">
452 <Size> <AbsDimension x="300" y="384"/> </Size>
453 <Anchors>
454 <Anchor point="CENTER">
455 <Offset><AbsDimension x="0" y="0"/> </Offset>
456 </Anchor>
457 </Anchors>
458 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
459 <BackgroundInsets>
460 <AbsInset left="11" right="12" top="12" bottom="11"/>
461 </BackgroundInsets>
462 <TileSize> <AbsValue val="32"/> </TileSize>
463 <EdgeSize> <AbsValue val="32"/> </EdgeSize>
464 </Backdrop>
465 <Layers>
466 <Layer level="BACKGROUND">
467 <Texture name="$parentBkg1" file="Interface\AddOns\tradeDispenser\artwork\MainFrame_Background">
468 <Size><AbsDimension x="286" y="125"/></Size>
469 <Anchors>
470 <Anchor point="TOPLEFT">
471 <Offset><AbsDimension x="6" y="-6"/></Offset>
472 </Anchor>
473 </Anchors>
474 </Texture>
475 <Texture name="$parentBkg2" file="Interface\AddOns\tradeDispenser\artwork\MainFrame_Background">
476 <Size><AbsDimension x="286" y="125"/></Size>
477 <Anchors>
478 <Anchor point="TOPLEFT">
479 <Offset><AbsDimension x="6" y="-131"/></Offset>
480 </Anchor>
481 </Anchors>
482 </Texture>
483 <Texture name="$parentBkg3" file="Interface\AddOns\tradeDispenser\artwork\MainFrame_Background">
484 <Size><AbsDimension x="286" y="120"/></Size>
485 <Anchors>
486 <Anchor point="TOPLEFT">
487 <Offset><AbsDimension x="6" y="-256"/></Offset>
488 </Anchor>
489 </Anchors>
490 </Texture>
491 </Layer>
492 <Layer level="ARTWORK">
493 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
494 <Size><AbsDimension x="380" y="64"/></Size>
495 <Anchors>
496 <Anchor point="TOP">
497 <Offset> <AbsDimension x="0" y="12"/> </Offset>
498 </Anchor>
499 </Anchors>
500 </Texture>
501 <FontString name="$parentLbL" inherits="GameFontNormal" text="tradeDispenser title">
502 <Anchors>
503 <Anchor point="TOP" relativeTo="$parentHeader">
504 <Offset> <AbsDimension x="0" y="-14"/> </Offset>
505 </Anchor>
506 </Anchors>
507 </FontString>
508 <FontString name="$parentMoneyLbL" inherits="GameFontNormalSmall" text="Insert Money and Items">
509 <Anchors>
510 <Anchor point="TOPLEFT">
511 <Offset><AbsDimension x="126" y="-31"/></Offset>
512 </Anchor>
513 </Anchors>
514 </FontString>
515 </Layer>
516 </Layers>
517 <Frames>
518 <Frame name="$parentMoneyFrame" inherits="MoneyInputFrameTemplate">
519 <Anchors>
520 <Anchor point="TOPRIGHT">
521 <Offset>
522 <AbsDimension x="8" y="-48"/>
523 </Offset>
524 </Anchor>
525 </Anchors>
526 <Scripts>
527 <OnLoad>
528 MoneyInputFrame_SetMode(this, "compact");
529 MoneyInputFrame_SetOnvalueChangedFunc(this, tradeDispenserUpdateMoney);
530 </OnLoad>
531 </Scripts>
532 </Frame>
533 <CheckButton name="$parentGuildcharge" inherits="UICheckButtonTemplate">
534 <Size><AbsDimension x="24" y="24"/></Size>
535 <Anchors>
536 <Anchor point="TOPLEFT" relativeTo="$parentMoneyFrame" relativePoint="BOTTOMLEFT">
537 <Offset><AbsDimension x="-5" y="-2"/></Offset>
538 </Anchor>
539 </Anchors>
540 <Layers>
541 <Layer level="ARTWORK">
542 <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="Free for Guild/Raid">
543 <Anchors>
544 <Anchor point="LEFT">
545 <Offset><AbsDimension x="25" y="0"/></Offset>
546 </Anchor>
547 </Anchors>
548 </FontString>
549 </Layer>
550 </Layers>
551 <Scripts>
552 <OnShow>
553 getglobal(this:GetName().."LbL"):SetText(tD_Loc.control.FreeCheckBox);
554 this:SetChecked(tD_CharDatas.Free4Guild);
555 </OnShow>
556 <OnClick>
557 tradeDispenserPlaySound(this);
558 tD_CharDatas.Free4Guild = not tD_CharDatas.Free4Guild;
559 </OnClick>
560 <OnEnter>
561 GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",0,10);
562 tradeDispenserDrawTooltip(tD_Loc.control.Free4Guild)
563 </OnEnter>
564 <OnLeave> GameTooltip:Hide(); </OnLeave>
565 </Scripts>
566 </CheckButton>
567  
568 <Frame name="$parentItem1" inherits="tDItemTemp" id="1">
569 <Anchors>
570 <Anchor point="TOPLEFT" relativeTo="$parentMoneyFrame" relativePoint="BOTTOMLEFT">
571 <Offset>
572 <AbsDimension x="0" y="-36"/>
573 </Offset>
574 </Anchor>
575 </Anchors>
576 </Frame>
577 <Frame name="$parentItem2" inherits="tDItemTemp" id="2">
578 <Anchors>
579 <Anchor point="TOPLEFT" relativeTo="$parentItem1" relativePoint="BOTTOMLEFT">
580 <Offset>
581 <AbsDimension x="0" y="-7"/>
582 </Offset>
583 </Anchor>
584 </Anchors>
585 </Frame>
586 <Frame name="$parentItem3" inherits="tDItemTemp" id="3">
587 <Anchors>
588 <Anchor point="TOPLEFT" relativeTo="$parentItem2" relativePoint="BOTTOMLEFT">
589 <Offset>
590 <AbsDimension x="0" y="-7"/>
591 </Offset>
592 </Anchor>
593 </Anchors>
594 </Frame>
595 <Frame name="$parentItem4" inherits="tDItemTemp" id="4">
596 <Anchors>
597 <Anchor point="TOPLEFT" relativeTo="$parentItem3" relativePoint="BOTTOMLEFT">
598 <Offset>
599 <AbsDimension x="0" y="-7"/>
600 </Offset>
601 </Anchor>
602 </Anchors>
603 </Frame>
604 <Frame name="$parentItem5" inherits="tDItemTemp" id="5">
605 <Anchors>
606 <Anchor point="TOPLEFT" relativeTo="$parentItem4" relativePoint="BOTTOMLEFT">
607 <Offset>
608 <AbsDimension x="0" y="-7"/>
609 </Offset>
610 </Anchor>
611 </Anchors>
612 </Frame>
613 <Frame name="$parentItem6" inherits="tDItemTemp" id="6">
614 <Anchors>
615 <Anchor point="TOPLEFT" relativeTo="$parentItem5" relativePoint="BOTTOMLEFT">
616 <Offset>
617 <AbsDimension x="0" y="-7"/>
618 </Offset>
619 </Anchor>
620 </Anchors>
621 </Frame>
622 <Button name="$parentState" inherits="UIPanelButtonTemplate" text="Enabled">
623 <Size> <AbsDimension x="104" y="38"/> </Size>
624 <Anchors>
625 <Anchor point="TOPLEFT" relativeTo="$parent">
626 <Offset>
627 <AbsDimension x="18" y="-48"/>
628 </Offset>
629 </Anchor>
630 </Anchors>
631 <Scripts>
632 <OnClick>
633 tradeDispenserPlaySound(this)
634 tD_Temp.isEnabled = not tD_Temp.isEnabled
635 tD_Temp.broadcastSlice = 2
636 tradeDispenser_Eventhandler()
637 tradeDispenserUpdate()
638 tradeDispenser_OSD_buttons()
639 </OnClick>
640 </Scripts>
641 </Button>
642  
643 <Button name="$parentHide" inherits="UIPanelButtonTemplate" text="Hide">
644 <Size>
645 <AbsDimension x="104" y="26"/>
646 </Size>
647 <Anchors>
648 <Anchor point="BOTTOMLEFT" relativeTo="$parent">
649 <Offset><AbsDimension x="18" y="22"/></Offset>
650 </Anchor>
651 </Anchors>
652 <Scripts>
653 <OnLoad>
654 this:SetText(tD_Loc.buttons.hide);
655 </OnLoad>
656 <OnClick>
657 tradeDispenserPlaySound(this)
658 tradeDispenserMessages:Hide();
659 tD_Temp.isVisible = false;
660 tradeDispenserUpdate();
661 tradeDispenserOSD_OnUpdate()
662 </OnClick>
663 </Scripts>
664 </Button>
665  
666 <Button name="$parentWhisperBtn" inherits="UIPanelButtonTemplate" text="Whispers">
667 <Size>
668 <AbsDimension x="104" y="26"/>
669 </Size>
670 <Anchors>
671 <Anchor point="BOTTOMLEFT" relativeTo="$parentHide" relativePoint="TOPLEFT">
672 <Offset>
673 <AbsDimension x="0" y="19"/>
674 </Offset>
675 </Anchor>
676 </Anchors>
677 <Scripts>
678 <OnLoad>this:SetText(tD_Loc.buttons.whispers)</OnLoad>
679 <OnClick>
680 tradeDispenserPlaySound(this)
681 if (tradeDispenserMessages:IsShown()) then
682 tradeDispenserMessages:Hide();
683 else
684 tradeDispenserMessages:Show();
685 tD_Temp.isVisible = false;
686 tradeDispenserUpdate();
687 end
688 </OnClick>
689 </Scripts>
690 </Button>
691 <Button name="$parentSettingsBtn" inherits="UIPanelButtonTemplate" text="Settings">
692 <Size>
693 <AbsDimension x="104" y="26"/>
694 </Size>
695 <Anchors>
696 <Anchor point="BOTTOMLEFT" relativeTo="$parentWhisperBtn" relativePoint="TOPLEFT">
697 <Offset>
698 <AbsDimension x="0" y="4"/>
699 </Offset>
700 </Anchor>
701 </Anchors>
702 <Scripts>
703 <OnLoad>this:SetText(tD_Loc.buttons.settings)</OnLoad>
704 <OnClick>
705 tradeDispenserPlaySound(this)
706 if (tradeDispenserSettings:IsShown()) then
707 tradeDispenserSettings:Hide();
708 tradeDispenserSettingsBtn:UnlockHighlight();
709 else
710 tradeDispenserSettings:Show();
711 tradeDispenserSettingsBtn:LockHighlight();
712 end
713 tradeDispenser_Banlist_Update()
714 </OnClick>
715 </Scripts>
716 </Button>
717 <Button name="$parentTradeControlBtn" inherits="UIPanelButtonTemplate" text="TradeControl">
718 <Size>
719 <AbsDimension x="104" y="26"/>
720 </Size>
721 <Anchors>
722 <Anchor point="BOTTOMLEFT" relativeTo="$parentSettingsBtn" relativePoint="TOPLEFT">
723 <Offset>
724 <AbsDimension x="0" y="4"/>
725 </Offset>
726 </Anchor>
727 </Anchors>
728 <Scripts>
729 <OnLoad>this:SetText(tD_Loc.buttons.tradecontrol)</OnLoad>
730 <OnClick>
731 tradeDispenserPlaySound(this)
732 if (tradeDispenserTradeControl:IsShown()) then
733 tradeDispenserTradeControl:Hide();
734 tradeDispenserTradeControlBtn:UnlockHighlight();
735 else
736 tradeDispenserTradeControl:Show();
737 tradeDispenserTradeControlBtn:LockHighlight();
738 end
739 tradeDispenser_EditBoxUpdate(); <!-- function found in tD_Settings.lua -->
740 </OnClick>
741 </Scripts>
742 </Button>
743  
744  
745 <Frame name="$parentProfile" inherits="tDProfileDDTemp" hidden="false">
746 <Anchors>
747 <Anchor point="TOPLEFT">
748 <Offset><AbsDimension x="20" y="-182"/></Offset>
749 </Anchor>
750 </Anchors>
751 <Layers>
752 <Layer level="BACKGROUND">
753 <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
754 <Size><AbsDimension x="12" y="29"/> </Size>
755 <Anchors>
756 <Anchor point="TOPLEFT">
757 <Offset><AbsDimension x="-4" y="2"/></Offset>
758 </Anchor>
759 </Anchors>
760 <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
761 </Texture>
762 <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
763 <Size><AbsDimension x="85" y="29"/></Size>
764 <Anchors>
765 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
766 </Anchors>
767 <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
768 </Texture>
769 <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
770 <Size><AbsDimension x="12" y="29"/> </Size>
771 <Anchors>
772 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
773 </Anchors>
774 <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
775 </Texture>
776 </Layer>
777 </Layers>
778 </Frame>
779 <Frame name="$parentRack" inherits="tDRackDDTemp" hidden="false">
780 <Anchors>
781 <Anchor point="TOPLEFT">
782 <Offset><AbsDimension x="20" y="-122"/></Offset>
783 </Anchor>
784 </Anchors>
785 <Layers>
786 <Layer level="BACKGROUND">
787 <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
788 <Size><AbsDimension x="12" y="29"/> </Size>
789 <Anchors>
790 <Anchor point="TOPLEFT">
791 <Offset><AbsDimension x="-4" y="2"/></Offset>
792 </Anchor>
793 </Anchors>
794 <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
795 </Texture>
796 <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
797 <Size><AbsDimension x="85" y="29"/></Size>
798 <Anchors>
799 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
800 </Anchors>
801 <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
802 </Texture>
803 <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
804 <Size><AbsDimension x="12" y="29"/> </Size>
805 <Anchors>
806 <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
807 </Anchors>
808 <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
809 </Texture>
810 </Layer>
811 </Layers>
812 </Frame>
813  
814 </Frames>
815 <Scripts>
816 <OnLoad>
817 getglobal(this:GetName().."LbL"):SetText(tD_Loc.configtitle)
818 getglobal(this:GetName().."MoneyLbL"):SetText(tD_Loc.configItems)
819 tradeDispenserOnLoad()
820 this:SetBackdropBorderColor(1, 1, 1,1)
821 this:SetBackdropColor(0, 0, 0.2, 0)
822 </OnLoad>
823 <OnEvent>
824 tradeDispenserOnEvent(event)
825 </OnEvent>
826 <OnShow>PlaySound("igAbilityOpen"); tradeDispenserSetFaction();</OnShow>
827 <OnMouseDown> this:StartMoving(); </OnMouseDown>
828 <OnMouseUp> this:StopMovingOrSizing(); </OnMouseUp>
829 <OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
830 </Scripts>
831 </Frame>
832  
833 </Ui>