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" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
2 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="CT_UnitFrameOptions.lua"/> |
||
4 | <CheckButton name="CT_UnitFramesOptionsRadioButtonTemplate" virtual="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="20" y="20"/> |
||
7 | </Size> |
||
8 | <Layers> |
||
9 | <Layer level="ARTWORK"> |
||
10 | <FontString inherits="GameFontNormalSmall" name="$parentName"> |
||
11 | <Anchors> |
||
12 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent"> |
||
13 | <Offset> |
||
14 | <AbsDimension x="0" y="0"/> |
||
15 | </Offset> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | <Color r="1" g="1" b="1"/> |
||
19 | </FontString> |
||
20 | </Layer> |
||
21 | </Layers> |
||
22 | <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-RadioButton"> |
||
23 | <TexCoords left="0" right="0.25" top="0" bottom="1"/> |
||
24 | </NormalTexture> |
||
25 | <DisabledTexture name="$parentDisabledTexture" file="Interface\Buttons\UI-RadioButton"> |
||
26 | <TexCoords left="0" right="0.25" top="0" bottom="1"/> |
||
27 | </DisabledTexture> |
||
28 | <PushedTexture name="$parentPushedTexture" file="Interface\Buttons\UI-RadioButton"> |
||
29 | <TexCoords left="0.25" right="0.5" top="0" bottom="1"/> |
||
30 | </PushedTexture> |
||
31 | <HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-RadioButton" alphaMode="ADD"> |
||
32 | <TexCoords left="0.51" right="0.75" top="0" bottom="1"/> |
||
33 | </HighlightTexture> |
||
34 | <CheckedTexture name="$parentCheckedTexture" file="Interface\Buttons\UI-RadioButton"> |
||
35 | <TexCoords left="0.25" right="0.5" top="0" bottom="1"/> |
||
36 | </CheckedTexture> |
||
37 | <DisabledCheckedTexture name="$parentDisabledCheckedTexture" file="Interface\Buttons\UI-RadioButton"> |
||
38 | <TexCoords left="0.25" right="0.5" top="0" bottom="1"/> |
||
39 | </DisabledCheckedTexture> |
||
40 | <Scripts> |
||
41 | <OnClick> |
||
42 | CT_UnitFramesOptions_Radio_OnClick(); |
||
43 | </OnClick> |
||
44 | <OnLoad> |
||
45 | CT_UnitFramesOptions_Radio_OnLoad(); |
||
46 | </OnLoad> |
||
47 | </Scripts> |
||
48 | </CheckButton> |
||
49 | <Frame name="CT_UnitFramesOptionsFrameSelectionTemplate" virtual="true"> |
||
50 | <Size> |
||
51 | <AbsDimension x="270" y="20"/> |
||
52 | </Size> |
||
53 | <Layers> |
||
54 | <Layer level="ARTWORK"> |
||
55 | <FontString name="$parentName" inherits="GameFontNormalSmall"> |
||
56 | <Anchors> |
||
57 | <Anchor point="LEFT"/> |
||
58 | </Anchors> |
||
59 | </FontString> |
||
60 | </Layer> |
||
61 | </Layers> |
||
62 | <Frames> |
||
63 | <CheckButton name="$parentRadio1" id="1" inherits="CT_UnitFramesOptionsRadioButtonTemplate"> <!-- None --> |
||
64 | <Anchors> |
||
65 | <Anchor point="LEFT"> |
||
66 | <Offset> |
||
67 | <AbsDimension x="115" y="0"/> |
||
68 | </Offset> |
||
69 | </Anchor> |
||
70 | </Anchors> |
||
71 | </CheckButton> |
||
72 | <CheckButton name="$parentRadio2" id="2" inherits="CT_UnitFramesOptionsRadioButtonTemplate"> <!-- Percent --> |
||
73 | <Anchors> |
||
74 | <Anchor point="LEFT" relativeTo="$parentRadio1" relativePoint="RIGHT"> |
||
75 | <Offset> |
||
76 | <AbsDimension x="32" y="0"/> |
||
77 | </Offset> |
||
78 | </Anchor> |
||
79 | </Anchors> |
||
80 | </CheckButton> |
||
81 | <CheckButton name="$parentRadio3" id="3" inherits="CT_UnitFramesOptionsRadioButtonTemplate"> <!-- Deficit --> |
||
82 | <Anchors> |
||
83 | <Anchor point="LEFT" relativeTo="$parentRadio2" relativePoint="RIGHT"> |
||
84 | <Offset> |
||
85 | <AbsDimension x="48" y="0"/> |
||
86 | </Offset> |
||
87 | </Anchor> |
||
88 | </Anchors> |
||
89 | </CheckButton> |
||
90 | <CheckButton name="$parentRadio4" id="4" inherits="CT_UnitFramesOptionsRadioButtonTemplate"> <!-- Exact values --> |
||
91 | <Anchors> |
||
92 | <Anchor point="LEFT" relativeTo="$parentRadio3" relativePoint="RIGHT"> |
||
93 | <Offset> |
||
94 | <AbsDimension x="40" y="0"/> |
||
95 | </Offset> |
||
96 | </Anchor> |
||
97 | </Anchors> |
||
98 | </CheckButton> |
||
99 | <Button name="$parentColorSwatch"> |
||
100 | <Size> |
||
101 | <AbsDimension x="16" y="16"/> |
||
102 | </Size> |
||
103 | <Anchors> |
||
104 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentRadio4"> |
||
105 | <Offset> |
||
106 | <AbsDimension x="40" y="0"/> |
||
107 | </Offset> |
||
108 | </Anchor> |
||
109 | </Anchors> |
||
110 | <Layers> |
||
111 | <Layer level="BACKGROUND"> |
||
112 | <Texture name="$parentBG"> |
||
113 | <Size> |
||
114 | <AbsDimension x="14" y="14"/> |
||
115 | </Size> |
||
116 | <Color r="1.0" g="1.0" b="1.0"/> |
||
117 | <Anchors> |
||
118 | <Anchor point="CENTER"/> |
||
119 | </Anchors> |
||
120 | </Texture> |
||
121 | </Layer> |
||
122 | </Layers> |
||
123 | <Scripts> |
||
124 | <OnClick> |
||
125 | CloseMenus(); |
||
126 | CT_UnitFrameOptions_ColorSwatch_ShowColorPicker(CT_UnitFramesOptionsFrame); |
||
127 | </OnClick> |
||
128 | <OnEnter> |
||
129 | getglobal(this:GetName().."BG"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
130 | </OnEnter> |
||
131 | <OnLeave> |
||
132 | getglobal(this:GetName().."BG"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
133 | </OnLeave> |
||
134 | </Scripts> |
||
135 | <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
136 | </Button> |
||
137 | </Frames> |
||
138 | <Scripts> |
||
139 | <OnLoad> |
||
140 | CT_UnitFramesOptions_Selection_OnLoad(); |
||
141 | </OnLoad> |
||
142 | </Scripts> |
||
143 | </Frame> |
||
144 | <Frame name="CT_UnitFramesOptionsBoxTemplate" virtual="true"> |
||
145 | <Size> |
||
146 | <AbsDimension x="390" y="50"/> |
||
147 | </Size> |
||
148 | |||
149 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
150 | <EdgeSize> |
||
151 | <AbsValue val="16"/> |
||
152 | </EdgeSize> |
||
153 | <TileSize> |
||
154 | <AbsValue val="16"/> |
||
155 | </TileSize> |
||
156 | <BackgroundInsets> |
||
157 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
158 | </BackgroundInsets> |
||
159 | </Backdrop> |
||
160 | |||
161 | <Layers> |
||
162 | <Layer level="ARTWORK"> |
||
163 | <FontString name="$parentName" inherits="GameFontNormal"> |
||
164 | <Anchors> |
||
165 | <Anchor point="TOP"> |
||
166 | <Offset> |
||
167 | <AbsDimension x="0" y="12"/> |
||
168 | </Offset> |
||
169 | </Anchor> |
||
170 | </Anchors> |
||
171 | </FontString> |
||
172 | </Layer> |
||
173 | </Layers> |
||
174 | |||
175 | <Frames> |
||
176 | <Frame name="$parentSelection1" id="1" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
177 | <Anchors> |
||
178 | <Anchor point="TOPLEFT"> |
||
179 | <Offset> |
||
180 | <AbsDimension x="10" y="-5"/> |
||
181 | </Offset> |
||
182 | </Anchor> |
||
183 | </Anchors> |
||
184 | </Frame> |
||
185 | <Frame name="$parentSelection2" id="2" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
186 | <Anchors> |
||
187 | <Anchor point="TOPLEFT"> |
||
188 | <Offset> |
||
189 | <AbsDimension x="10" y="-25"/> |
||
190 | </Offset> |
||
191 | </Anchor> |
||
192 | </Anchors> |
||
193 | </Frame> |
||
194 | </Frames> |
||
195 | |||
196 | <Scripts> |
||
197 | <OnLoad> |
||
198 | this:SetBackdropColor(0, 0, 0, 0.5); |
||
199 | CT_UnitFramesOptions_Box_OnLoad(); |
||
200 | </OnLoad> |
||
201 | </Scripts> |
||
202 | </Frame> |
||
203 | |||
204 | <Frame name="CT_UnitFramesOptionsFrame" parent="UIParent" movable="true" hidden="true"> |
||
205 | <Size> |
||
206 | <AbsDimension x="430" y="450"/> |
||
207 | </Size> |
||
208 | |||
209 | <Anchors> |
||
210 | <Anchor point="CENTER"/> |
||
211 | </Anchors> |
||
212 | |||
213 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
214 | <EdgeSize> |
||
215 | <AbsValue val="16"/> |
||
216 | </EdgeSize> |
||
217 | <TileSize> |
||
218 | <AbsValue val="16"/> |
||
219 | </TileSize> |
||
220 | <BackgroundInsets> |
||
221 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
222 | </BackgroundInsets> |
||
223 | </Backdrop> |
||
224 | |||
225 | <Layers> |
||
226 | <Layer level="ARTWORK"> |
||
227 | <FontString name="$parentTitle" text="CT_UnitFrames Options" inherits="GameFontNormal"> |
||
228 | <Anchors> |
||
229 | <Anchor point="TOP"> |
||
230 | <Offset> |
||
231 | <AbsDimension x="0" y="-5"/> |
||
232 | </Offset> |
||
233 | </Anchor> |
||
234 | </Anchors> |
||
235 | </FontString> |
||
236 | </Layer> |
||
237 | </Layers> |
||
238 | |||
239 | <Frames> |
||
240 | <Button name="$parentCloseButton" hidden="false"> |
||
241 | <Size> |
||
242 | <AbsDimension x="42" y="42"/> |
||
243 | </Size> |
||
244 | <Anchors> |
||
245 | <Anchor point="TOPRIGHT"/> |
||
246 | </Anchors> |
||
247 | <Scripts> |
||
248 | <OnClick> |
||
249 | HideUIPanel(this:GetParent()); |
||
250 | </OnClick> |
||
251 | </Scripts> |
||
252 | <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/> |
||
253 | <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/> |
||
254 | <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/> |
||
255 | </Button> |
||
256 | |||
257 | <Frame name="$parentBox1" id="1" inherits="CT_UnitFramesOptionsBoxTemplate"> |
||
258 | <Size> |
||
259 | <AbsDimension x="390" y="95"/> |
||
260 | </Size> |
||
261 | <Anchors> |
||
262 | <Anchor point="TOPLEFT"> |
||
263 | <Offset> |
||
264 | <AbsDimension x="20" y="-45"/> |
||
265 | </Offset> |
||
266 | </Anchor> |
||
267 | </Anchors> |
||
268 | <Frames> |
||
269 | <Frame name="$parentSelection3" id="3" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
270 | <Anchors> |
||
271 | <Anchor point="TOPLEFT"> |
||
272 | <Offset> |
||
273 | <AbsDimension x="10" y="-45"/> |
||
274 | </Offset> |
||
275 | </Anchor> |
||
276 | </Anchors> |
||
277 | </Frame> |
||
278 | <Frame name="$parentSelection4" id="4" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
279 | <Anchors> |
||
280 | <Anchor point="TOPLEFT"> |
||
281 | <Offset> |
||
282 | <AbsDimension x="10" y="-65"/> |
||
283 | </Offset> |
||
284 | </Anchor> |
||
285 | </Anchors> |
||
286 | </Frame> |
||
287 | </Frames> |
||
288 | </Frame> |
||
289 | |||
290 | <Frame name="$parentBox2" id="2" inherits="CT_UnitFramesOptionsBoxTemplate"> |
||
291 | <Size> |
||
292 | <AbsDimension x="390" y="130"/> |
||
293 | </Size> |
||
294 | <Anchors> |
||
295 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentBox1"> |
||
296 | <Offset> |
||
297 | <AbsDimension x="0" y="-15"/> |
||
298 | </Offset> |
||
299 | </Anchor> |
||
300 | </Anchors> |
||
301 | <Frames> |
||
302 | <Frame name="$parentSelection3" id="3" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
303 | <Anchors> |
||
304 | <Anchor point="TOPLEFT"> |
||
305 | <Offset> |
||
306 | <AbsDimension x="10" y="-45"/> |
||
307 | </Offset> |
||
308 | </Anchor> |
||
309 | </Anchors> |
||
310 | </Frame> |
||
311 | <Frame name="$parentSelection4" id="4" inherits="CT_UnitFramesOptionsFrameSelectionTemplate"> |
||
312 | <Anchors> |
||
313 | <Anchor point="TOPLEFT"> |
||
314 | <Offset> |
||
315 | <AbsDimension x="10" y="-65"/> |
||
316 | </Offset> |
||
317 | </Anchor> |
||
318 | </Anchors> |
||
319 | </Frame> |
||
320 | <Slider name="$parentSlider" inherits="OptionsSliderTemplate"> |
||
321 | <Size> |
||
322 | <AbsDimension x="300" y="17"/> |
||
323 | </Size> |
||
324 | <Anchors> |
||
325 | <Anchor point="CENTER" relativePoint="TOP"> |
||
326 | <Offset> |
||
327 | <AbsDimension x="0" y="-105"/> |
||
328 | </Offset> |
||
329 | </Anchor> |
||
330 | </Anchors> |
||
331 | <Scripts> |
||
332 | <OnLoad> |
||
333 | CT_PartyFrameSlider_OnLoad(); |
||
334 | </OnLoad> |
||
335 | <OnShow> |
||
336 | this:SetValue(CT_UnitFramesOptions.partyTextSize or 3); |
||
337 | </OnShow> |
||
338 | <OnValueChanged> |
||
339 | CT_UnitFramesOptions.partyTextSize = this:GetValue(); |
||
340 | getglobal(this:GetName().."Text"):SetText(CT_UFO_PARTYTEXTSIZE .. " - "..this:GetValue()); |
||
341 | CT_UnitFramesOptions_Radio_Update(); |
||
342 | </OnValueChanged> |
||
343 | </Scripts> |
||
344 | </Slider> |
||
345 | </Frames> |
||
346 | </Frame> |
||
347 | |||
348 | <Frame name="$parentBox3" id="3" inherits="CT_UnitFramesOptionsBoxTemplate"> |
||
349 | <Size> |
||
350 | <AbsDimension x="390" y="70"/> |
||
351 | </Size> |
||
352 | <Anchors> |
||
353 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentBox2"> |
||
354 | <Offset> |
||
355 | <AbsDimension x="0" y="-15"/> |
||
356 | </Offset> |
||
357 | </Anchor> |
||
358 | </Anchors> |
||
359 | <Frames> |
||
360 | <CheckButton name="$parentClassFrameCB" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
361 | <HitRectInsets> |
||
362 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
363 | </HitRectInsets> |
||
364 | <Size> |
||
365 | <AbsDimension x="24" y="24"/> |
||
366 | </Size> |
||
367 | <Anchors> |
||
368 | <Anchor point="TOPLEFT"> |
||
369 | <Offset> |
||
370 | <AbsDimension x="7" y="-42"/> |
||
371 | </Offset> |
||
372 | </Anchor> |
||
373 | </Anchors> |
||
374 | <Scripts> |
||
375 | <OnClick> |
||
376 | CT_UnitFramesOptions_Box_CB_OnClick(); |
||
377 | </OnClick> |
||
378 | </Scripts> |
||
379 | <Layers> |
||
380 | <Layer level="ARTWORK"> |
||
381 | <FontString name="$parentName" inherits="GameFontNormalSmall"> |
||
382 | <Anchors> |
||
383 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
384 | <Offset> |
||
385 | <AbsDimension x="4" y="0"/> |
||
386 | </Offset> |
||
387 | </Anchor> |
||
388 | </Anchors> |
||
389 | <Color r="1" g="1" b="1"/> |
||
390 | </FontString> |
||
391 | </Layer> |
||
392 | </Layers> |
||
393 | </CheckButton> |
||
394 | </Frames> |
||
395 | </Frame> |
||
396 | |||
397 | <Frame name="$parentBox4" id="4" inherits="CT_UnitFramesOptionsBoxTemplate"> |
||
398 | <Anchors> |
||
399 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentBox3"> |
||
400 | <Offset> |
||
401 | <AbsDimension x="0" y="-15"/> |
||
402 | </Offset> |
||
403 | </Anchor> |
||
404 | </Anchors> |
||
405 | <Frames> |
||
406 | <CheckButton name="$parentDisplayCB" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
407 | <HitRectInsets> |
||
408 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
409 | </HitRectInsets> |
||
410 | <Size> |
||
411 | <AbsDimension x="18" y="18"/> |
||
412 | </Size> |
||
413 | <Anchors> |
||
414 | <Anchor point="RIGHT" relativeTo="$parentName" relativePoint="LEFT"> |
||
415 | <Offset> |
||
416 | <AbsDimension x="-4" y="0"/> |
||
417 | </Offset> |
||
418 | </Anchor> |
||
419 | </Anchors> |
||
420 | <Scripts> |
||
421 | <OnClick> |
||
422 | CT_UnitFramesOptions_Box_CB_OnClick(); |
||
423 | </OnClick> |
||
424 | </Scripts> |
||
425 | <Layers> |
||
426 | <Layer level="ARTWORK"> |
||
427 | <FontString name="$parentName" inherits="GameFontNormalSmall"> |
||
428 | <Anchors> |
||
429 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
430 | <Offset> |
||
431 | <AbsDimension x="2" y="1"/> |
||
432 | </Offset> |
||
433 | </Anchor> |
||
434 | </Anchors> |
||
435 | <Color r="1" g="1" b="1"/> |
||
436 | </FontString> |
||
437 | </Layer> |
||
438 | </Layers> |
||
439 | </CheckButton> |
||
440 | </Frames> |
||
441 | </Frame> |
||
442 | </Frames> |
||
443 | |||
444 | <Scripts> |
||
445 | <OnLoad> |
||
446 | this:SetBackdropColor(0, 0, 0, 0.8); |
||
447 | this:RegisterEvent("VARIABLES_LOADED"); |
||
448 | </OnLoad> |
||
449 | <OnEvent> |
||
450 | CT_UnitFramesOptions_Radio_Update(); |
||
451 | </OnEvent> |
||
452 | <OnMouseDown> |
||
453 | if ( arg1 == "LeftButton" ) then |
||
454 | this:StartMoving(); |
||
455 | end |
||
456 | </OnMouseDown> |
||
457 | <OnMouseUp> |
||
458 | if ( arg1 == "LeftButton" ) then |
||
459 | this:StopMovingOrSizing(); |
||
460 | end |
||
461 | </OnMouseUp> |
||
462 | <OnHide> |
||
463 | PlaySound("UChatScrollButton"); |
||
464 | this:StopMovingOrSizing(); |
||
465 | </OnHide> |
||
466 | <OnShow> |
||
467 | PlaySound("UChatScrollButton"); |
||
468 | </OnShow> |
||
469 | </Scripts> |
||
470 | </Frame> |
||
471 | </Ui> |