vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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 ..\FrameXML\UI.xsd">
3 <Script file="CCWatch_Options.lua"/>
4 <Frame name="CCWatchOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
5 <Size>
6 <AbsDimension x="300" y="340"/>
7 </Size>
8 <Anchors>
9 <Anchor point="CENTER"/>
10 </Anchors>
11 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
12 <BackgroundInsets>
13 <AbsInset left="11" right="12" top="12" bottom="11"/>
14 </BackgroundInsets>
15 <TileSize>
16 <AbsValue val="32"/>
17 </TileSize>
18 <EdgeSize>
19 <AbsValue val="32"/>
20 </EdgeSize>
21 </Backdrop>
22 <Layers>
23 <Layer level="ARTWORK">
24 <Texture name="CCWatchOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
25 <Size>
26 <AbsDimension x="300" y="64"/>
27 </Size>
28 <Anchors>
29 <Anchor point="TOP">
30 <Offset>
31 <AbsDimension x="0" y="12"/>
32 </Offset>
33 </Anchor>
34 </Anchors>
35 </Texture>
36 <FontString inherits="GameFontNormal" text="CCWATCH_OPTIONS_TITLE">
37 <Anchors>
38 <Anchor point="TOP" relativeTo="CCWatchOptionsFrameHeader">
39 <Offset>
40 <AbsDimension x="0" y="-14"/>
41 </Offset>
42 </Anchor>
43 </Anchors>
44 </FontString>
45 </Layer>
46 </Layers>
47 <Frames>
48 <CheckButton name="CCWatchOptionsFrameMageCC" inherits="OptionsCheckButtonTemplate">
49 <Anchors>
50 <Anchor point="TOPLEFT">
51 <Offset>
52 <AbsDimension x="20" y="-20"/>
53 </Offset>
54 </Anchor>
55 </Anchors>
56 <Scripts>
57 <OnLoad>
58 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_MAGE);
59 </OnLoad>
60 <OnClick>
61 CCWatchOptions_MageCCToggle();
62 </OnClick>
63 </Scripts>
64 </CheckButton>
65 <CheckButton name="CCWatchOptionsFramePriestCC" inherits="OptionsCheckButtonTemplate">
66 <Anchors>
67 <Anchor point="TOPLEFT">
68 <Offset>
69 <AbsDimension x="20" y="-40"/>
70 </Offset>
71 </Anchor>
72 </Anchors>
73 <Scripts>
74 <OnLoad>
75 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_PRIEST);
76 </OnLoad>
77 <OnClick>
78 CCWatchOptions_PriestCCToggle();
79 </OnClick>
80 </Scripts>
81 </CheckButton>
82 <CheckButton name="CCWatchOptionsFrameDruidCC" inherits="OptionsCheckButtonTemplate">
83 <Anchors>
84 <Anchor point="TOPLEFT">
85 <Offset>
86 <AbsDimension x="20" y="-60"/>
87 </Offset>
88 </Anchor>
89 </Anchors>
90 <Scripts>
91 <OnLoad>
92 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_DRUID);
93 </OnLoad>
94 <OnClick>
95 CCWatchOptions_DruidCCToggle();
96 </OnClick>
97 </Scripts>
98 </CheckButton>
99 <CheckButton name="CCWatchOptionsFrameHunterCC" inherits="OptionsCheckButtonTemplate">
100 <Anchors>
101 <Anchor point="TOPLEFT">
102 <Offset>
103 <AbsDimension x="20" y="-80"/>
104 </Offset>
105 </Anchor>
106 </Anchors>
107 <Scripts>
108 <OnLoad>
109 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_HUNTER);
110 </OnLoad>
111 <OnClick>
112 CCWatchOptions_HunterCCToggle();
113 </OnClick>
114 </Scripts>
115 </CheckButton>
116 <CheckButton name="CCWatchOptionsFramePaladinCC" inherits="OptionsCheckButtonTemplate">
117 <Anchors>
118 <Anchor point="TOPLEFT">
119 <Offset>
120 <AbsDimension x="20" y="-100"/>
121 </Offset>
122 </Anchor>
123 </Anchors>
124 <Scripts>
125 <OnLoad>
126 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_PALADIN);
127 </OnLoad>
128 <OnClick>
129 CCWatchOptions_PaladinCCToggle();
130 </OnClick>
131 </Scripts>
132 </CheckButton>
133 <CheckButton name="CCWatchOptionsFrameWarlockCC" inherits="OptionsCheckButtonTemplate">
134 <Anchors>
135 <Anchor point="TOPLEFT">
136 <Offset>
137 <AbsDimension x="160" y="-20"/>
138 </Offset>
139 </Anchor>
140 </Anchors>
141 <Scripts>
142 <OnLoad>
143 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WARLOCK);
144 </OnLoad>
145 <OnClick>
146 CCWatchOptions_WarlockCCToggle();
147 </OnClick>
148 </Scripts>
149 </CheckButton>
150 <CheckButton name="CCWatchOptionsFrameWarriorCC" inherits="OptionsCheckButtonTemplate">
151 <Anchors>
152 <Anchor point="TOPLEFT">
153 <Offset>
154 <AbsDimension x="160" y="-40"/>
155 </Offset>
156 </Anchor>
157 </Anchors>
158 <Scripts>
159 <OnLoad>
160 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WARRIOR);
161 </OnLoad>
162 <OnClick>
163 CCWatchOptions_WarriorCCToggle();
164 </OnClick>
165 </Scripts>
166 </CheckButton>
167 <CheckButton name="CCWatchOptionsFrameRogueCC" inherits="OptionsCheckButtonTemplate">
168 <Anchors>
169 <Anchor point="TOPLEFT">
170 <Offset>
171 <AbsDimension x="160" y="-60"/>
172 </Offset>
173 </Anchor>
174 </Anchors>
175 <Scripts>
176 <OnLoad>
177 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_ROGUE);
178 </OnLoad>
179 <OnClick>
180 CCWatchOptions_RogueCCToggle();
181 </OnClick>
182 </Scripts>
183 </CheckButton>
184 <CheckButton name="CCWatchOptionsFrameMiscCC" inherits="OptionsCheckButtonTemplate">
185 <Anchors>
186 <Anchor point="TOPLEFT">
187 <Offset>
188 <AbsDimension x="160" y="-80"/>
189 </Offset>
190 </Anchor>
191 </Anchors>
192 <Scripts>
193 <OnLoad>
194 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_MISC);
195 </OnLoad>
196 <OnClick>
197 CCWatchOptions_MiscCCToggle();
198 </OnClick>
199 </Scripts>
200 </CheckButton>
201  
202 <Slider name="CCWatchSliderScale" inherits="OptionsSliderTemplate">
203 <Size>
204 <AbsDimension x="220" y="16"/>
205 </Size>
206 <Anchors>
207 <Anchor point="TOP">
208 <Offset>
209 <AbsDimension x="0" y="-130" />
210 </Offset>
211 </Anchor>
212 </Anchors>
213 <Scripts>
214 <OnLoad>
215 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_SCALE);
216 getglobal(this:GetName().."High"):SetText("3.0");
217 getglobal(this:GetName().."Low"):SetText("0.5");
218 CCWatchSliderScale:SetMinMaxValues(0.5,3.0);
219 CCWatchSliderScale:SetValueStep(0.01);
220 </OnLoad>
221 <OnValueChanged>
222 CCWATCH.SCALE = CCWatchSliderScale:GetValue();
223 CCWatch_Save[CCWATCH.PROFILE].scale = CCWATCH.SCALE;
224 CCWatch:SetScale(CCWATCH.SCALE * UIParent:GetScale());
225 </OnValueChanged>
226 </Scripts>
227 </Slider>
228  
229 <Slider name="CCWatchSliderWidth" inherits="OptionsSliderTemplate">
230 <Size>
231 <AbsDimension x="220" y="16"/>
232 </Size>
233 <Anchors>
234 <Anchor point="TOP">
235 <Offset>
236 <AbsDimension x="0" y="-170" />
237 </Offset>
238 </Anchor>
239 </Anchors>
240 <Scripts>
241 <OnLoad>
242 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_WIDTH);
243 getglobal(this:GetName().."High"):SetText("300");
244 getglobal(this:GetName().."Low"):SetText("50");
245 CCWatchSliderWidth:SetMinMaxValues(50,300);
246 CCWatchSliderWidth:SetValueStep(2);
247 </OnLoad>
248 <OnValueChanged>
249 CCWATCH.WIDTH = CCWatchSliderWidth:GetValue();
250 CCWatch_Save[CCWATCH.PROFILE].width = CCWATCH.WIDTH;
251 CCWatch_SetWidth(CCWATCH.WIDTH);
252 </OnValueChanged>
253 </Scripts>
254 </Slider>
255  
256  
257 <Slider name="CCWatchSliderAlpha" inherits="OptionsSliderTemplate">
258 <Size>
259 <AbsDimension x="220" y="16"/>
260 </Size>
261 <Anchors>
262 <Anchor point="TOP">
263 <Offset>
264 <AbsDimension x="0" y="-210" />
265 </Offset>
266 </Anchor>
267 </Anchors>
268 <Scripts>
269 <OnLoad>
270 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_TRANS);
271 getglobal(this:GetName().."High"):SetText("1.0");
272 getglobal(this:GetName().."Low"):SetText("0.0");
273 CCWatchSliderAlpha:SetMinMaxValues(0.0,1.0);
274 CCWatchSliderAlpha:SetValueStep(0.01);
275 </OnLoad>
276 <OnValueChanged>
277 CCWATCH.ALPHA = CCWatchSliderAlpha:GetValue();
278 CCWatch_Save[CCWATCH.PROFILE].alpha = CCWATCH.ALPHA;
279 CCWatchBar1:SetAlpha(CCWATCH.ALPHA);
280 CCWatchBar2:SetAlpha(CCWATCH.ALPHA);
281 CCWatchBar3:SetAlpha(CCWATCH.ALPHA);
282 CCWatchBar4:SetAlpha(CCWATCH.ALPHA);
283 CCWatchBar5:SetAlpha(CCWATCH.ALPHA);
284 </OnValueChanged>
285 </Scripts>
286 </Slider>
287  
288 <CheckButton name="CCWatchOptionsFrameUnlock" inherits="OptionsCheckButtonTemplate">
289 <Anchors>
290 <Anchor point="TOPLEFT">
291 <Offset>
292 <AbsDimension x="20" y="-240"/>
293 </Offset>
294 </Anchor>
295 </Anchors>
296 <Scripts>
297 <OnLoad>
298 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_UNLOCK);
299 </OnLoad>
300 <OnClick>
301 CCWatchOptions_UnlockToggle();
302 </OnClick>
303 </Scripts>
304 </CheckButton>
305 <CheckButton name="CCWatchOptionsFrameInvert" inherits="OptionsCheckButtonTemplate">
306 <Anchors>
307 <Anchor point="TOPLEFT">
308 <Offset>
309 <AbsDimension x="160" y="-240"/>
310 </Offset>
311 </Anchor>
312 </Anchors>
313 <Scripts>
314 <OnLoad>
315 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_INVERT);
316 </OnLoad>
317 <OnClick>
318 CCWatchOptions_InvertToggle();
319 </OnClick>
320 </Scripts>
321 </CheckButton>
322  
323 <Frame name="CCWatchTimersSelectDropDown" inherits="UIDropDownMenuTemplate" hidden="false">
324 <Size>
325 <AbsDimension x="108" y="16"/>
326 </Size>
327 <Anchors>
328 <Anchor point="TOPLEFT">
329 <Offset>
330 <AbsDimension x="6" y="-270"/>
331 </Offset>
332 </Anchor>
333 </Anchors>
334 <Scripts>
335 <OnLoad>
336 UIDropDownMenu_Initialize(this, CCWatchTimersDropDown_OnInit);
337 UIDropDownMenu_SetWidth(110);
338 </OnLoad>
339 </Scripts>
340 </Frame>
341  
342  
343 <CheckButton name="CCWatchOptionsFrameArcanist" inherits="OptionsCheckButtonTemplate">
344 <Anchors>
345 <Anchor point="TOPLEFT">
346 <Offset>
347 <AbsDimension x="160" y="-270"/>
348 </Offset>
349 </Anchor>
350 </Anchors>
351 <Scripts>
352 <OnLoad>
353 getglobal(this:GetName().."Text"):SetText(CCWATCH_OPTIONS_ARCANIST);
354 </OnLoad>
355 <OnClick>
356 CCWatchOptions_ArcanistToggle();
357 </OnClick>
358 </Scripts>
359 </CheckButton>
360  
361 <Frame name="CCWatchGrowthSelectDropDown" inherits="UIDropDownMenuTemplate" hidden="false">
362 <Size>
363 <AbsDimension x="118" y="16"/>
364 </Size>
365 <Anchors>
366 <Anchor point="BOTTOMLEFT">
367 <Offset>
368 <AbsDimension x="6" y="10"/>
369 </Offset>
370 </Anchor>
371 </Anchors>
372 <Scripts>
373 <OnLoad>
374 UIDropDownMenu_Initialize(this, CCWatchGrowthDropDown_OnInit);
375 UIDropDownMenu_SetWidth(130);
376 </OnLoad>
377 </Scripts>
378 </Frame>
379  
380 <Button name="CCWatchOptionsFrameDone" inherits="OptionsButtonTemplate" text="CCWATCH_OPTIONS_DONE">
381 <Anchors>
382 <Anchor point="BOTTOMRIGHT">
383 <Offset>
384 <AbsDimension x="-20" y="20"/>
385 </Offset>
386 </Anchor>
387 </Anchors>
388 <Scripts>
389 <OnClick>
390 CCWatchOptions_Toggle();
391 </OnClick>
392 </Scripts>
393 </Button>
394 </Frames>
395 <Scripts>
396 <OnLoad>
397 CCWatchOptions_OnLoad();
398 </OnLoad>
399 </Scripts>
400 </Frame>
401 </Ui>