vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
||
3 | ..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <!-- |
||
6 | <FontString name="SW_Font" font="Fonts\FRIZQT__.TTF" virtual="true"> |
||
7 | <FontHeight> |
||
8 | <AbsValue val="10" /> |
||
9 | </FontHeight> |
||
10 | <Color r="1.0" g="1.0" b="1.0" /> |
||
11 | </FontString> |
||
12 | <FontString name="SW_FontBar" font="Fonts\FRIZQT__.TTF" virtual="true"> |
||
13 | <FontHeight> |
||
14 | <AbsValue val="9" /> |
||
15 | </FontHeight> |
||
16 | <Color r="1.0" g="1.0" b="1.0" /> |
||
17 | </FontString> |
||
18 | --> |
||
19 | |||
20 | <FontString name="SW_Font" inherits="GameFontNormalSmall" virtual="true"> |
||
21 | <FontHeight> |
||
22 | <AbsValue val="10" /> |
||
23 | </FontHeight> |
||
24 | <Color r="1.0" g="1.0" b="1.0" /> |
||
25 | </FontString> |
||
26 | <FontString name="SW_FontBar" inherits="GameFontNormalSmall" virtual="true"> |
||
27 | <FontHeight> |
||
28 | <AbsValue val="9" /> |
||
29 | </FontHeight> |
||
30 | <Color r="1.0" g="1.0" b="1.0" /> |
||
31 | </FontString> |
||
32 | |||
33 | <!-- A simple frame just defined with a border --> |
||
34 | <Frame name="SW_Frame" hidden="true" virtual="true"> |
||
35 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
36 | tile="true"> |
||
37 | <TileSize> |
||
38 | <AbsValue val="32" /> |
||
39 | </TileSize> |
||
40 | <EdgeSize> |
||
41 | <AbsValue val="16" /> |
||
42 | </EdgeSize> |
||
43 | <BackgroundInsets> |
||
44 | <AbsInset left="5" right="5" top="5" bottom="5" /> |
||
45 | </BackgroundInsets> |
||
46 | </Backdrop> |
||
47 | </Frame> |
||
48 | <Frame name="SW_Frame_Tab" inherits="SW_Frame" virtual="true" hidden="true"> |
||
49 | <Scripts> |
||
50 | <OnMouseUp>SW_TabClick(this);</OnMouseUp> |
||
51 | </Scripts> |
||
52 | <Size> |
||
53 | <AbsDimension x="100" y="32" /> |
||
54 | </Size> |
||
55 | <Anchors> |
||
56 | <Anchor point="BOTTOMLEFT"> |
||
57 | <Offset> |
||
58 | <AbsDimension x="4" y="-25" /> |
||
59 | </Offset> |
||
60 | </Anchor> |
||
61 | </Anchors> |
||
62 | <Layers> |
||
63 | <Layer level="ARTWORK"> |
||
64 | <FontString name="$parent_Text" inherits="GameFontNormal" text="SW"> |
||
65 | <Anchors> |
||
66 | <Anchor point="CENTER" /> |
||
67 | </Anchors> |
||
68 | </FontString> |
||
69 | </Layer> |
||
70 | </Layers> |
||
71 | </Frame> |
||
72 | <Frame name="SW_ColorSwatch" virtual="true" hidden="false"> |
||
73 | <Scripts> |
||
74 | <OnLoad>SW_InitColorSwatch(this);</OnLoad> |
||
75 | </Scripts> |
||
76 | <Size> |
||
77 | <AbsDimension x="80" y="20" /> |
||
78 | </Size> |
||
79 | <Layers> |
||
80 | <Layer level="ARTWORK"> |
||
81 | <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="tmp text"> |
||
82 | <Anchors> |
||
83 | <Anchor point="TOPLEFT"> |
||
84 | <Offset> |
||
85 | <AbsDimension x="22" y="-4" /> |
||
86 | </Offset> |
||
87 | </Anchor> |
||
88 | </Anchors> |
||
89 | </FontString> |
||
90 | </Layer> |
||
91 | </Layers> |
||
92 | <Frames> |
||
93 | <Button name="$parent_Button" hidden="false"> |
||
94 | <Size> |
||
95 | <AbsDimension x="20" y="20" /> |
||
96 | </Size> |
||
97 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" |
||
98 | tile="true"> |
||
99 | <TileSize> |
||
100 | <AbsValue val="16" /> |
||
101 | </TileSize> |
||
102 | <EdgeSize> |
||
103 | <AbsValue val="16" /> |
||
104 | </EdgeSize> |
||
105 | <BackgroundInsets> |
||
106 | <AbsInset left="10" right="10" top="10" bottom="10" /> |
||
107 | </BackgroundInsets> |
||
108 | </Backdrop> |
||
109 | <Scripts> |
||
110 | <OnEnter> |
||
111 | this:SetBackdropBorderColor(1,0,0,1); |
||
112 | local strName = this:GetParent():GetName(); |
||
113 | if SW_GS_Tooltips[strName] ~= nil then |
||
114 | |||
115 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
116 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
117 | end |
||
118 | </OnEnter> |
||
119 | <OnLeave> |
||
120 | this:SetBackdropBorderColor(1,1,1,1); |
||
121 | GameTooltip:Hide(); |
||
122 | </OnLeave> |
||
123 | <OnClick> |
||
124 | local oP = this:GetParent(); |
||
125 | |||
126 | SW_DoColorPicker(oP.TargetColor, oP.What, oP:GetName(), oP.CallOnUpdate); |
||
127 | </OnClick> |
||
128 | </Scripts> |
||
129 | <Anchors> |
||
130 | <Anchor point="TOPLEFT"> |
||
131 | <Offset> |
||
132 | <AbsDimension x="0" y="0" /> |
||
133 | </Offset> |
||
134 | </Anchor> |
||
135 | </Anchors> |
||
136 | <Layers> |
||
137 | <Layer level="BACKGROUND"> |
||
138 | <Texture name="$parent_Color" file="Interface\AddOns\SW_Stats\images\swatch" alphaMode="ADD"> |
||
139 | <Anchors> |
||
140 | <Anchor point="TOPLEFT"> |
||
141 | <Offset> |
||
142 | <AbsDimension x="3" y="-3" /> |
||
143 | </Offset> |
||
144 | </Anchor> |
||
145 | <Anchor point="BOTTOMRIGHT"> |
||
146 | <Offset> |
||
147 | <AbsDimension x="-3" y="3" /> |
||
148 | </Offset> |
||
149 | </Anchor> |
||
150 | </Anchors> |
||
151 | </Texture> |
||
152 | </Layer> |
||
153 | </Layers> |
||
154 | </Button> |
||
155 | </Frames> |
||
156 | </Frame> |
||
157 | <Frame name="SW_Frame_EditTxt" virtual="true" hidden="false"> |
||
158 | <Scripts> |
||
159 | <OnLoad> |
||
160 | SW_InitEditBox(this); |
||
161 | </OnLoad> |
||
162 | </Scripts> |
||
163 | <Layers> |
||
164 | <Layer level="ARTWORK"> |
||
165 | <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="tmp text"> |
||
166 | <Anchors> |
||
167 | <Anchor point="TOPLEFT"> |
||
168 | <Offset> |
||
169 | <AbsDimension x="90" y="-5" /> |
||
170 | </Offset> |
||
171 | </Anchor> |
||
172 | </Anchors> |
||
173 | </FontString> |
||
174 | </Layer> |
||
175 | </Layers> |
||
176 | <Frames> |
||
177 | <Button name="$parent_Button" inherits="GameMenuButtonTemplate" text="Change"> |
||
178 | <Size> |
||
179 | <AbsDimension x="80" y="20" /> |
||
180 | </Size> |
||
181 | <Anchors> |
||
182 | <Anchor point="TOPLEFT" /> |
||
183 | </Anchors> |
||
184 | <Scripts> |
||
185 | <OnEnter> |
||
186 | local strName = this:GetParent():GetName(); |
||
187 | if SW_GS_Tooltips[strName] ~= nil then |
||
188 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
189 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
190 | end |
||
191 | </OnEnter> |
||
192 | <OnLeave> |
||
193 | GameTooltip:Hide(); |
||
194 | </OnLeave> |
||
195 | <OnClick> |
||
196 | if this:GetParent().maxLetters ~= nil then |
||
197 | StaticPopupDialogs["SW_ChangeTxt"]["maxLetters"] = this:GetParent().maxLetters; |
||
198 | else |
||
199 | StaticPopupDialogs["SW_ChangeTxt"]["maxLetters"] = 30; |
||
200 | end |
||
201 | StaticPopupDialogs["SW_ChangeTxt"]["SWUpdateFunc"] = this:GetParent().SWUpdateFunc; |
||
202 | StaticPopupDialogs["SW_ChangeTxt"]["SWUpdateInfo"] = this:GetParent().SWUpdateInfo; |
||
203 | StaticPopupDialogs["SW_ChangeTxt"]["SWCallingFrame"] = this:GetParent(); |
||
204 | StaticPopupDialogs["SW_ChangeTxt"]["text"] = this:GetParent().PopupText; |
||
205 | StaticPopup_Show ("SW_ChangeTxt"); |
||
206 | </OnClick> |
||
207 | </Scripts> |
||
208 | </Button> |
||
209 | </Frames> |
||
210 | </Frame> |
||
211 | <CheckButton name="SW_OptChk_TT" inherits="UICheckButtonTemplate" virtual="true" hidden="false"> |
||
212 | <Scripts> |
||
213 | <OnEnter> |
||
214 | local strName = this:GetName(); |
||
215 | if SW_GS_Tooltips[strName] ~= nil then |
||
216 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
217 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
218 | end |
||
219 | </OnEnter> |
||
220 | <OnLeave> |
||
221 | GameTooltip:Hide(); |
||
222 | </OnLeave> |
||
223 | </Scripts> |
||
224 | </CheckButton> |
||
225 | <Frame name="SW_OptSlider" inherits="OptionsSliderTemplate" virtual="true" hidden="false"> |
||
226 | <Scripts> |
||
227 | <OnEnter> |
||
228 | local strName = this:GetName(); |
||
229 | if SW_GS_Tooltips[strName] ~= nil then |
||
230 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
231 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
232 | end |
||
233 | </OnEnter> |
||
234 | <OnLeave> |
||
235 | GameTooltip:Hide(); |
||
236 | </OnLeave> |
||
237 | <OnShow> |
||
238 | local barSettings = SW_GetBarSettings(this:GetParent().caller); |
||
239 | this:SetValue(barSettings[this.linkedSetting]); |
||
240 | getglobal(this:GetName().."Text"):SetText(this.preTxt..this:GetValue()); |
||
241 | </OnShow> |
||
242 | <OnValueChanged> |
||
243 | local oP = this:GetParent(); |
||
244 | local barSettings = SW_GetBarSettings(oP.caller); |
||
245 | getglobal(this:GetName().."Text"):SetText(this.preTxt..this:GetValue()); |
||
246 | barSettings[this.linkedSetting] = this:GetValue(); |
||
247 | SW_BarsLayout(oP.caller); |
||
248 | </OnValueChanged> |
||
249 | </Scripts> |
||
250 | </Frame> |
||
251 | <Frame name="SW_Frame_Title" inherits="SW_Frame" virtual="true" hidden="false"> |
||
252 | <Scripts> |
||
253 | <OnMouseUp> |
||
254 | if ( this:GetParent().isMoving ) then |
||
255 | this:GetParent():StopMovingOrSizing(); |
||
256 | this:GetParent().isMoving = false; |
||
257 | end |
||
258 | </OnMouseUp> |
||
259 | <OnMouseDown> |
||
260 | if ( ( ( not this:GetParent().isLocked ) or ( this:GetParent().isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then |
||
261 | this:GetParent():StartMoving(); |
||
262 | this:GetParent().isMoving = true; |
||
263 | end |
||
264 | </OnMouseDown> |
||
265 | <OnHide> |
||
266 | if ( this.isMoving ) then |
||
267 | this:GetParent():StopMovingOrSizing(); |
||
268 | this:GetParent().isMoving = false; |
||
269 | end |
||
270 | </OnHide> |
||
271 | </Scripts> |
||
272 | <Size> |
||
273 | <AbsDimension x="150" y="32" /> |
||
274 | </Size> |
||
275 | <Anchors> |
||
276 | <Anchor point="CENTER" relativePoint="TOP"> |
||
277 | <Offset> |
||
278 | <AbsDimension x="0" y="0" /> |
||
279 | </Offset> |
||
280 | </Anchor> |
||
281 | </Anchors> |
||
282 | <Layers> |
||
283 | <Layer level="ARTWORK"> |
||
284 | <FontString name="$parent_Text" inherits="GameFontNormal" text="SW"> |
||
285 | <Anchors> |
||
286 | <Anchor point="CENTER" /> |
||
287 | </Anchors> |
||
288 | </FontString> |
||
289 | </Layer> |
||
290 | <Layer level="BACKGROUND"> |
||
291 | <Texture> |
||
292 | <Color r="0" g="0" b="0" a="1" /> |
||
293 | <Anchors> |
||
294 | <Anchor point="TOPLEFT"> |
||
295 | <Offset> |
||
296 | <AbsDimension x="4" y="-4" /> |
||
297 | </Offset> |
||
298 | </Anchor> |
||
299 | <Anchor point="BOTTOMRIGHT"> |
||
300 | <Offset> |
||
301 | <AbsDimension x="-4" y="4" /> |
||
302 | </Offset> |
||
303 | </Anchor> |
||
304 | </Anchors> |
||
305 | </Texture> |
||
306 | </Layer> |
||
307 | </Layers> |
||
308 | <Frames> |
||
309 | <Frame name="$parent_CloseX" inherits="SW_RoundButton" hidden="false"> |
||
310 | <Anchors> |
||
311 | <Anchor point="TOPRIGHT"> |
||
312 | <Offset> |
||
313 | <AbsDimension x="-5" y="-5" /> |
||
314 | </Offset> |
||
315 | </Anchor> |
||
316 | </Anchors> |
||
317 | <Scripts> |
||
318 | <OnMouseUp>HideUIPanel(this:GetParent():GetParent());</OnMouseUp> |
||
319 | <OnLoad>SW_RoundButtonRegister(this, {1,0,0,1}, "X"); |
||
320 | this:SetIcons("Interface\\AddOns\\SW_Stats\\images\\bIconSX","Interface\\AddOns\\SW_Stats\\images\\bIconSXH"); |
||
321 | table.insert(SW_Registered_BF_TitleButtons, this:GetName()); |
||
322 | </OnLoad> |
||
323 | </Scripts> |
||
324 | </Frame> |
||
325 | </Frames> |
||
326 | </Frame> |
||
327 | <Frame name="SW_Frame_Resize" virtual="true"> |
||
328 | <Scripts> |
||
329 | <OnMouseUp> |
||
330 | if ( this:GetParent().isResizing ) then |
||
331 | this:GetParent():StopMovingOrSizing(); |
||
332 | this:GetParent().isResizing = false; |
||
333 | SW_SomethingResizing = false; |
||
334 | end |
||
335 | </OnMouseUp> |
||
336 | <OnMouseDown> |
||
337 | if ( ( ( not this:GetParent().isLocked ) or ( this:GetParent().isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then |
||
338 | this:GetParent():StartSizing("BOTTOMRIGHT"); |
||
339 | this:GetParent().isResizing = true; |
||
340 | SW_SomethingResizing = true; |
||
341 | end |
||
342 | </OnMouseDown> |
||
343 | <OnHide> |
||
344 | if ( this.isMoving ) then |
||
345 | this:GetParent():StopMovingOrSizing(); |
||
346 | this:GetParent().isResizing = false; |
||
347 | SW_SomethingResizing = false; |
||
348 | end |
||
349 | </OnHide> |
||
350 | </Scripts> |
||
351 | <Size> |
||
352 | <AbsDimension x="16" y="16" /> |
||
353 | </Size> |
||
354 | <Anchors> |
||
355 | <Anchor point="BOTTOMRIGHT"> |
||
356 | <Offset> |
||
357 | <AbsDimension x="-6" y="6" /> |
||
358 | </Offset> |
||
359 | </Anchor> |
||
360 | </Anchors> |
||
361 | <Layers> |
||
362 | <Layer level="BACKGROUND"> |
||
363 | <Texture file="Interface\AddOns\SW_Stats\images\corner" alphaMode="ADD"> |
||
364 | <Anchors> |
||
365 | <Anchor point="TOPLEFT"> |
||
366 | <Offset> |
||
367 | <AbsDimension x="0" y="0" /> |
||
368 | </Offset> |
||
369 | </Anchor> |
||
370 | <Anchor point="BOTTOMRIGHT"> |
||
371 | <Offset> |
||
372 | <AbsDimension x="0" y="0" /> |
||
373 | </Offset> |
||
374 | </Anchor> |
||
375 | </Anchors> |
||
376 | </Texture> |
||
377 | </Layer> |
||
378 | </Layers> |
||
379 | </Frame> |
||
380 | <!-- A frame with ScrollingMessage and gui buttons like scroll up down bottom etc--> |
||
381 | <Frame name="SW_Msg_Frame" virtual="true"> |
||
382 | <Anchors> |
||
383 | <Anchor point="TOPLEFT"> |
||
384 | <Offset> |
||
385 | <AbsDimension x="4" y="-4" /> |
||
386 | </Offset> |
||
387 | </Anchor> |
||
388 | <Anchor point="BOTTOMRIGHT"> |
||
389 | <Offset> |
||
390 | <AbsDimension x="-4" y="4" /> |
||
391 | </Offset> |
||
392 | </Anchor> |
||
393 | </Anchors> |
||
394 | <Frames> |
||
395 | <ScrollingMessageFrame name="$parent_MsgFrame" displayDuration="1.0" hidden="false" maxLines="256"> |
||
396 | <Scripts> |
||
397 | <OnLoad> |
||
398 | if this.EnableFading == nil then |
||
399 | this:SetFading(false); |
||
400 | else |
||
401 | this:EnableFading(false); |
||
402 | end |
||
403 | |||
404 | </OnLoad> |
||
405 | </Scripts> |
||
406 | <Anchors> |
||
407 | <Anchor point="TOPLEFT" /> |
||
408 | <Anchor point="BOTTOMRIGHT"> |
||
409 | <Offset> |
||
410 | <AbsDimension x="-20" y="0" /> |
||
411 | </Offset> |
||
412 | </Anchor> |
||
413 | </Anchors> |
||
414 | <FontString inherits="GameFontNormalSmall" justifyH="LEFT" /> |
||
415 | </ScrollingMessageFrame> |
||
416 | <Button name="$parent_MsgUp"> |
||
417 | <Size> |
||
418 | <AbsDimension x="20" y="20" /> |
||
419 | </Size> |
||
420 | <Anchors> |
||
421 | <Anchor point="BOTTOMRIGHT"> |
||
422 | <Offset> |
||
423 | <AbsDimension x="-4" y="37" /> |
||
424 | </Offset> |
||
425 | </Anchor> |
||
426 | </Anchors> |
||
427 | <Scripts> |
||
428 | <OnClick> |
||
429 | local scTarget = this:GetParent():GetName().."_MsgFrame"; |
||
430 | getglobal(scTarget):ScrollUp(); |
||
431 | </OnClick> |
||
432 | <OnUpdate> |
||
433 | if (this:GetButtonState() == "PUSHED") then |
||
434 | local scTarget = this:GetParent():GetName().."_MsgFrame"; |
||
435 | getglobal(scTarget):ScrollUp(); |
||
436 | end |
||
437 | </OnUpdate> |
||
438 | </Scripts> |
||
439 | <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Up" /> |
||
440 | <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Down" /> |
||
441 | <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Disabled" /> |
||
442 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" /> |
||
443 | </Button> |
||
444 | <Button name="$parent_MsgDown"> |
||
445 | <Size> |
||
446 | <AbsDimension x="20" y="20" /> |
||
447 | </Size> |
||
448 | <Anchors> |
||
449 | <Anchor point="BOTTOMRIGHT"> |
||
450 | <Offset> |
||
451 | <AbsDimension x="-4" y="22" /> |
||
452 | </Offset> |
||
453 | </Anchor> |
||
454 | </Anchors> |
||
455 | <Scripts> |
||
456 | <OnClick> |
||
457 | local scTarget = this:GetParent():GetName().."_MsgFrame"; |
||
458 | getglobal(scTarget):ScrollDown(); |
||
459 | </OnClick> |
||
460 | <OnUpdate> |
||
461 | if (this:GetButtonState() == "PUSHED") then |
||
462 | local scTarget = this:GetParent():GetName().."_MsgFrame"; |
||
463 | getglobal(scTarget):ScrollDown(); |
||
464 | end |
||
465 | </OnUpdate> |
||
466 | </Scripts> |
||
467 | <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up" /> |
||
468 | <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down" /> |
||
469 | <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled" /> |
||
470 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" /> |
||
471 | </Button> |
||
472 | <Button name="$parent_MsgBottom"> |
||
473 | <Size> |
||
474 | <AbsDimension x="20" y="20" /> |
||
475 | </Size> |
||
476 | <Anchors> |
||
477 | <Anchor point="BOTTOMRIGHT"> |
||
478 | <Offset> |
||
479 | <AbsDimension x="-4" y="4" /> |
||
480 | </Offset> |
||
481 | </Anchor> |
||
482 | </Anchors> |
||
483 | <Scripts> |
||
484 | <OnClick> |
||
485 | local scTarget = this:GetParent():GetName().."_MsgFrame"; |
||
486 | getglobal(scTarget):ScrollToBottom(); |
||
487 | </OnClick> |
||
488 | </Scripts> |
||
489 | <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollEnd-Up" /> |
||
490 | <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollEnd-Down" /> |
||
491 | <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollEnd-Disabled" /> |
||
492 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD" /> |
||
493 | </Button> |
||
494 | </Frames> |
||
495 | </Frame> |
||
496 | <CheckButton name="SW_Chk_Template" inherits="UICheckButtonTemplate" hidden="false" virtual="true"> |
||
497 | <Size> |
||
498 | <AbsDimension x="20" y="20" /> |
||
499 | </Size> |
||
500 | <Anchors> |
||
501 | <Anchor point="TOPLEFT" relativeTo="$parent" /> |
||
502 | </Anchors> |
||
503 | <Scripts> |
||
504 | <OnClick>SW_ChkClick(this);</OnClick> |
||
505 | <OnEnter> |
||
506 | local strName = this:GetName(); |
||
507 | if SW_GS_Tooltips[strName] ~= nil then |
||
508 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
509 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
510 | end |
||
511 | </OnEnter> |
||
512 | <OnLeave> |
||
513 | GameTooltip:Hide(); |
||
514 | </OnLeave> |
||
515 | </Scripts> |
||
516 | </CheckButton> |
||
517 | <Frame name="SW_Console_Text" inherits="SW_Msg_Frame" virtual="true"> |
||
518 | <Anchors> |
||
519 | <Anchor point="TOPLEFT"> |
||
520 | <Offset> |
||
521 | <AbsDimension x="4" y="-10" /> |
||
522 | </Offset> |
||
523 | </Anchor> |
||
524 | <Anchor point="BOTTOMRIGHT"> |
||
525 | <Offset> |
||
526 | <AbsDimension x="2" y="10" /> |
||
527 | </Offset> |
||
528 | </Anchor> |
||
529 | </Anchors> |
||
530 | </Frame> |
||
531 | <Frame name="SW_Console_Inner" hidden="true" virtual="true"> |
||
532 | <Anchors> |
||
533 | <Anchor point="TOPLEFT"> |
||
534 | <Offset> |
||
535 | <AbsDimension x="4" y="-10" /> |
||
536 | </Offset> |
||
537 | </Anchor> |
||
538 | <Anchor point="BOTTOMRIGHT"> |
||
539 | <Offset> |
||
540 | <AbsDimension x="2" y="10" /> |
||
541 | </Offset> |
||
542 | </Anchor> |
||
543 | </Anchors> |
||
544 | </Frame> |
||
545 | <Frame name="SW_RoundButton" virtual="true" hidden="true"> |
||
546 | <Size> |
||
547 | <AbsDimension x="16" y="16" /> |
||
548 | </Size> |
||
549 | <Scripts> |
||
550 | <OnLeave> |
||
551 | if not this.IconMode then |
||
552 | this.HighlightF:Hide(); |
||
553 | this.NormalF:Show(); |
||
554 | end |
||
555 | GameTooltip:Hide(); |
||
556 | </OnLeave> |
||
557 | <OnEnter> |
||
558 | if not this.IconMode then |
||
559 | this.HighlightF:Show(); |
||
560 | this.NormalF:Hide(); |
||
561 | end |
||
562 | local strName = this:GetName(); |
||
563 | if SW_GS_Tooltips[strName] ~= nil then |
||
564 | GameTooltip:SetOwner(this, "ANCHOR_LEFT"); |
||
565 | GameTooltip:SetText(SW_GS_Tooltips[strName],nil,nil,nil,nil,1); |
||
566 | end |
||
567 | </OnEnter> |
||
568 | <OnLoad> |
||
569 | SW_InitRoundButton(this); |
||
570 | </OnLoad> |
||
571 | </Scripts> |
||
572 | <Frames> |
||
573 | <Frame name="$parent_Normal" hidden="false"> |
||
574 | <Anchors> |
||
575 | <Anchor point="TOPLEFT" /> |
||
576 | <Anchor point="BOTTOMRIGHT" /> |
||
577 | </Anchors> |
||
578 | <Layers> |
||
579 | <Layer level="BACKGROUND"> |
||
580 | <Texture name="$parent_Texture" file="Interface\AddOns\SW_Stats\images\buttonD"></Texture> |
||
581 | </Layer> |
||
582 | <Layer level="ARTWORK"> |
||
583 | <FontString name="$parent_Text" inherits="GameFontNormalSmall"> |
||
584 | <Anchors> |
||
585 | <Anchor point="CENTER" /> |
||
586 | </Anchors> |
||
587 | </FontString> |
||
588 | <Texture name="$parent_TextureIcon" file="Interface\AddOns\SW_Stats\images\bIconS"></Texture> |
||
589 | </Layer> |
||
590 | </Layers> |
||
591 | </Frame> |
||
592 | <Frame name="$parent_Highlight" hidden="true"> |
||
593 | <Anchors> |
||
594 | <Anchor point="TOPLEFT" /> |
||
595 | <Anchor point="BOTTOMRIGHT" /> |
||
596 | </Anchors> |
||
597 | <Layers> |
||
598 | <Layer level="BACKGROUND"> |
||
599 | <Texture name="$parent_Texture" file="Interface\AddOns\SW_Stats\images\buttonL"></Texture> |
||
600 | </Layer> |
||
601 | <Layer level="ARTWORK"> |
||
602 | <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="E"> |
||
603 | <Anchors> |
||
604 | <Anchor point="CENTER" /> |
||
605 | </Anchors> |
||
606 | </FontString> |
||
607 | <Texture name="$parent_TextureIcon" file="Interface\AddOns\SW_Stats\images\bIconSH"></Texture> |
||
608 | </Layer> |
||
609 | </Layers> |
||
610 | </Frame> |
||
611 | </Frames> |
||
612 | </Frame> |
||
613 | </Ui> |