vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui> |
2 | <Script file="tradeDispenser_Settings.lua"/> |
||
3 | |||
4 | |||
5 | <!-- #################################### MAIN DROPDOWN-CLASS: Label, titlefield, DropDownButton #################### --> |
||
6 | |||
7 | <Button name="tDChannelBtnTemp" inherits="UIPanelButtonGrayTemplate" virtual="true"> |
||
8 | <Size> <AbsDimension x="123" y="17"/> </Size> |
||
9 | <Scripts> |
||
10 | <OnLoad> |
||
11 | this:SetFrameLevel(this:GetParent():GetParent():GetFrameLevel()+4); |
||
12 | </OnLoad> |
||
13 | <OnClick> |
||
14 | tD_CharDatas.ChannelID=this:GetID(); |
||
15 | tradeDispenser_ChannelUpdate(); |
||
16 | this:GetParent():Hide(); |
||
17 | tradeDispenserPlaySound(this) |
||
18 | </OnClick> |
||
19 | </Scripts> |
||
20 | </Button> |
||
21 | |||
22 | |||
23 | <Frame name="tDChannelDDTemp" virtual="true"> |
||
24 | <Size> <AbsDimension x="155" y="25"/> </Size> |
||
25 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
26 | <BackgroundInsets> |
||
27 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
28 | </BackgroundInsets> |
||
29 | <TileSize><AbsValue val="2"/></TileSize> |
||
30 | <EdgeSize><AbsValue val="0"/></EdgeSize> |
||
31 | </Backdrop> |
||
32 | <Layers> |
||
33 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
34 | <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="Channel:"> |
||
35 | <Anchors> |
||
36 | <Anchor point="LEFT"> |
||
37 | <Offset><AbsDimension x="0" y="3"/></Offset> |
||
38 | </Anchor> |
||
39 | </Anchors> |
||
40 | </FontString> |
||
41 | </Layer> |
||
42 | </Layers> |
||
43 | <Frames> |
||
44 | <Button name="$parent_DDbtn"> |
||
45 | <Size><AbsDimension x="24" y="24"/></Size> |
||
46 | <Anchors> |
||
47 | <Anchor point="TOPRIGHT"> |
||
48 | <Offset><AbsDimension x="0" y="2"/></Offset> |
||
49 | </Anchor> |
||
50 | </Anchors> |
||
51 | <Scripts> |
||
52 | <OnClick> |
||
53 | PlaySound("MINIMAPCLOSE") |
||
54 | local f=getglobal(this:GetParent():GetName().."DDframe"); |
||
55 | if (f:IsShown()) then f:Hide(); else f:Show(); end |
||
56 | </OnClick> |
||
57 | </Scripts> |
||
58 | <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"></NormalTexture> |
||
59 | <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"></PushedTexture> |
||
60 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"></HighlightTexture> |
||
61 | </Button> |
||
62 | <Frame name="$parentDDTitle" hidden="false"> |
||
63 | <Size><AbsDimension x="102" y="22"/></Size> |
||
64 | <Anchors> |
||
65 | <Anchor point="RIGHT" relativeTo="$parent_DDbtn" relativePoint="RIGHT"> |
||
66 | <Offset><AbsDimension x="-1" y="0"/></Offset> |
||
67 | </Anchor> |
||
68 | </Anchors> |
||
69 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
70 | <BackgroundInsets> |
||
71 | <AbsInset left="2" right="2" top="2" bottom="2" /> |
||
72 | </BackgroundInsets> |
||
73 | <TileSize><AbsValue val="12" /></TileSize> |
||
74 | <EdgeSize><AbsValue val="2" /></EdgeSize> |
||
75 | </Backdrop> |
||
76 | <Layers> |
||
77 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
78 | <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="channel-Name:"> |
||
79 | <Anchors> |
||
80 | <Anchor point="LEFT"> |
||
81 | <Offset><AbsDimension x="-1" y="0"/></Offset> |
||
82 | </Anchor> |
||
83 | </Anchors> |
||
84 | </FontString> |
||
85 | </Layer> |
||
86 | </Layers> |
||
87 | <Scripts> |
||
88 | <OnLoad> |
||
89 | this:SetBackdropBorderColor(0, 0, 0, 0); |
||
90 | this:SetBackdropColor(0,0,0, 0); |
||
91 | </OnLoad> |
||
92 | <OnShow> |
||
93 | if (tD_CharDatas.ChannelID) then tradeDispenser_ChannelUpdate() end; |
||
94 | </OnShow> |
||
95 | </Scripts> |
||
96 | </Frame> |
||
97 | <Frame name="$parentDDframe" hidden="true" enableMouse="true"> |
||
98 | <Size><AbsDimension x="145" y="182"/></Size> |
||
99 | <Anchors> |
||
100 | <Anchor point="TOPRIGHT"> |
||
101 | <Offset><AbsDimension x="-18" y="0"/></Offset> |
||
102 | </Anchor> |
||
103 | </Anchors> |
||
104 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
105 | <BackgroundInsets> |
||
106 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
107 | </BackgroundInsets> |
||
108 | <TileSize> |
||
109 | <AbsValue val="32"/> |
||
110 | </TileSize> |
||
111 | <EdgeSize> |
||
112 | <AbsValue val="32"/> |
||
113 | </EdgeSize> |
||
114 | </Backdrop> |
||
115 | <!-- ###################### SUB-FRAMES of DROP-DOWN (clickable) ###################### --> |
||
116 | <Frames> |
||
117 | <Button name="$parentSub1" inherits="tDChannelBtnTemp" id="1" text="SAY" > |
||
118 | <Anchors> |
||
119 | <Anchor point="TOP"> |
||
120 | <Offset><AbsDimension x="0" y="-15"/></Offset> |
||
121 | </Anchor> |
||
122 | </Anchors> |
||
123 | </Button> |
||
124 | <Button name="$parentSub2" inherits="tDChannelBtnTemp" id="2" text="YELL" > |
||
125 | <Anchors> |
||
126 | <Anchor point="TOP" relativeTo="$parentSub1" relativePoint="BOTTOM"> |
||
127 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
128 | </Anchor> |
||
129 | </Anchors> |
||
130 | </Button> |
||
131 | <Button name="$parentSub3" inherits="tDChannelBtnTemp" id="3" text="RAID/PARTY" > |
||
132 | <Anchors> |
||
133 | <Anchor point="TOP" relativeTo="$parentSub2" relativePoint="BOTTOM"> |
||
134 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
135 | </Anchor> |
||
136 | </Anchors> |
||
137 | </Button> |
||
138 | <Button name="$parentSub4" inherits="tDChannelBtnTemp" id="4" text="PARTY ONLY" > |
||
139 | <Anchors> |
||
140 | <Anchor point="TOP" relativeTo="$parentSub3" relativePoint="BOTTOM"> |
||
141 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
142 | </Anchor> |
||
143 | </Anchors> |
||
144 | </Button> |
||
145 | <Button name="$parentSub5" inherits="tDChannelBtnTemp" id="5" text="GUILD" > |
||
146 | <Anchors> |
||
147 | <Anchor point="TOP" relativeTo="$parentSub4" relativePoint="BOTTOM"> |
||
148 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
149 | </Anchor> |
||
150 | </Anchors> |
||
151 | </Button> |
||
152 | </Frames> |
||
153 | <Scripts> |
||
154 | <OnLoad> |
||
155 | this:SetFrameLevel(this:GetParent():GetFrameLevel()+3); |
||
156 | </OnLoad> |
||
157 | <OnShow> |
||
158 | this:SetHeight( 12*6+31+10 ); |
||
159 | local i=0; |
||
160 | for i=1,5 do |
||
161 | local zielobj = getglobal(this:GetName().."Sub"..(i)); |
||
162 | local col = tradeDispenserChannelColors[i]; |
||
163 | zielobj:SetTextColor(col.r,col.g,col.b); |
||
164 | zielobj:SetText(col.text); |
||
165 | zielobj:Show(); |
||
166 | end |
||
167 | </OnShow> |
||
168 | </Scripts> |
||
169 | </Frame> |
||
170 | </Frames> |
||
171 | <Scripts> |
||
172 | <OnLoad> |
||
173 | <!--getglobal(this:GetName().."LbL"):SetText("Grp"..this:GetID());--> |
||
174 | getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.channel..":"); |
||
175 | this:SetBackdropBorderColor(0, 0, 0, 0); |
||
176 | this:SetBackdropColor(0, 0, 0, 0); |
||
177 | </OnLoad> |
||
178 | </Scripts> |
||
179 | </Frame> |
||
180 | |||
181 | |||
182 | |||
183 | <EditBox name="tDEditBoxTemp" inherits="UIEditBoxTemplate" letters="256" historyLines="0" autoFocus="false" virtual="true"> |
||
184 | <Size><AbsDimension x="350" y="16"/></Size> |
||
185 | <Layers> |
||
186 | <Layer level="BACKGROUND"> |
||
187 | <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
188 | <Size><AbsDimension x="12" y="29"/> </Size> |
||
189 | <Anchors> |
||
190 | <Anchor point="TOPLEFT"> |
||
191 | <Offset><AbsDimension x="-11" y="2"/></Offset> |
||
192 | </Anchor> |
||
193 | </Anchors> |
||
194 | <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/> |
||
195 | </Texture> |
||
196 | <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
197 | <Size><AbsDimension x="406" y="29"/></Size> |
||
198 | <Anchors> |
||
199 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
200 | </Anchors> |
||
201 | <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/> |
||
202 | </Texture> |
||
203 | <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
204 | <Size><AbsDimension x="12" y="29"/> </Size> |
||
205 | <Anchors> |
||
206 | <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/> |
||
207 | </Anchors> |
||
208 | <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/> |
||
209 | </Texture> |
||
210 | </Layer> |
||
211 | <Layer level="ARTWORK"> |
||
212 | <FontString name="$parentLbL" inherits="GameFontNormalSmall" text="BroadcastText 1:"> |
||
213 | <Anchors> |
||
214 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="LEFT"> |
||
215 | <Offset><AbsDimension x="-90" y="4"/></Offset> |
||
216 | </Anchor> |
||
217 | </Anchors> |
||
218 | </FontString> |
||
219 | </Layer> |
||
220 | </Layers> |
||
221 | <FontString inherits="GameFontHighlight"/> |
||
222 | <Scripts> |
||
223 | <OnLoad> |
||
224 | this:ClearFocus(); |
||
225 | getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.broadcasttext.." "..this:GetID()..":"); |
||
226 | this:SetText("DummyText"); |
||
227 | this:SetTextColor(1,1,1); |
||
228 | </OnLoad> |
||
229 | <OnEditFocusLost> |
||
230 | tD_CharDatas.OnBroadcastText=nil; |
||
231 | </OnEditFocusLost> |
||
232 | <OnHide> |
||
233 | tD_CharDatas.OnBroadcastText=nil; |
||
234 | </OnHide> |
||
235 | <OnEscapePressed> |
||
236 | this:ClearFocus() |
||
237 | tD_CharDatas.OnBroadcastText=nil; |
||
238 | </OnEscapePressed> |
||
239 | <OnEnterPressed> |
||
240 | this:ClearFocus(); |
||
241 | tD_CharDatas.OnBroadcastText=nil; |
||
242 | </OnEnterPressed> |
||
243 | <OnTextChanged> |
||
244 | tD_CharDatas.RndText[this:GetID()]=this:GetText(); |
||
245 | </OnTextChanged> |
||
246 | <OnEditFocusGained> |
||
247 | tD_CharDatas.OnBroadcastText=this; |
||
248 | tradeDispenserVerbose(1,"Focused Random-Text "..this:GetID()); |
||
249 | </OnEditFocusGained> |
||
250 | </Scripts> |
||
251 | </EditBox> |
||
252 | |||
253 | |||
254 | |||
255 | <!-- #################################### SETTINGs-FRAME ############################ --> |
||
256 | |||
257 | |||
258 | |||
259 | <Frame name="tradeDispenserSettings" hidden="true" parent="tradeDispenser" enableMouse="true"> |
||
260 | <Size> <AbsDimension x="182" y="346"/> </Size> |
||
261 | <Anchors> |
||
262 | <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
||
263 | <Offset><AbsDimension x="0" y="2"/></Offset> |
||
264 | </Anchor> |
||
265 | </Anchors> |
||
266 | <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
267 | <EdgeSize> <AbsValue val="16"/> </EdgeSize> |
||
268 | <TileSize> <AbsValue val="0"/> </TileSize> |
||
269 | <BackgroundInsets> |
||
270 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
271 | </BackgroundInsets> |
||
272 | </Backdrop> |
||
273 | <Layers> |
||
274 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
275 | <FontString name="$parentLbL" inherits="GameFontNormal" text="Broadcast-Options:"> |
||
276 | <Anchors> |
||
277 | <Anchor point="TOPLEFT"> |
||
278 | <Offset><AbsDimension x="8" y="-135"/></Offset> |
||
279 | </Anchor> |
||
280 | </Anchors> |
||
281 | </FontString> |
||
282 | </Layer> |
||
283 | </Layers> |
||
284 | <Frames> |
||
285 | <Frame name="$parentTitleBkg" hidden="false"> |
||
286 | <Size> <AbsDimension x="182" y="28"/> </Size> |
||
287 | <Anchors> |
||
288 | <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP"> |
||
289 | <Offset><AbsDimension x="0" y="2"/></Offset> |
||
290 | </Anchor> |
||
291 | </Anchors> |
||
292 | <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
293 | <EdgeSize> <AbsValue val="16"/> </EdgeSize> |
||
294 | <TileSize> <AbsValue val="0"/> </TileSize> |
||
295 | <BackgroundInsets> |
||
296 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
297 | </BackgroundInsets> |
||
298 | </Backdrop> |
||
299 | <Layers> |
||
300 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
301 | <FontString name="$parentLbL" inherits="GameFontNormal" text="SETTINGS:"> |
||
302 | <Anchors> |
||
303 | <Anchor point="Center"> |
||
304 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
305 | </Anchor> |
||
306 | </Anchors> |
||
307 | </FontString> |
||
308 | </Layer> |
||
309 | </Layers> |
||
310 | <Scripts> |
||
311 | <OnLoad> |
||
312 | this:SetWidth(this:GetParent():GetWidth()); |
||
313 | this:SetBackdropBorderColor(1, 1, 1,1); |
||
314 | this:SetBackdropColor(0.2, 0, 0, 1); |
||
315 | local f = getglobal(this:GetName().."LbL"); |
||
316 | f:SetText(tD_Loc.settings.title); |
||
317 | f:SetTextColor(1,1,1); |
||
318 | </OnLoad> |
||
319 | </Scripts> |
||
320 | </Frame> |
||
321 | |||
322 | <CheckButton name="$parentOSDCheck" inherits="UICheckButtonTemplate"> |
||
323 | <Size><AbsDimension x="24" y="24"/></Size> |
||
324 | <Anchors> |
||
325 | <Anchor point="TOPLEFT"> |
||
326 | <Offset><AbsDimension x="5" y="-4"/></Offset> |
||
327 | </Anchor> |
||
328 | </Anchors> |
||
329 | <Layers> |
||
330 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
331 | <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="OSD:"> |
||
332 | <Anchors> |
||
333 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
334 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
335 | </Anchor> |
||
336 | </Anchors> |
||
337 | </FontString> |
||
338 | </Layer> |
||
339 | </Layers> |
||
340 | <Scripts> |
||
341 | <OnLoad> |
||
342 | local f=getglobal(this:GetName().."LbLTitle"); |
||
343 | f:SetTextColor(1,1,1); |
||
344 | f:SetText(tD_Loc.OSD.OSDtitle); |
||
345 | </OnLoad> |
||
346 | <OnClick> |
||
347 | tradeDispenserPlaySound(this) |
||
348 | tD_CharDatas.OSD.isEnabled = not tD_CharDatas.OSD.isEnabled; |
||
349 | tradeDispenserSettings_OnUpdate(); |
||
350 | tradeDispenserOSD_OnUpdate(); |
||
351 | </OnClick> |
||
352 | <OnEnter> |
||
353 | GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50); |
||
354 | tradeDispenserDrawTooltip(tD_Loc.settings.osdtooltip) |
||
355 | </OnEnter> |
||
356 | <OnLeave> GameTooltip:Hide(); </OnLeave> |
||
357 | </Scripts> |
||
358 | </CheckButton> |
||
359 | |||
360 | <CheckButton name="$parentOSDLock" inherits="UICheckButtonTemplate"> |
||
361 | <Size><AbsDimension x="24" y="24"/></Size> |
||
362 | <Anchors> |
||
363 | <Anchor point="TOPRIGHT"> |
||
364 | <Offset><AbsDimension x="-5" y="-4"/></Offset> |
||
365 | </Anchor> |
||
366 | </Anchors> |
||
367 | <Layers> |
||
368 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
369 | <FontString name="$parentLbLTitle" inherits="GameFontNormalSmall" text="Locked"> |
||
370 | <Anchors> |
||
371 | <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"> |
||
372 | <Offset><AbsDimension x="-2" y="0"/></Offset> |
||
373 | </Anchor> |
||
374 | </Anchors> |
||
375 | </FontString> |
||
376 | </Layer> |
||
377 | </Layers> |
||
378 | <Scripts> |
||
379 | <OnLoad> |
||
380 | getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.lock); |
||
381 | </OnLoad> |
||
382 | <OnClick> |
||
383 | tradeDispenserPlaySound(this) |
||
384 | tD_CharDatas.OSD.locked = not tD_CharDatas.OSD.locked; |
||
385 | tradeDispenserSettings_OnUpdate(); |
||
386 | tradeDispenserOSD_OnUpdate(); |
||
387 | </OnClick> |
||
388 | </Scripts> |
||
389 | </CheckButton> |
||
390 | |||
391 | <Slider name="$parentOSDscale" inherits="OptionsSliderTemplate"> |
||
392 | <Size><AbsDimension x="110" y="16"/></Size> |
||
393 | <Anchors> |
||
394 | <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT"> |
||
395 | <Offset><AbsDimension x="-10" y="-32"/></Offset> |
||
396 | </Anchor> |
||
397 | </Anchors> |
||
398 | <Layers> |
||
399 | <Layer level="ARTWORK"> |
||
400 | <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="Scale:"> |
||
401 | <Anchors> |
||
402 | <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"> |
||
403 | <Offset><AbsDimension x="-8" y="1"/></Offset> |
||
404 | </Anchor> |
||
405 | </Anchors> |
||
406 | </FontString> |
||
407 | </Layer> |
||
408 | </Layers> |
||
409 | <Scripts> |
||
410 | <OnLoad> |
||
411 | local n=this:GetName(); |
||
412 | getglobal(n.."Text"):SetText(""); |
||
413 | getglobal(n.."High"):SetText(""); |
||
414 | getglobal(n.."Low"):SetText(""); |
||
415 | getglobal(n.."Lbl"):SetText(tD_Loc.settings.scale); |
||
416 | this:SetMinMaxValues(0.4, 2); |
||
417 | this:SetValueStep(0.025); |
||
418 | this:SetValue(1); |
||
419 | </OnLoad> |
||
420 | <OnValueChanged> |
||
421 | if (tD_CharDatas.OSD) then tD_CharDatas.OSD.scale = floor(this:GetValue()*100)/100 end |
||
422 | tradeDispenserSettings_OnUpdate(); |
||
423 | tradeDispenserOSD_OnUpdate(); |
||
424 | </OnValueChanged> |
||
425 | </Scripts> |
||
426 | </Slider> |
||
427 | |||
428 | <Button name="$parentSwatch" hidden="false"> |
||
429 | <Size> |
||
430 | <AbsDimension x="24" y="24"/> |
||
431 | </Size> |
||
432 | <Anchors> |
||
433 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentOSDscale"> |
||
434 | <Offset> |
||
435 | <AbsDimension x="-1" y="-5"/> |
||
436 | </Offset> |
||
437 | </Anchor> |
||
438 | </Anchors> |
||
439 | <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
440 | <EdgeSize> <AbsValue val="16"/> </EdgeSize> |
||
441 | <TileSize> <AbsValue val="0"/> </TileSize> |
||
442 | <BackgroundInsets> |
||
443 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
444 | </BackgroundInsets> |
||
445 | </Backdrop> |
||
446 | <Layers> |
||
447 | <Layer level="BACKGROUND"> |
||
448 | <Texture name="$parentBG"> |
||
449 | <Size> |
||
450 | <AbsDimension x="14" y="14"/> |
||
451 | </Size> |
||
452 | <Color r="1.0" g="1.0" b="1.0"/> |
||
453 | <Anchors> |
||
454 | <Anchor point="CENTER"/> |
||
455 | </Anchors> |
||
456 | </Texture> |
||
457 | </Layer> |
||
458 | <Layer level="ARTWORK"> |
||
459 | <FontString name="$parentLbl" inherits="GameFontNormal" text="BK-Color"> |
||
460 | <Anchors> |
||
461 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
462 | <Offset><AbsDimension x="3" y="0"/></Offset> |
||
463 | </Anchor> |
||
464 | </Anchors> |
||
465 | </FontString> |
||
466 | </Layer> |
||
467 | </Layers> |
||
468 | <Scripts> |
||
469 | <OnLoad> |
||
470 | getglobal(this:GetName().."Lbl"):SetText(tD_Loc.settings.bkcolor); |
||
471 | </OnLoad> |
||
472 | <OnShow> |
||
473 | local col = tD_CharDatas.OSD; |
||
474 | getglobal(this:GetName() .. "NormalTexture"):SetVertexColor(col.r, col.g, col.b); |
||
475 | </OnShow> |
||
476 | <OnClick> |
||
477 | tradeDispenserPlaySound(this) |
||
478 | tradeDispenserSettings_OnColorChange(this:GetParent()); |
||
479 | </OnClick> |
||
480 | </Scripts> |
||
481 | <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
482 | </Button> |
||
483 | |||
484 | <CheckButton name="$parentOSDborder" inherits="UICheckButtonTemplate"> |
||
485 | <Size><AbsDimension x="24" y="24"/></Size> |
||
486 | <Anchors> |
||
487 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentSwatch"> |
||
488 | <Offset><AbsDimension x="1" y="0"/></Offset> |
||
489 | </Anchor> |
||
490 | </Anchors> |
||
491 | <Layers> |
||
492 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
493 | <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="Border"> |
||
494 | <Anchors> |
||
495 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
496 | <Offset><AbsDimension x="4" y="0"/></Offset> |
||
497 | </Anchor> |
||
498 | </Anchors> |
||
499 | </FontString> |
||
500 | </Layer> |
||
501 | </Layers> |
||
502 | <Scripts> |
||
503 | <OnShow> |
||
504 | this:SetChecked(tD_CharDatas.OSD.border); |
||
505 | getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.border); |
||
506 | </OnShow> |
||
507 | <OnClick> |
||
508 | tradeDispenserPlaySound(this) |
||
509 | tD_CharDatas.OSD.border = not tD_CharDatas.OSD.border; |
||
510 | tradeDispenserOSD_OnUpdate(); |
||
511 | </OnClick> |
||
512 | </Scripts> |
||
513 | </CheckButton> |
||
514 | |||
515 | <CheckButton name="$parentOSDhoriz" inherits="UICheckButtonTemplate"> |
||
516 | <Size><AbsDimension x="24" y="24"/></Size> |
||
517 | <Anchors> |
||
518 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentOSDborder"> |
||
519 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
520 | </Anchor> |
||
521 | </Anchors> |
||
522 | <Layers> |
||
523 | <Layer level="ARTWORK"> <!-- TITLE --> |
||
524 | <FontString name="$parentLbLTitle" inherits="GameFontNormal" text="Horizontal"> |
||
525 | <Anchors> |
||
526 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
527 | <Offset><AbsDimension x="4" y="0"/></Offset> |
||
528 | </Anchor> |
||
529 | </Anchors> |
||
530 | </FontString> |
||
531 | </Layer> |
||
532 | </Layers> |
||
533 | <Scripts> |
||
534 | <OnShow> |
||
535 | this:SetChecked(tD_CharDatas.OSD.horiz); |
||
536 | getglobal(this:GetName().."LbLTitle"):SetText(tD_Loc.settings.horiz); |
||
537 | </OnShow> |
||
538 | <OnClick> |
||
539 | tradeDispenserPlaySound(this) |
||
540 | tD_CharDatas.OSD.horiz = not tD_CharDatas.OSD.horiz; |
||
541 | tradeDispenserOSD_OnUpdate(); |
||
542 | </OnClick> |
||
543 | </Scripts> |
||
544 | </CheckButton> |
||
545 | |||
546 | <Frame name="$parentChannel" inherits="tDChannelDDTemp" hidden="false"> |
||
547 | <Anchors> |
||
548 | <Anchor point="TOPLEFT" relativeTo="$parentLbL" relativePoint="BOTTOMLEFT"> |
||
549 | <Offset><AbsDimension x="10" y="-8"/></Offset> |
||
550 | </Anchor> |
||
551 | </Anchors> |
||
552 | <Layers> |
||
553 | <Layer level="BACKGROUND"> |
||
554 | <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
555 | <Size><AbsDimension x="12" y="29"/> </Size> |
||
556 | <Anchors> |
||
557 | <Anchor point="TOPLEFT"> |
||
558 | <Offset><AbsDimension x="-11" y="2"/></Offset> |
||
559 | </Anchor> |
||
560 | </Anchors> |
||
561 | <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/> |
||
562 | </Texture> |
||
563 | <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
564 | <Size><AbsDimension x="143" y="29"/></Size> |
||
565 | <Anchors> |
||
566 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/> |
||
567 | </Anchors> |
||
568 | <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/> |
||
569 | </Texture> |
||
570 | <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder"> |
||
571 | <Size><AbsDimension x="12" y="29"/> </Size> |
||
572 | <Anchors> |
||
573 | <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/> |
||
574 | </Anchors> |
||
575 | <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/> |
||
576 | </Texture> |
||
577 | </Layer> |
||
578 | </Layers> |
||
579 | </Frame> |
||
580 | |||
581 | <CheckButton name="$parentBroadcastCheck" inherits="UICheckButtonTemplate"> |
||
582 | <Size><AbsDimension x="24" y="24"/></Size> |
||
583 | <Anchors> |
||
584 | <Anchor point="TOPLEFT" relativeTo="$parentOSDCheck" relativePoint="BOTTOMLEFT"> |
||
585 | <Offset><AbsDimension x="0" y="-160"/></Offset> |
||
586 | </Anchor> |
||
587 | </Anchors> |
||
588 | <Layers> |
||
589 | <Layer level="ARTWORK"> |
||
590 | <FontString name="$parentLbL" inherits="GameFontNormal" text="Auto-Broadcast:"> |
||
591 | <Anchors> |
||
592 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
593 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
594 | </Anchor> |
||
595 | </Anchors> |
||
596 | </FontString> |
||
597 | </Layer> |
||
598 | </Layers> |
||
599 | <Scripts> |
||
600 | <OnLoad> |
||
601 | getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.autobroadcast); |
||
602 | </OnLoad> |
||
603 | <OnClick> |
||
604 | tradeDispenserPlaySound(this) |
||
605 | local f=getglobal(this:GetParent():GetName().."BroadcastTimer"); |
||
606 | if ( this:GetChecked() ) then f:Show() else f:Hide() end |
||
607 | tD_CharDatas.AutoBroadcast= not tD_CharDatas.AutoBroadcast; |
||
608 | tradeDispenserSettings_OnUpdate(); |
||
609 | tradeDispenserUpdate(); |
||
610 | tradeDispenser_OSD_buttons() |
||
611 | </OnClick> |
||
612 | <OnEnter> |
||
613 | GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50); |
||
614 | tradeDispenserDrawTooltip(tD_Loc.settings.broadcasttooltip) |
||
615 | </OnEnter> |
||
616 | <OnLeave> GameTooltip:Hide(); </OnLeave> |
||
617 | </Scripts> |
||
618 | </CheckButton> |
||
619 | <Slider name="$parentBroadcastTimer" inherits="OptionsSliderTemplate"> |
||
620 | <Size><AbsDimension x="110" y="16"/></Size> |
||
621 | <Anchors> |
||
622 | <Anchor point="TOPLEFT" relativeTo="$parentBroadcastCheck" relativePoint="BOTTOMLEFT"> |
||
623 | <Offset><AbsDimension x="56" y="-1"/></Offset> |
||
624 | </Anchor> |
||
625 | </Anchors> |
||
626 | <Layers> |
||
627 | <Layer level="ARTWORK"> |
||
628 | <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="30 min"> |
||
629 | <Anchors> |
||
630 | <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"> |
||
631 | <Offset><AbsDimension x="-8" y="1"/></Offset> |
||
632 | </Anchor> |
||
633 | </Anchors> |
||
634 | </FontString> |
||
635 | </Layer> |
||
636 | </Layers> |
||
637 | <Scripts> |
||
638 | <OnLoad> |
||
639 | local n=this:GetName(); |
||
640 | getglobal(n.."Text"):SetText(""); |
||
641 | getglobal(n.."High"):SetText(tradeDispenser_MaxBroadcastLength.." min"); |
||
642 | getglobal(n.."Low"):SetText("1 min"); |
||
643 | getglobal(n.."High"):SetTextColor(1,0.9,0); |
||
644 | getglobal(n.."Low"):SetTextColor(1,0.9,0); |
||
645 | getglobal(n.."Lbl"):SetTextColor(1,1,1); |
||
646 | this:SetMinMaxValues(1, tradeDispenser_MaxBroadcastLength); |
||
647 | this:SetValueStep(1); |
||
648 | this:SetValue(math.floor(tradeDispenser_MaxBroadcastLength/2)); |
||
649 | </OnLoad> |
||
650 | <OnShow> |
||
651 | tradeDispenserSettings_OnUpdate(); |
||
652 | </OnShow> |
||
653 | <OnValueChanged> |
||
654 | tD_CharDatas.broadcastSlice = math.floor(this:GetValue())*60; |
||
655 | tD_Temp.broadcastSlice=10; |
||
656 | tradeDispenserSettings_OnUpdate(); |
||
657 | tradeDispenserUpdate(); |
||
658 | </OnValueChanged> |
||
659 | </Scripts> |
||
660 | </Slider> |
||
661 | |||
662 | <CheckButton name="$parentTimelimitCheck" inherits="UICheckButtonTemplate"> |
||
663 | <Size><AbsDimension x="24" y="24"/></Size> |
||
664 | <Anchors> |
||
665 | <Anchor point="TOPLEFT" relativeTo="$parentBroadcastCheck" relativePoint="BOTTOMLEFT"> |
||
666 | <Offset><AbsDimension x="0" y="-30"/></Offset> |
||
667 | </Anchor> |
||
668 | </Anchors> |
||
669 | <Layers> |
||
670 | <Layer level="ARTWORK"> |
||
671 | <FontString name="$parentLbL" inherits="GameFontNormal" text="TimeLimit:"> |
||
672 | <Anchors> |
||
673 | <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"> |
||
674 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
675 | </Anchor> |
||
676 | </Anchors> |
||
677 | </FontString> |
||
678 | </Layer> |
||
679 | </Layers> |
||
680 | <Scripts> |
||
681 | <OnLoad> |
||
682 | getglobal(this:GetName().."LbL"):SetText(tD_Loc.settings.Timelimit); |
||
683 | </OnLoad> |
||
684 | <OnClick> |
||
685 | tradeDispenserPlaySound(this) |
||
686 | local f=getglobal(this:GetParent():GetName().."TimelimitSlider"); |
||
687 | if ( this:GetChecked() ) then f:Show() else f:Hide() end |
||
688 | tD_CharDatas.TimelimitCheck = not tD_CharDatas.TimelimitCheck; |
||
689 | tradeDispenserSettings_OnUpdate(); |
||
690 | <!--tradeDispenserUpdate(); |
||
691 | tradeDispenser_OSD_buttons()--> |
||
692 | </OnClick> |
||
693 | <OnEnter> |
||
694 | GameTooltip:SetOwner(this:GetParent(),"ANCHOR_TOPRIGHT",200,50); |
||
695 | tradeDispenserDrawTooltip(tD_Loc.settings.TimerTooltip) |
||
696 | </OnEnter> |
||
697 | <OnLeave> GameTooltip:Hide(); </OnLeave> |
||
698 | </Scripts> |
||
699 | </CheckButton> |
||
700 | <Slider name="$parentTimelimitSlider" inherits="OptionsSliderTemplate"> |
||
701 | <Size><AbsDimension x="110" y="16"/></Size> |
||
702 | <Anchors> |
||
703 | <Anchor point="TOPLEFT" relativeTo="$parentTimelimitCheck" relativePoint="BOTTOMLEFT"> |
||
704 | <Offset><AbsDimension x="56" y="-1"/></Offset> |
||
705 | </Anchor> |
||
706 | </Anchors> |
||
707 | <Layers> |
||
708 | <Layer level="ARTWORK"> |
||
709 | <FontString name="$parentLbl" inherits="GameFontNormalSmall" text="30 sec"> |
||
710 | <Anchors> |
||
711 | <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT"> |
||
712 | <Offset><AbsDimension x="-8" y="1"/></Offset> |
||
713 | </Anchor> |
||
714 | </Anchors> |
||
715 | </FontString> |
||
716 | </Layer> |
||
717 | </Layers> |
||
718 | <Scripts> |
||
719 | <OnLoad> |
||
720 | local n=this:GetName(); |
||
721 | getglobal(n.."Text"):SetText(""); |
||
722 | getglobal(n.."High"):SetText("60 sec"); |
||
723 | getglobal(n.."Low"):SetText("10 sec"); |
||
724 | getglobal(n.."High"):SetTextColor(1,0.9,0); |
||
725 | getglobal(n.."Low"):SetTextColor(1,0.9,0); |
||
726 | getglobal(n.."Lbl"):SetTextColor(1,1,1); |
||
727 | this:SetMinMaxValues(10, 60); |
||
728 | this:SetValueStep(5); |
||
729 | this:SetValue(30); |
||
730 | </OnLoad> |
||
731 | <OnShow> |
||
732 | tradeDispenserSettings_OnUpdate(); |
||
733 | </OnShow> |
||
734 | <OnValueChanged> |
||
735 | tD_CharDatas.Timelimit = math.floor(this:GetValue()); |
||
736 | tradeDispenserSettings_OnUpdate(); |
||
737 | </OnValueChanged> |
||
738 | </Scripts> |
||
739 | </Slider> |
||
740 | |||
741 | |||
742 | <Slider name="$parentRandom" inherits="OptionsSliderTemplate"> |
||
743 | <Size><AbsDimension x="156" y="16"/></Size> |
||
744 | <Anchors> |
||
745 | <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM"> |
||
746 | <Offset><AbsDimension x="0" y="10"/></Offset> |
||
747 | </Anchor> |
||
748 | </Anchors> |
||
749 | <Scripts> |
||
750 | <OnLoad> |
||
751 | local f = getglobal(this:GetName().."Text"); |
||
752 | f:SetText("dummy"); |
||
753 | f:SetTextColor(1,1,1); |
||
754 | local font, size, flags = f:GetFont(); |
||
755 | f:SetFont(font,12); |
||
756 | getglobal(this:GetName().."High"):SetText(""); |
||
757 | getglobal(this:GetName().."Low"):SetText(""); |
||
758 | this:SetMinMaxValues(1, 8); |
||
759 | this:SetValueStep(1); |
||
760 | this:SetValue(5); |
||
761 | </OnLoad> |
||
762 | <OnValueChanged> |
||
763 | getglobal(this:GetName().."Text"):SetText(tD_Loc.settings.randomtext.." "..this:GetValue()); |
||
764 | tD_CharDatas.Random=this:GetValue(); |
||
765 | tradeDispenser_EditBoxUpdate(); |
||
766 | if (tradeDispenserBanlist) then tradeDispenser_Banlist_Update() end |
||
767 | </OnValueChanged> |
||
768 | </Scripts> |
||
769 | </Slider> |
||
770 | |||
771 | |||
772 | <Frame name="$parentText" hidden="false"> |
||
773 | <Size> <AbsDimension x="482" y="30"/> </Size> |
||
774 | <Anchors> |
||
775 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
||
776 | <Offset><AbsDimension x="0" y="-2"/></Offset> |
||
777 | </Anchor> |
||
778 | </Anchors> |
||
779 | <Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
780 | <EdgeSize> <AbsValue val="16"/> </EdgeSize> |
||
781 | <TileSize> <AbsValue val="0"/> </TileSize> |
||
782 | <BackgroundInsets> |
||
783 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
784 | </BackgroundInsets> |
||
785 | </Backdrop> |
||
786 | <Frames> |
||
787 | <EditBox name="$parentBroadcastText1" id="1" inherits="tDEditBoxTemp"> |
||
788 | <Anchors> |
||
789 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
790 | <Offset><AbsDimension x="110" y="-5"/></Offset> |
||
791 | </Anchor> |
||
792 | </Anchors> |
||
793 | </EditBox> |
||
794 | <EditBox name="$parentBroadcastText2" id="2" inherits="tDEditBoxTemp"> |
||
795 | <Anchors> |
||
796 | <Anchor point="TOP" relativeTo="$parentBroadcastText1" relativePoint="BOTTOM"> |
||
797 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
798 | </Anchor> |
||
799 | </Anchors> |
||
800 | </EditBox> |
||
801 | <EditBox name="$parentBroadcastText3" id="3" inherits="tDEditBoxTemp"> |
||
802 | <Anchors> |
||
803 | <Anchor point="TOP" relativeTo="$parentBroadcastText2" relativePoint="BOTTOM"> |
||
804 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
805 | </Anchor> |
||
806 | </Anchors> |
||
807 | </EditBox> |
||
808 | <EditBox name="$parentBroadcastText4" id="4" inherits="tDEditBoxTemp"> |
||
809 | <Anchors> |
||
810 | <Anchor point="TOP" relativeTo="$parentBroadcastText3" relativePoint="BOTTOM"> |
||
811 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
812 | </Anchor> |
||
813 | </Anchors> |
||
814 | </EditBox> |
||
815 | <EditBox name="$parentBroadcastText5" id="5" inherits="tDEditBoxTemp"> |
||
816 | <Anchors> |
||
817 | <Anchor point="TOP" relativeTo="$parentBroadcastText4" relativePoint="BOTTOM"> |
||
818 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
819 | </Anchor> |
||
820 | </Anchors> |
||
821 | </EditBox> |
||
822 | <EditBox name="$parentBroadcastText6" id="6" inherits="tDEditBoxTemp"> |
||
823 | <Anchors> |
||
824 | <Anchor point="TOP" relativeTo="$parentBroadcastText5" relativePoint="BOTTOM"> |
||
825 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
826 | </Anchor> |
||
827 | </Anchors> |
||
828 | </EditBox> |
||
829 | <EditBox name="$parentBroadcastText7" id="7" inherits="tDEditBoxTemp"> |
||
830 | <Anchors> |
||
831 | <Anchor point="TOP" relativeTo="$parentBroadcastText6" relativePoint="BOTTOM"> |
||
832 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
833 | </Anchor> |
||
834 | </Anchors> |
||
835 | </EditBox> |
||
836 | <EditBox name="$parentBroadcastText8" id="8" inherits="tDEditBoxTemp"> |
||
837 | <Anchors> |
||
838 | <Anchor point="TOP" relativeTo="$parentBroadcastText7" relativePoint="BOTTOM"> |
||
839 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
840 | </Anchor> |
||
841 | </Anchors> |
||
842 | </EditBox> |
||
843 | </Frames> |
||
844 | <Scripts> |
||
845 | <OnLoad> |
||
846 | this:SetWidth(this:GetParent():GetWidth()); |
||
847 | this:SetBackdropBorderColor(1, 1, 1,1); |
||
848 | this:SetBackdropColor(0.2, 0, 0, 1); |
||
849 | </OnLoad> |
||
850 | </Scripts> |
||
851 | </Frame> |
||
852 | </Frames> |
||
853 | <Scripts> |
||
854 | <OnLoad> |
||
855 | local f=getglobal(this:GetName().."LbL"); |
||
856 | f:SetText(tD_Loc.settings.broadcastopt); |
||
857 | f:SetTextColor(1,1,1); |
||
858 | this:SetBackdropBorderColor(1, 1, 1,1); |
||
859 | this:SetBackdropColor(0, 0, 0.2, 1); |
||
860 | </OnLoad> |
||
861 | <OnShow> |
||
862 | tradeDispenser_EditBoxUpdate(); |
||
863 | </OnShow> |
||
864 | <OnMouseDown> this:GetParent():StartMoving(); </OnMouseDown> |
||
865 | <OnMouseUp> this:GetParent():StopMovingOrSizing(); </OnMouseUp> |
||
866 | <OnDragStop> this:GetParent():StopMovingOrSizing(); </OnDragStop> |
||
867 | </Scripts> |
||
868 | </Frame> |
||
869 | </Ui> |