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/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/ |
||
4 | ..\..\..\FrameXML\UI.xsd"> |
||
5 | |||
6 | <Frame name="Powa_Frame" hidden="false"> |
||
7 | <Scripts> |
||
8 | <OnLoad> |
||
9 | Powa_OnLoad(); |
||
10 | </OnLoad> |
||
11 | <OnEvent> |
||
12 | Powa_OnEvent(event, arg1, arg2, arg3); |
||
13 | </OnEvent> |
||
14 | <OnUpdate> |
||
15 | Powa_OnUpdate(arg1) |
||
16 | </OnUpdate> |
||
17 | </Scripts> |
||
18 | </Frame> |
||
19 | |||
20 | <GameTooltip name="Powa_Tooltip" frameStrata="TOOLTIP" hidden="false" parent="UIParent" inherits="GameTooltipTemplate"> |
||
21 | <Anchors> |
||
22 | <Anchor point="BOTTOM" relativePoint="TOP"> |
||
23 | <Offset><AbsDimension x="0" y="100"/></Offset> |
||
24 | </Anchor> |
||
25 | </Anchors> |
||
26 | </GameTooltip> |
||
27 | |||
28 | <Slider name="PowaBarSliderTemplate" inherits="OptionsSliderTemplate" virtual="true"> |
||
29 | <Scripts> |
||
30 | <OnEnter> |
||
31 | if (this.aide) then |
||
32 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
33 | GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1); |
||
34 | end |
||
35 | </OnEnter> |
||
36 | <OnLeave> |
||
37 | GameTooltip:Hide(); |
||
38 | </OnLeave> |
||
39 | </Scripts> |
||
40 | </Slider> |
||
41 | |||
42 | <CheckButton name="PowaCheckTemplate" inherits="OptionsCheckButtonTemplate" virtual="true"> |
||
43 | <HitRectInsets> |
||
44 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
45 | </HitRectInsets> |
||
46 | </CheckButton> |
||
47 | |||
48 | -- ------------------------------------------------------------------------------------------------ |
||
49 | |||
50 | <Frame name="PowaBarConfigFrame" movable="true" parent="UIParent" frameStrata="HIGH" hidden="true" enableMouse="true" enableKeyboard="true"> |
||
51 | <Size> |
||
52 | <AbsDimension x="320" y="515" /> |
||
53 | </Size> |
||
54 | <Anchors> |
||
55 | <Anchor point="CENTER" relativeTo="UIParent"> |
||
56 | <Offset> |
||
57 | <AbsDimension x="0" y="50" /> |
||
58 | </Offset> |
||
59 | </Anchor> |
||
60 | </Anchors> |
||
61 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
62 | <BackgroundInsets> |
||
63 | <AbsInset left="11" right="12" top="12" bottom="11" /> |
||
64 | </BackgroundInsets> |
||
65 | <TileSize> |
||
66 | <AbsValue val="32" /> |
||
67 | </TileSize> |
||
68 | <EdgeSize> |
||
69 | <AbsValue val="32" /> |
||
70 | </EdgeSize> |
||
71 | </Backdrop> |
||
72 | <Scripts> |
||
73 | <OnMouseDown> |
||
74 | PowaBar_MouseDown( arg1, "PowaBarConfigFrame" ); |
||
75 | </OnMouseDown> |
||
76 | |||
77 | <OnMouseUp> |
||
78 | PowaBar_MouseUp( arg1, "PowaBarConfigFrame" ); |
||
79 | </OnMouseUp> |
||
80 | </Scripts> |
||
81 | |||
82 | -- BLOCK DE TITRE |
||
83 | <Layers> |
||
84 | <Layer> |
||
85 | <Texture file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
86 | <Size> |
||
87 | <AbsDimension x="180" y="32" /> |
||
88 | </Size> |
||
89 | <Anchors> |
||
90 | <Anchor point="TOP"> |
||
91 | <Offset> |
||
92 | <AbsDimension x="0" y="8" /> |
||
93 | </Offset> |
||
94 | </Anchor> |
||
95 | </Anchors> |
||
96 | <TexCoords left="0.2" right="0.8" top="0" bottom="0.6" /> |
||
97 | </Texture> |
||
98 | -- TITRE |
||
99 | <FontString name="PowaHeader" inherits="GameFontNormalSmall" text="POWER AURAS"> |
||
100 | <Size> |
||
101 | <AbsDimension x="140" y="0" /> |
||
102 | </Size> |
||
103 | <Anchors> |
||
104 | <Anchor point="TOP"> |
||
105 | <Offset> |
||
106 | <AbsDimension x="0" y="-4" /> |
||
107 | </Offset> |
||
108 | </Anchor> |
||
109 | </Anchors> |
||
110 | <FontHeight> |
||
111 | <AbsValue val="14" /> |
||
112 | </FontHeight> |
||
113 | </FontString> |
||
114 | </Layer> |
||
115 | </Layers> |
||
116 | -- -------------------------------------------------------------------------------------------------------------------- |
||
117 | <Frames> |
||
118 | -- bouton fermer |
||
119 | <Button name="PowaCloseButton"> |
||
120 | <Size> |
||
121 | <AbsDimension x="30" y="30"/> |
||
122 | </Size> |
||
123 | <Anchors> |
||
124 | <Anchor point="TOPRIGHT" relativeTo="PowaBarConfigFrame" relativePoint="TOPRIGHT"> |
||
125 | <Offset> |
||
126 | <AbsDimension x="-8" y="-8"/> |
||
127 | </Offset> |
||
128 | </Anchor> |
||
129 | </Anchors> |
||
130 | <Scripts> |
||
131 | <OnClick> |
||
132 | Powa_OptionClose(); |
||
133 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
134 | </OnClick> |
||
135 | </Scripts> |
||
136 | <NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/> |
||
137 | <PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/> |
||
138 | <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/> |
||
139 | </Button> |
||
140 | -- bouton Liste |
||
141 | <Button name="PowaListButton" inherits="OptionsButtonTemplate" text="Liste >>"> |
||
142 | <Anchors> |
||
143 | <Anchor point="BOTTOMRIGHT" relativeTo="PowaBarConfigFrame" relativePoint="BOTTOMRIGHT"> |
||
144 | <Offset> |
||
145 | <AbsDimension x="-15" y="15"/> |
||
146 | </Offset> |
||
147 | </Anchor> |
||
148 | </Anchors> |
||
149 | <Scripts> |
||
150 | <OnClick> |
||
151 | Powa_ShowList(); |
||
152 | </OnClick> |
||
153 | </Scripts> |
||
154 | </Button> |
||
155 | -- bouton tester |
||
156 | <Button name="PowaTestButton" inherits="OptionsButtonTemplate" text="Tester"> |
||
157 | <Anchors> |
||
158 | <Anchor point="BOTTOMRIGHT" relativeTo="PowaBarConfigFrame" relativePoint="BOTTOMLEFT"> |
||
159 | <Offset> |
||
160 | <AbsDimension x="110" y="15"/> |
||
161 | </Offset> |
||
162 | </Anchor> |
||
163 | </Anchors> |
||
164 | <Scripts> |
||
165 | <OnClick> |
||
166 | Powa_OptionTest(); |
||
167 | </OnClick> |
||
168 | </Scripts> |
||
169 | </Button> |
||
170 | -- bouton tout masquer |
||
171 | <Button name="PowaHideAllButton" inherits="OptionsButtonTemplate" text="Tout Cacher"> |
||
172 | <Anchors> |
||
173 | <Anchor point="BOTTOM" relativeTo="PowaBarConfigFrame" relativePoint="BOTTOM"> |
||
174 | <Offset> |
||
175 | <AbsDimension x="0" y="15"/> |
||
176 | </Offset> |
||
177 | </Anchor> |
||
178 | </Anchors> |
||
179 | <Scripts> |
||
180 | <OnClick> |
||
181 | Powa_OptionHideAll(); |
||
182 | </OnClick> |
||
183 | </Scripts> |
||
184 | </Button> |
||
185 | |||
186 | -- rectangle noir EDITOR |
||
187 | <Frame name="PowaBarConfigFrameEditor"> |
||
188 | <Size> |
||
189 | <AbsDimension x="290" y="315"/> |
||
190 | </Size> |
||
191 | <Anchors> |
||
192 | <Anchor point="TOP"> |
||
193 | <Offset> |
||
194 | <AbsDimension x="0" y="-45"/> |
||
195 | </Offset> |
||
196 | </Anchor> |
||
197 | </Anchors> |
||
198 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false"> |
||
199 | <EdgeSize> |
||
200 | <AbsValue val="12"/> |
||
201 | </EdgeSize> |
||
202 | <BackgroundInsets> |
||
203 | <AbsInset left="2" right="2" top="2" bottom="2"/> |
||
204 | </BackgroundInsets> |
||
205 | </Backdrop> |
||
206 | <Scripts> |
||
207 | <OnLoad> |
||
208 | this:SetBackdropBorderColor(0.7, 0.7, 0.7); |
||
209 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
210 | </OnLoad> |
||
211 | </Scripts> |
||
212 | <Layers> |
||
213 | <Layer> |
||
214 | -- texture |
||
215 | <Texture name="AuraTexture" file="Interface\AddOns\PowerAuras\Aura1.tga"> |
||
216 | <Size> |
||
217 | <AbsDimension x="107" y="107" /> |
||
218 | </Size> |
||
219 | <Anchors> |
||
220 | <Anchor point="TOPLEFT"> |
||
221 | <Offset> |
||
222 | <AbsDimension x="22" y="-40" /> |
||
223 | </Offset> |
||
224 | </Anchor> |
||
225 | </Anchors> |
||
226 | </Texture> |
||
227 | -- Numero de l'effet |
||
228 | <FontString name="powa_Text" inherits="GameFontNormal" wraponspaces="true" text=""> |
||
229 | <Size> |
||
230 | <AbsDimension x="100" y="32"/> |
||
231 | </Size> |
||
232 | <Anchors> |
||
233 | <Anchor point="TOP"> |
||
234 | <Offset> |
||
235 | <AbsDimension x="0" y="-5"/> |
||
236 | </Offset> |
||
237 | </Anchor> |
||
238 | </Anchors> |
||
239 | <Scripts> |
||
240 | <OnLoad> |
||
241 | this:SetText(PowaText.nomTitre.." 1"); |
||
242 | </OnLoad> |
||
243 | </Scripts> |
||
244 | </FontString> |
||
245 | </Layer> |
||
246 | </Layers> |
||
247 | <Frames> |
||
248 | |||
249 | -- fleche gauche |
||
250 | <Button name="powa_previous"> |
||
251 | <Size> |
||
252 | <AbsDimension x="30" y="30"/> |
||
253 | </Size> |
||
254 | <Anchors> |
||
255 | <Anchor point="RIGHT" relativeTo="powa_Text" relativePoint="LEFT"> |
||
256 | <Offset> |
||
257 | <AbsDimension x="0" y="-2"/> |
||
258 | </Offset> |
||
259 | </Anchor> |
||
260 | </Anchors> |
||
261 | <Scripts> |
||
262 | <OnClick> |
||
263 | Powa_ChangePagePrev() |
||
264 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
265 | </OnClick> |
||
266 | </Scripts> |
||
267 | <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/> |
||
268 | <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/> |
||
269 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> |
||
270 | </Button> |
||
271 | -- fleche droite |
||
272 | <Button name="powa_next"> |
||
273 | <Size> |
||
274 | <AbsDimension x="30" y="30"/> |
||
275 | </Size> |
||
276 | <Anchors> |
||
277 | <Anchor point="LEFT" relativeTo="powa_Text" relativePoint="RIGHT"> |
||
278 | <Offset> |
||
279 | <AbsDimension x="0" y="-2"/> |
||
280 | </Offset> |
||
281 | </Anchor> |
||
282 | </Anchors> |
||
283 | <Scripts> |
||
284 | <OnClick> |
||
285 | Powa_ChangePageNext() |
||
286 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
287 | </OnClick> |
||
288 | </Scripts> |
||
289 | <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/> |
||
290 | <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/> |
||
291 | <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> |
||
292 | </Button> |
||
293 | -- slider Texture |
||
294 | <Slider name="PowaBarAuraTextureSlider" inherits="PowaBarSliderTemplate"> |
||
295 | <Size> |
||
296 | <AbsDimension x="130" y="16"/> |
||
297 | </Size> |
||
298 | <Anchors> |
||
299 | <Anchor point="TOP" relativeTo="AuraTexture" relativePoint="BOTTOM"> |
||
300 | <Offset> |
||
301 | <AbsDimension x="0" y="-21" /> |
||
302 | </Offset> |
||
303 | </Anchor> |
||
304 | </Anchors> |
||
305 | <Scripts> |
||
306 | <OnLoad> |
||
307 | this.aide = PowaText.aideTexture; |
||
308 | this:SetMinMaxValues(1,20); |
||
309 | this:SetValue(1); |
||
310 | this:SetValueStep(1); |
||
311 | getglobal("PowaBarAuraTextureSliderText"):SetText(PowaText.nomTexture.." : 1"); |
||
312 | getglobal("PowaBarAuraTextureSliderLow"):SetText("1"); |
||
313 | getglobal("PowaBarAuraTextureSliderHigh"):SetText("20"); |
||
314 | </OnLoad> |
||
315 | <OnValueChanged> |
||
316 | PowaBarAuraTextureSliderChanged(); |
||
317 | </OnValueChanged> |
||
318 | </Scripts> |
||
319 | </Slider> |
||
320 | -- slider Alpha |
||
321 | <Slider name="PowaBarAuraAlphaSlider" inherits="PowaBarSliderTemplate"> |
||
322 | <Size> |
||
323 | <AbsDimension x="130" y="16"/> |
||
324 | </Size> |
||
325 | <Anchors> |
||
326 | <Anchor point="LEFT" relativeTo="AuraTexture" relativePoint="TOPRIGHT"> |
||
327 | <Offset> |
||
328 | <AbsDimension x="20" y="-22" /> |
||
329 | </Offset> |
||
330 | </Anchor> |
||
331 | </Anchors> |
||
332 | <Scripts> |
||
333 | <OnLoad> |
||
334 | this:SetMinMaxValues(0.1,1.0); |
||
335 | this:SetValue(1.0); |
||
336 | this:SetValueStep(0.05); |
||
337 | getglobal("PowaBarAuraAlphaSliderText"):SetText(PowaText.nomAlpha.." : 1.0"); |
||
338 | getglobal("PowaBarAuraAlphaSliderLow"):SetText("0.1"); |
||
339 | getglobal("PowaBarAuraAlphaSliderHigh"):SetText("1.0"); |
||
340 | </OnLoad> |
||
341 | <OnValueChanged> |
||
342 | PowaBarAuraAlphaSliderChanged(); |
||
343 | </OnValueChanged> |
||
344 | </Scripts> |
||
345 | </Slider> |
||
346 | -- slider coord X |
||
347 | <Slider name="PowaBarAuraCoordXSlider" inherits="PowaBarSliderTemplate"> |
||
348 | <Size> |
||
349 | <AbsDimension x="130" y="16"/> |
||
350 | </Size> |
||
351 | <Anchors> |
||
352 | <Anchor point="TOP" relativeTo="PowaBarAuraAlphaSlider" relativePoint="BOTTOM"> |
||
353 | <Offset> |
||
354 | <AbsDimension x="0" y="-22" /> |
||
355 | </Offset> |
||
356 | </Anchor> |
||
357 | </Anchors> |
||
358 | <Scripts> |
||
359 | <OnLoad> |
||
360 | this:SetMinMaxValues(-100,100); |
||
361 | this:SetValue(0); |
||
362 | this:SetValueStep(5); |
||
363 | getglobal("PowaBarAuraCoordXSliderText"):SetText(PowaText.nomPos.." X : 0"); |
||
364 | getglobal("PowaBarAuraCoordXSliderLow"):SetText("-100"); |
||
365 | getglobal("PowaBarAuraCoordXSliderHigh"):SetText("100"); |
||
366 | </OnLoad> |
||
367 | <OnValueChanged> |
||
368 | PowaBarAuraCoordXSliderChanged(); |
||
369 | </OnValueChanged> |
||
370 | </Scripts> |
||
371 | </Slider> |
||
372 | -- slider coord Y |
||
373 | <Slider name="PowaBarAuraCoordSlider" inherits="PowaBarSliderTemplate"> |
||
374 | <Size> |
||
375 | <AbsDimension x="130" y="16"/> |
||
376 | </Size> |
||
377 | <Anchors> |
||
378 | <Anchor point="TOP" relativeTo="PowaBarAuraCoordXSlider" relativePoint="BOTTOM"> |
||
379 | <Offset> |
||
380 | <AbsDimension x="0" y="-22" /> |
||
381 | </Offset> |
||
382 | </Anchor> |
||
383 | </Anchors> |
||
384 | <Scripts> |
||
385 | <OnLoad> |
||
386 | this:SetMinMaxValues(-200,100); |
||
387 | this:SetValue(-30); |
||
388 | this:SetValueStep(5); |
||
389 | getglobal("PowaBarAuraCoordSliderText"):SetText(PowaText.nomPos.." Y : -30"); |
||
390 | getglobal("PowaBarAuraCoordSliderLow"):SetText("-200"); |
||
391 | getglobal("PowaBarAuraCoordSliderHigh"):SetText("100"); |
||
392 | </OnLoad> |
||
393 | <OnValueChanged> |
||
394 | PowaBarAuraCoordSliderChanged(); |
||
395 | </OnValueChanged> |
||
396 | </Scripts> |
||
397 | </Slider> |
||
398 | -- slider taille |
||
399 | <Slider name="PowaBarAuraSizeSlider" inherits="PowaBarSliderTemplate"> |
||
400 | <Size> |
||
401 | <AbsDimension x="130" y="16"/> |
||
402 | </Size> |
||
403 | <Anchors> |
||
404 | <Anchor point="TOP" relativeTo="PowaBarAuraCoordSlider" relativePoint="BOTTOM"> |
||
405 | <Offset> |
||
406 | <AbsDimension x="0" y="-22" /> |
||
407 | </Offset> |
||
408 | </Anchor> |
||
409 | </Anchors> |
||
410 | <Scripts> |
||
411 | <OnLoad> |
||
412 | this:SetMinMaxValues(0.1,2.0); |
||
413 | this:SetValue(1.0); |
||
414 | this:SetValueStep(0.05); |
||
415 | getglobal("PowaBarAuraSizeSliderText"):SetText(PowaText.nomTaille.." : 1.0"); |
||
416 | getglobal("PowaBarAuraSizeSliderLow"):SetText("0.1"); |
||
417 | getglobal("PowaBarAuraSizeSliderHigh"):SetText("2.0"); |
||
418 | </OnLoad> |
||
419 | <OnValueChanged> |
||
420 | PowaBarAuraSizeSliderChanged(); |
||
421 | </OnValueChanged> |
||
422 | </Scripts> |
||
423 | </Slider> |
||
424 | -- slider Symetrie |
||
425 | <Slider name="PowaBarAuraSymSlider" inherits="PowaBarSliderTemplate"> |
||
426 | <Size> |
||
427 | <AbsDimension x="130" y="16"/> |
||
428 | </Size> |
||
429 | <Anchors> |
||
430 | <Anchor point="TOP" relativeTo="PowaBarAuraTextureSlider" relativePoint="BOTTOM"> |
||
431 | <Offset> |
||
432 | <AbsDimension x="0" y="-22" /> |
||
433 | </Offset> |
||
434 | </Anchor> |
||
435 | </Anchors> |
||
436 | <Scripts> |
||
437 | <OnLoad> |
||
438 | this:SetMinMaxValues(0,3); |
||
439 | this:SetValue(0); |
||
440 | this:SetValueStep(1); |
||
441 | getglobal("PowaBarAuraSymSliderText"):SetText(PowaText.nomSymetrie.." : "..PowaText.aucune); |
||
442 | getglobal("PowaBarAuraSymSliderLow"):SetText(PowaText.aucune); |
||
443 | getglobal("PowaBarAuraSymSliderHigh"):SetText("XY"); |
||
444 | </OnLoad> |
||
445 | <OnValueChanged> |
||
446 | PowaBarAuraSymSliderChanged(); |
||
447 | </OnValueChanged> |
||
448 | </Scripts> |
||
449 | </Slider> |
||
450 | -- slider Anim1 |
||
451 | <Slider name="PowaBarAuraAnim1Slider" inherits="PowaBarSliderTemplate"> |
||
452 | <Size> |
||
453 | <AbsDimension x="130" y="16"/> |
||
454 | </Size> |
||
455 | <Anchors> |
||
456 | <Anchor point="TOP" relativeTo="PowaBarAuraSymSlider" relativePoint="BOTTOM"> |
||
457 | <Offset> |
||
458 | <AbsDimension x="0" y="-22" /> |
||
459 | </Offset> |
||
460 | </Anchor> |
||
461 | </Anchors> |
||
462 | <Scripts> |
||
463 | <OnLoad> |
||
464 | this.aide = PowaText.aideAnim1; |
||
465 | this:SetMinMaxValues(1,9); |
||
466 | this:SetValue(1); |
||
467 | this:SetValueStep(1); |
||
468 | getglobal("PowaBarAuraAnim1SliderText"):SetText(PowaText.nomAnim2.." : 1"); |
||
469 | getglobal("PowaBarAuraAnim1SliderLow"):SetText("1"); |
||
470 | getglobal("PowaBarAuraAnim1SliderHigh"):SetText("9"); |
||
471 | </OnLoad> |
||
472 | <OnValueChanged> |
||
473 | PowaBarAuraAnim1SliderChanged(); |
||
474 | </OnValueChanged> |
||
475 | </Scripts> |
||
476 | </Slider> |
||
477 | -- slider Anim Speed |
||
478 | <Slider name="PowaBarAuraAnimSpeedSlider" inherits="PowaBarSliderTemplate"> |
||
479 | <Size> |
||
480 | <AbsDimension x="130" y="16"/> |
||
481 | </Size> |
||
482 | <Anchors> |
||
483 | <Anchor point="TOP" relativeTo="PowaBarAuraAnim1Slider" relativePoint="BOTTOM"> |
||
484 | <Offset> |
||
485 | <AbsDimension x="0" y="-22" /> |
||
486 | </Offset> |
||
487 | </Anchor> |
||
488 | </Anchors> |
||
489 | <Scripts> |
||
490 | <OnLoad> |
||
491 | this:SetMinMaxValues(0.50,2.00); |
||
492 | this:SetValue(1.0); |
||
493 | this:SetValueStep(0.05); |
||
494 | getglobal("PowaBarAuraAnimSpeedSliderText"):SetText(PowaText.nomSpeed.." : 100%"); |
||
495 | getglobal("PowaBarAuraAnimSpeedSliderLow"):SetText("50"); |
||
496 | getglobal("PowaBarAuraAnimSpeedSliderHigh"):SetText("200"); |
||
497 | </OnLoad> |
||
498 | <OnValueChanged> |
||
499 | PowaBarAuraAnimSpeedSliderChanged(); |
||
500 | </OnValueChanged> |
||
501 | </Scripts> |
||
502 | </Slider> |
||
503 | -- slider Deformation |
||
504 | <Slider name="PowaBarAuraDeformSlider" inherits="PowaBarSliderTemplate"> |
||
505 | <Size> |
||
506 | <AbsDimension x="130" y="16"/> |
||
507 | </Size> |
||
508 | <Anchors> |
||
509 | <Anchor point="TOP" relativeTo="PowaBarAuraSizeSlider" relativePoint="BOTTOM"> |
||
510 | <Offset> |
||
511 | <AbsDimension x="0" y="-22" /> |
||
512 | </Offset> |
||
513 | </Anchor> |
||
514 | </Anchors> |
||
515 | <Scripts> |
||
516 | <OnLoad> |
||
517 | this.aide = PowaText.aideDeform; |
||
518 | this:SetMinMaxValues(0.5,1.5); |
||
519 | this:SetValue(1); |
||
520 | this:SetValueStep(0.05); |
||
521 | getglobal("PowaBarAuraDeformSliderText"):SetText(PowaText.nomDeform.." : 1"); |
||
522 | getglobal("PowaBarAuraDeformSliderLow"):SetText(PowaText.largeur); |
||
523 | getglobal("PowaBarAuraDeformSliderHigh"):SetText(PowaText.hauteur); |
||
524 | </OnLoad> |
||
525 | <OnValueChanged> |
||
526 | PowaBarAuraDeformSliderChanged(); |
||
527 | </OnValueChanged> |
||
528 | </Scripts> |
||
529 | </Slider> |
||
530 | -- slider Anim2 |
||
531 | <Slider name="PowaBarAuraAnim2Slider" inherits="PowaBarSliderTemplate"> |
||
532 | <Size> |
||
533 | <AbsDimension x="130" y="16"/> |
||
534 | </Size> |
||
535 | <Anchors> |
||
536 | <Anchor point="TOP" relativeTo="PowaBarAuraDeformSlider" relativePoint="BOTTOM"> |
||
537 | <Offset> |
||
538 | <AbsDimension x="0" y="-22" /> |
||
539 | </Offset> |
||
540 | </Anchor> |
||
541 | </Anchors> |
||
542 | <Scripts> |
||
543 | <OnLoad> |
||
544 | this.aide = PowaText.aideAnim2; |
||
545 | this:SetMinMaxValues(0,9); |
||
546 | this:SetValue(0); |
||
547 | this:SetValueStep(1); |
||
548 | getglobal("PowaBarAuraAnim2SliderText"):SetText(PowaText.nomAnim2.." : 0"); |
||
549 | getglobal("PowaBarAuraAnim2SliderLow"):SetText(PowaText.aucune); |
||
550 | getglobal("PowaBarAuraAnim2SliderHigh"):SetText("9"); |
||
551 | </OnLoad> |
||
552 | <OnValueChanged> |
||
553 | PowaBarAuraAnim2SliderChanged(); |
||
554 | </OnValueChanged> |
||
555 | </Scripts> |
||
556 | </Slider> |
||
557 | -- slider Anim de depart (cachee) |
||
558 | <Slider name="PowaBarAuraAnimBeginSlider" inherits="PowaBarSliderTemplate" hidden="true"> |
||
559 | <Size> |
||
560 | <AbsDimension x="130" y="16"/> |
||
561 | </Size> |
||
562 | <Anchors> |
||
563 | <Anchor point="TOP" relativeTo="PowaBarAuraAnim2Slider" relativePoint="BOTTOM"> |
||
564 | <Offset> |
||
565 | <AbsDimension x="0" y="-22" /> |
||
566 | </Offset> |
||
567 | </Anchor> |
||
568 | </Anchors> |
||
569 | <Scripts> |
||
570 | <OnLoad> |
||
571 | -- this.aide = PowaText.aideAnim2; |
||
572 | this:SetMinMaxValues(0,10); |
||
573 | this:SetValue(0); |
||
574 | this:SetValueStep(1); |
||
575 | getglobal("PowaBarAuraAnimBeginSliderText"):SetText(PowaText.nomBegin.." : 0"); |
||
576 | getglobal("PowaBarAuraAnimBeginSliderLow"):SetText(PowaText.aucune); |
||
577 | getglobal("PowaBarAuraAnimBeginSliderHigh"):SetText("10"); |
||
578 | </OnLoad> |
||
579 | <OnValueChanged> |
||
580 | -- PowaBarAuraAnimBeginSliderChanged(); |
||
581 | </OnValueChanged> |
||
582 | </Scripts> |
||
583 | </Slider> |
||
584 | -- slider duree |
||
585 | <Slider name="PowaBarAuraDurationSlider" inherits="PowaBarSliderTemplate"> |
||
586 | <Size> |
||
587 | <AbsDimension x="130" y="16"/> |
||
588 | </Size> |
||
589 | <Anchors> |
||
590 | <Anchor point="TOP" relativeTo="PowaBarAuraAnim2Slider" relativePoint="BOTTOM"> |
||
591 | <Offset> |
||
592 | <AbsDimension x="0" y="-22" /> |
||
593 | </Offset> |
||
594 | </Anchor> |
||
595 | </Anchors> |
||
596 | <Scripts> |
||
597 | <OnLoad> |
||
598 | this.aide = PowaText.aideDuration; |
||
599 | this:SetMinMaxValues(0,30); |
||
600 | this:SetValue(0); |
||
601 | this:SetValueStep(1); |
||
602 | getglobal("PowaBarAuraDurationSliderText"):SetText(PowaText.nomDuration.." : 0 sec"); |
||
603 | getglobal("PowaBarAuraDurationSliderLow"):SetText(PowaText.aucune); |
||
604 | getglobal("PowaBarAuraDurationSliderHigh"):SetText("30"); |
||
605 | </OnLoad> |
||
606 | <OnValueChanged> |
||
607 | PowaBarAuraAnimDurationSliderChanged(); |
||
608 | </OnValueChanged> |
||
609 | </Scripts> |
||
610 | </Slider> |
||
611 | -- COLOR PICKER |
||
612 | <Button name="PowaColor"> |
||
613 | <Size> |
||
614 | <AbsDimension x="16" y="16"/> |
||
615 | </Size> |
||
616 | <Anchors> |
||
617 | <Anchor point="TOPLEFT" relativeTo="AuraTexture" relativePoint="BOTTOMLEFT"> |
||
618 | <Offset> |
||
619 | <AbsDimension x="-10" y="4"/> |
||
620 | </Offset> |
||
621 | </Anchor> |
||
622 | </Anchors> |
||
623 | <Layers> |
||
624 | <Layer level="BACKGROUND"> |
||
625 | <Texture name="$parent_SwatchBg"> |
||
626 | <Size> |
||
627 | <AbsDimension x="14" y="14"/> |
||
628 | </Size> |
||
629 | <Anchors> |
||
630 | <Anchor point="CENTER"> |
||
631 | <Offset> |
||
632 | <AbsDimension x="0" y="0"/> |
||
633 | </Offset> |
||
634 | </Anchor> |
||
635 | </Anchors> |
||
636 | <Color r="1.0" g="1.0" b="1.0"/> |
||
637 | </Texture> |
||
638 | </Layer> |
||
639 | </Layers> |
||
640 | <Scripts> |
||
641 | <OnLoad> |
||
642 | getglobal(this:GetName().."_SwatchBg").r = 1.0; |
||
643 | getglobal(this:GetName().."_SwatchBg").g = 1.0; |
||
644 | getglobal(this:GetName().."_SwatchBg").b = 1.0; |
||
645 | </OnLoad> |
||
646 | <OnClick> |
||
647 | Powa_OpenColorPicker(); |
||
648 | </OnClick> |
||
649 | <OnEnter> |
||
650 | getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
651 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
652 | GameTooltip:SetText(PowaText.aideColor, nil, nil, nil, nil, 1); |
||
653 | </OnEnter> |
||
654 | <OnLeave> |
||
655 | getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
656 | GameTooltip:Hide(); |
||
657 | </OnLeave> |
||
658 | </Scripts> |
||
659 | <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
660 | </Button> |
||
661 | -- BUFF NAME |
||
662 | <EditBox name="PowaBarBuffName" autoFocus="false" inherits="InputBoxTemplate"> |
||
663 | <Size> |
||
664 | <AbsDimension x="270" y="16"/> |
||
665 | </Size> |
||
666 | <Anchors> |
||
667 | <Anchor point="TOP" relativeTo="PowaBarConfigFrameEditor" relativePoint="BOTTOM"> |
||
668 | <Offset> |
||
669 | <AbsDimension x="2" y="-20"/> |
||
670 | </Offset> |
||
671 | </Anchor> |
||
672 | </Anchors> |
||
673 | <FontString inherits="ChatFontNormal" bytes="200"/> |
||
674 | <Scripts> |
||
675 | <OnLoad> |
||
676 | this:SetMaxLetters(200) |
||
677 | this.aide = PowaText.aideBuff; |
||
678 | </OnLoad> |
||
679 | <OnEnterPressed> |
||
680 | this:ClearFocus() |
||
681 | </OnEnterPressed> |
||
682 | <OnTextChanged> |
||
683 | PowaTextChanged() |
||
684 | </OnTextChanged> |
||
685 | <OnEnter> |
||
686 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
687 | GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1); |
||
688 | </OnEnter> |
||
689 | <OnLeave> |
||
690 | GameTooltip:Hide(); |
||
691 | </OnLeave> |
||
692 | </Scripts> |
||
693 | <Layers> |
||
694 | <Layer level="OVERLAY"> |
||
695 | <FontString name="PowaBarBuffNameText" inherits="GameFontNormalSmall" justifyH="LEFT" text=""> |
||
696 | <Size> |
||
697 | <AbsDimension x="120" y="20"/> |
||
698 | </Size> |
||
699 | <Anchors> |
||
700 | <Anchor point="BOTTOMLEFT" relativeTo="PowaBarBuffName" relativePoint="TOPLEFT"> |
||
701 | <Offset> |
||
702 | <AbsDimension x="0" y="0"/> |
||
703 | </Offset> |
||
704 | </Anchor> |
||
705 | </Anchors> |
||
706 | </FontString> |
||
707 | </Layer> |
||
708 | </Layers> |
||
709 | </EditBox> |
||
710 | |||
711 | <CheckButton name="PowaDebuffButton" inherits="PowaCheckTemplate"> |
||
712 | <Size> |
||
713 | <AbsDimension x="25" y="25"/> |
||
714 | </Size> |
||
715 | <Anchors> |
||
716 | <Anchor point="TOPLEFT" relativeTo="PowaBarBuffName" relativePoint="BOTTOMLEFT"> |
||
717 | <Offset> |
||
718 | <AbsDimension x="-7" y="-5"/> |
||
719 | </Offset> |
||
720 | </Anchor> |
||
721 | </Anchors> |
||
722 | <Scripts> |
||
723 | <OnLoad> |
||
724 | this.tooltipText = PowaText.aideDebuff; |
||
725 | getglobal("PowaDebuffButtonText"):SetText(PowaText.nomCheckDebuff); |
||
726 | </OnLoad> |
||
727 | <OnClick> |
||
728 | PowaDebuffChecked(); |
||
729 | </OnClick> |
||
730 | </Scripts> |
||
731 | </CheckButton> |
||
732 | |||
733 | <CheckButton name="PowaInverseButton" inherits="PowaCheckTemplate"> |
||
734 | <Size> |
||
735 | <AbsDimension x="25" y="25"/> |
||
736 | </Size> |
||
737 | <Anchors> |
||
738 | <Anchor point="TOPLEFT" relativeTo="PowaDebuffButton" relativePoint="BOTTOMLEFT"> |
||
739 | <Offset> |
||
740 | <AbsDimension x="0" y="0"/> |
||
741 | </Offset> |
||
742 | </Anchor> |
||
743 | </Anchors> |
||
744 | <Scripts> |
||
745 | <OnLoad> |
||
746 | this.tooltipText = PowaText.aideInverse; |
||
747 | getglobal("PowaInverseButtonText"):SetText(PowaText.nomCheckInverse); |
||
748 | </OnLoad> |
||
749 | <OnClick> |
||
750 | PowaInverseChecked(); |
||
751 | </OnClick> |
||
752 | </Scripts> |
||
753 | </CheckButton> |
||
754 | |||
755 | <CheckButton name="PowaShowTimerButton" inherits="PowaCheckTemplate"> |
||
756 | <Size> |
||
757 | <AbsDimension x="25" y="25"/> |
||
758 | </Size> |
||
759 | <Anchors> |
||
760 | <Anchor point="TOPLEFT" relativeTo="PowaInverseButton" relativePoint="BOTTOMLEFT"> |
||
761 | <Offset> |
||
762 | <AbsDimension x="0" y="0"/> |
||
763 | </Offset> |
||
764 | </Anchor> |
||
765 | </Anchors> |
||
766 | <Scripts> |
||
767 | <OnLoad> |
||
768 | this.tooltipText = PowaText.aideShowTimer; |
||
769 | getglobal("PowaShowTimerButtonText"):SetText(PowaText.nomCheckShowTimer); |
||
770 | </OnLoad> |
||
771 | <OnClick> |
||
772 | PowaShowTimerChecked(); |
||
773 | </OnClick> |
||
774 | </Scripts> |
||
775 | </CheckButton> |
||
776 | |||
777 | <CheckButton name="PowaDebuffTypeButton" inherits="PowaCheckTemplate"> |
||
778 | <Size> |
||
779 | <AbsDimension x="25" y="25"/> |
||
780 | </Size> |
||
781 | <Anchors> |
||
782 | <Anchor point="LEFT" relativeTo="PowaDebuffButton" relativePoint="RIGHT"> |
||
783 | <Offset> |
||
784 | <AbsDimension x="60" y="0"/> |
||
785 | </Offset> |
||
786 | </Anchor> |
||
787 | </Anchors> |
||
788 | <Scripts> |
||
789 | <OnLoad> |
||
790 | this.tooltipText = PowaText.aideDebuffType; |
||
791 | getglobal("PowaDebuffTypeButtonText"):SetText(PowaText.nomCheckDebuffType); |
||
792 | </OnLoad> |
||
793 | <OnClick> |
||
794 | PowaDebuffTypeChecked(); |
||
795 | </OnClick> |
||
796 | </Scripts> |
||
797 | </CheckButton> |
||
798 | |||
799 | </Frames> |
||
800 | |||
801 | </Frame> |
||
802 | |||
803 | -- Tab 1 |
||
804 | <Button name="PowaTab1" inherits="TabButtonTemplate" text="Effect Editor"> |
||
805 | <Anchors> |
||
806 | <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeTo="PowaBarConfigFrameEditor"> |
||
807 | <Offset> |
||
808 | <AbsDimension x="5" y="-2" /> |
||
809 | </Offset> |
||
810 | </Anchor> |
||
811 | </Anchors> |
||
812 | <Scripts> |
||
813 | <OnClick> |
||
814 | PanelTemplates_SelectTab(this); |
||
815 | PanelTemplates_DeselectTab(PowaTab2); |
||
816 | getglobal("PowaBarConfigFrameOptions"):Hide(); |
||
817 | getglobal("PowaBarConfigFrameEditor"):Show(); |
||
818 | </OnClick> |
||
819 | <OnLoad> |
||
820 | getglobal("PowaTab1Text"):SetText(PowaText.nomEffectEditor); |
||
821 | PanelTemplates_SelectTab(this); |
||
822 | PanelTemplates_TabResize(0, this); |
||
823 | getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31); |
||
824 | </OnLoad> |
||
825 | </Scripts> |
||
826 | </Button> |
||
827 | -- Tab 2 |
||
828 | <Button name="PowaTab2" inherits="TabButtonTemplate" text="Advanced Options"> |
||
829 | <Anchors> |
||
830 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="PowaTab1"> |
||
831 | <Offset> |
||
832 | <AbsDimension x="0" y="0" /> |
||
833 | </Offset> |
||
834 | </Anchor> |
||
835 | </Anchors> |
||
836 | <Scripts> |
||
837 | <OnClick> |
||
838 | PanelTemplates_SelectTab(this); |
||
839 | PanelTemplates_DeselectTab(PowaTab1); |
||
840 | getglobal("PowaBarConfigFrameOptions"):Show(); |
||
841 | getglobal("PowaBarConfigFrameEditor"):Hide(); |
||
842 | Powa_UpdateOptions(); |
||
843 | </OnClick> |
||
844 | <OnLoad> |
||
845 | getglobal("PowaTab2Text"):SetText(PowaText.nomAdvOptions); |
||
846 | PanelTemplates_DeselectTab(PowaTab2); |
||
847 | PanelTemplates_TabResize(0, this); |
||
848 | getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31); |
||
849 | </OnLoad> |
||
850 | </Scripts> |
||
851 | </Button> |
||
852 | |||
853 | -- --------------------------------------------------------------------------------------------------------------------------------------- |
||
854 | |||
855 | -- rectangle noir ADV OPTIONS |
||
856 | <Frame name="PowaBarConfigFrameOptions" hidden="true"> |
||
857 | <Size> |
||
858 | <AbsDimension x="290" y="250"/> |
||
859 | </Size> |
||
860 | <Anchors> |
||
861 | <Anchor point="TOP"> |
||
862 | <Offset> |
||
863 | <AbsDimension x="0" y="-45"/> |
||
864 | </Offset> |
||
865 | </Anchor> |
||
866 | </Anchors> |
||
867 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false"> |
||
868 | <EdgeSize> |
||
869 | <AbsValue val="12"/> |
||
870 | </EdgeSize> |
||
871 | <BackgroundInsets> |
||
872 | <AbsInset left="2" right="2" top="2" bottom="2"/> |
||
873 | </BackgroundInsets> |
||
874 | </Backdrop> |
||
875 | <Scripts> |
||
876 | <OnLoad> |
||
877 | this:SetBackdropBorderColor(0.7, 0.7, 0.7); |
||
878 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
879 | </OnLoad> |
||
880 | </Scripts> |
||
881 | <Layers> |
||
882 | <Layer> |
||
883 | <FontString name="PowaTimerBuffText" inherits="GameFontGreen" text="Buff Timer"> |
||
884 | <Size> |
||
885 | <AbsDimension x="130" y="16" /> |
||
886 | </Size> |
||
887 | <Anchors> |
||
888 | <Anchor point="TOPLEFT"> |
||
889 | <Offset> |
||
890 | <AbsDimension x="10" y="-15" /> |
||
891 | </Offset> |
||
892 | </Anchor> |
||
893 | </Anchors> |
||
894 | <FontHeight> |
||
895 | <AbsValue val="18" /> |
||
896 | </FontHeight> |
||
897 | </FontString> |
||
898 | <FontString name="PowaTimerDebuffText" inherits="GameFontRed" text="Debuff Timer"> |
||
899 | <Size> |
||
900 | <AbsDimension x="130" y="16" /> |
||
901 | </Size> |
||
902 | <Anchors> |
||
903 | <Anchor point="TOPRIGHT"> |
||
904 | <Offset> |
||
905 | <AbsDimension x="-10" y="-15" /> |
||
906 | </Offset> |
||
907 | </Anchor> |
||
908 | </Anchors> |
||
909 | <FontHeight> |
||
910 | <AbsValue val="18" /> |
||
911 | </FontHeight> |
||
912 | </FontString> |
||
913 | <FontString name="PowaAuthorText" inherits="GameFontDisable" text="Created by -Sinsthar- [Ziya / Tiven, on Kirin Tor (FR)]"> |
||
914 | <Size> |
||
915 | <AbsDimension x="180" y="30" /> |
||
916 | </Size> |
||
917 | <Anchors> |
||
918 | <Anchor point="BOTTOM"> |
||
919 | <Offset> |
||
920 | <AbsDimension x="0" y="-172" /> |
||
921 | </Offset> |
||
922 | </Anchor> |
||
923 | </Anchors> |
||
924 | <FontHeight> |
||
925 | <AbsValue val="15" /> |
||
926 | </FontHeight> |
||
927 | </FontString> |
||
928 | </Layer> |
||
929 | </Layers> |
||
930 | <Frames> |
||
931 | -- slider Alpha |
||
932 | <Slider name="PowaTimerAlphaSlider" inherits="PowaBarSliderTemplate"> |
||
933 | <Size> |
||
934 | <AbsDimension x="130" y="16"/> |
||
935 | </Size> |
||
936 | <Anchors> |
||
937 | <Anchor point="TOPLEFT" relativeTo="PowaBarConfigFrameOptions" relativePoint="TOPLEFT"> |
||
938 | <Offset> |
||
939 | <AbsDimension x="10" y="-50" /> |
||
940 | </Offset> |
||
941 | </Anchor> |
||
942 | </Anchors> |
||
943 | <Scripts> |
||
944 | <OnLoad> |
||
945 | this:SetMinMaxValues(0.1,1.0); |
||
946 | this:SetValue(1.0); |
||
947 | this:SetValueStep(0.05); |
||
948 | getglobal("PowaTimerAlphaSliderText"):SetText(PowaText.nomAlpha.." : 1.0"); |
||
949 | getglobal("PowaTimerAlphaSliderLow"):SetText("0.1"); |
||
950 | getglobal("PowaTimerAlphaSliderHigh"):SetText("1.0"); |
||
951 | </OnLoad> |
||
952 | <OnValueChanged> |
||
953 | PowaTimerAlphaSliderChanged(); |
||
954 | </OnValueChanged> |
||
955 | </Scripts> |
||
956 | </Slider> |
||
957 | -- slider coord X |
||
958 | <Slider name="PowaTimerCoordXSlider" inherits="PowaBarSliderTemplate"> |
||
959 | <Size> |
||
960 | <AbsDimension x="130" y="16"/> |
||
961 | </Size> |
||
962 | <Anchors> |
||
963 | <Anchor point="TOP" relativeTo="PowaTimerAlphaSlider" relativePoint="BOTTOM"> |
||
964 | <Offset> |
||
965 | <AbsDimension x="0" y="-27" /> |
||
966 | </Offset> |
||
967 | </Anchor> |
||
968 | </Anchors> |
||
969 | <Scripts> |
||
970 | <OnLoad> |
||
971 | this:SetMinMaxValues(-150,150); |
||
972 | this:SetValue(0); |
||
973 | this:SetValueStep(5); |
||
974 | getglobal("PowaTimerCoordXSliderText"):SetText(PowaText.nomPos.." X : 0"); |
||
975 | getglobal("PowaTimerCoordXSliderLow"):SetText("-150"); |
||
976 | getglobal("PowaTimerCoordXSliderHigh"):SetText("150"); |
||
977 | </OnLoad> |
||
978 | <OnValueChanged> |
||
979 | PowaTimerCoordXSliderChanged(); |
||
980 | </OnValueChanged> |
||
981 | </Scripts> |
||
982 | </Slider> |
||
983 | -- slider coord Y |
||
984 | <Slider name="PowaTimerCoordSlider" inherits="PowaBarSliderTemplate"> |
||
985 | <Size> |
||
986 | <AbsDimension x="130" y="16"/> |
||
987 | </Size> |
||
988 | <Anchors> |
||
989 | <Anchor point="TOP" relativeTo="PowaTimerCoordXSlider" relativePoint="BOTTOM"> |
||
990 | <Offset> |
||
991 | <AbsDimension x="0" y="-27" /> |
||
992 | </Offset> |
||
993 | </Anchor> |
||
994 | </Anchors> |
||
995 | <Scripts> |
||
996 | <OnLoad> |
||
997 | this:SetMinMaxValues(-200,100); |
||
998 | this:SetValue(0); |
||
999 | this:SetValueStep(5); |
||
1000 | getglobal("PowaTimerCoordSliderText"):SetText(PowaText.nomPos.." Y : 0"); |
||
1001 | getglobal("PowaTimerCoordSliderLow"):SetText("-200"); |
||
1002 | getglobal("PowaTimerCoordSliderHigh"):SetText("100"); |
||
1003 | </OnLoad> |
||
1004 | <OnValueChanged> |
||
1005 | PowaTimerCoordSliderChanged(); |
||
1006 | </OnValueChanged> |
||
1007 | </Scripts> |
||
1008 | </Slider> |
||
1009 | -- slider taille |
||
1010 | <Slider name="PowaTimerSizeSlider" inherits="PowaBarSliderTemplate"> |
||
1011 | <Size> |
||
1012 | <AbsDimension x="130" y="16"/> |
||
1013 | </Size> |
||
1014 | <Anchors> |
||
1015 | <Anchor point="TOP" relativeTo="PowaTimerCoordSlider" relativePoint="BOTTOM"> |
||
1016 | <Offset> |
||
1017 | <AbsDimension x="0" y="-27" /> |
||
1018 | </Offset> |
||
1019 | </Anchor> |
||
1020 | </Anchors> |
||
1021 | <Scripts> |
||
1022 | <OnLoad> |
||
1023 | this:SetMinMaxValues(0.5,2.0); |
||
1024 | this:SetValue(1.0); |
||
1025 | this:SetValueStep(0.05); |
||
1026 | getglobal("PowaTimerSizeSliderText"):SetText(PowaText.nomTaille.." : 1.0"); |
||
1027 | getglobal("PowaTimerSizeSliderLow"):SetText("0.5"); |
||
1028 | getglobal("PowaTimerSizeSliderHigh"):SetText("2.0"); |
||
1029 | </OnLoad> |
||
1030 | <OnValueChanged> |
||
1031 | PowaTimerSizeSliderChanged(); |
||
1032 | </OnValueChanged> |
||
1033 | </Scripts> |
||
1034 | </Slider> |
||
1035 | -- afficher ou pas les centiemes |
||
1036 | <CheckButton name="PowaBuffTimerCentsButton" inherits="PowaCheckTemplate"> |
||
1037 | <Size> |
||
1038 | <AbsDimension x="25" y="25"/> |
||
1039 | </Size> |
||
1040 | <Anchors> |
||
1041 | <Anchor point="TOPLEFT" relativeTo="PowaTimerSizeSlider" relativePoint="BOTTOMLEFT"> |
||
1042 | <Offset> |
||
1043 | <AbsDimension x="0" y="-15"/> |
||
1044 | </Offset> |
||
1045 | </Anchor> |
||
1046 | </Anchors> |
||
1047 | <Scripts> |
||
1048 | <OnLoad> |
||
1049 | getglobal("PowaBuffTimerCentsButtonText"):SetText(PowaText.nomCentiemes); |
||
1050 | </OnLoad> |
||
1051 | <OnClick> |
||
1052 | PowaBuffTimerCentsChecked(); |
||
1053 | </OnClick> |
||
1054 | </Scripts> |
||
1055 | </CheckButton> |
||
1056 | -- --------------------------------------------------------------------------------------------- |
||
1057 | -- slider Alpha 2 |
||
1058 | <Slider name="PowaTimer2AlphaSlider" inherits="PowaBarSliderTemplate"> |
||
1059 | <Size> |
||
1060 | <AbsDimension x="130" y="16"/> |
||
1061 | </Size> |
||
1062 | <Anchors> |
||
1063 | <Anchor point="TOPRIGHT" relativeTo="PowaBarConfigFrameOptions" relativePoint="TOPRIGHT"> |
||
1064 | <Offset> |
||
1065 | <AbsDimension x="-10" y="-50" /> |
||
1066 | </Offset> |
||
1067 | </Anchor> |
||
1068 | </Anchors> |
||
1069 | <Scripts> |
||
1070 | <OnLoad> |
||
1071 | this:SetMinMaxValues(0.1,1.0); |
||
1072 | this:SetValue(1.0); |
||
1073 | this:SetValueStep(0.05); |
||
1074 | getglobal("PowaTimer2AlphaSliderText"):SetText(PowaText.nomAlpha.." : 1.0"); |
||
1075 | getglobal("PowaTimer2AlphaSliderLow"):SetText("0.1"); |
||
1076 | getglobal("PowaTimer2AlphaSliderHigh"):SetText("1.0"); |
||
1077 | </OnLoad> |
||
1078 | <OnValueChanged> |
||
1079 | PowaTimer2AlphaSliderChanged(); |
||
1080 | </OnValueChanged> |
||
1081 | </Scripts> |
||
1082 | </Slider> |
||
1083 | -- slider coord X 2 |
||
1084 | <Slider name="PowaTimer2CoordXSlider" inherits="PowaBarSliderTemplate"> |
||
1085 | <Size> |
||
1086 | <AbsDimension x="130" y="16"/> |
||
1087 | </Size> |
||
1088 | <Anchors> |
||
1089 | <Anchor point="TOP" relativeTo="PowaTimer2AlphaSlider" relativePoint="BOTTOM"> |
||
1090 | <Offset> |
||
1091 | <AbsDimension x="0" y="-27" /> |
||
1092 | </Offset> |
||
1093 | </Anchor> |
||
1094 | </Anchors> |
||
1095 | <Scripts> |
||
1096 | <OnLoad> |
||
1097 | this:SetMinMaxValues(-150,150); |
||
1098 | this:SetValue(0); |
||
1099 | this:SetValueStep(5); |
||
1100 | getglobal("PowaTimer2CoordXSliderText"):SetText(PowaText.nomPos.." X : 0"); |
||
1101 | getglobal("PowaTimer2CoordXSliderLow"):SetText("-150"); |
||
1102 | getglobal("PowaTimer2CoordXSliderHigh"):SetText("150"); |
||
1103 | </OnLoad> |
||
1104 | <OnValueChanged> |
||
1105 | PowaTimer2CoordXSliderChanged(); |
||
1106 | </OnValueChanged> |
||
1107 | </Scripts> |
||
1108 | </Slider> |
||
1109 | -- slider coord Y |
||
1110 | <Slider name="PowaTimer2CoordSlider" inherits="PowaBarSliderTemplate"> |
||
1111 | <Size> |
||
1112 | <AbsDimension x="130" y="16"/> |
||
1113 | </Size> |
||
1114 | <Anchors> |
||
1115 | <Anchor point="TOP" relativeTo="PowaTimer2CoordXSlider" relativePoint="BOTTOM"> |
||
1116 | <Offset> |
||
1117 | <AbsDimension x="0" y="-27" /> |
||
1118 | </Offset> |
||
1119 | </Anchor> |
||
1120 | </Anchors> |
||
1121 | <Scripts> |
||
1122 | <OnLoad> |
||
1123 | this:SetMinMaxValues(-200,100); |
||
1124 | this:SetValue(0); |
||
1125 | this:SetValueStep(5); |
||
1126 | getglobal("PowaTimer2CoordSliderText"):SetText(PowaText.nomPos.." Y : 0"); |
||
1127 | getglobal("PowaTimer2CoordSliderLow"):SetText("-200"); |
||
1128 | getglobal("PowaTimer2CoordSliderHigh"):SetText("100"); |
||
1129 | </OnLoad> |
||
1130 | <OnValueChanged> |
||
1131 | PowaTimer2CoordSliderChanged(); |
||
1132 | </OnValueChanged> |
||
1133 | </Scripts> |
||
1134 | </Slider> |
||
1135 | -- slider taille |
||
1136 | <Slider name="PowaTimer2SizeSlider" inherits="PowaBarSliderTemplate"> |
||
1137 | <Size> |
||
1138 | <AbsDimension x="130" y="16"/> |
||
1139 | </Size> |
||
1140 | <Anchors> |
||
1141 | <Anchor point="TOP" relativeTo="PowaTimer2CoordSlider" relativePoint="BOTTOM"> |
||
1142 | <Offset> |
||
1143 | <AbsDimension x="0" y="-27" /> |
||
1144 | </Offset> |
||
1145 | </Anchor> |
||
1146 | </Anchors> |
||
1147 | <Scripts> |
||
1148 | <OnLoad> |
||
1149 | this:SetMinMaxValues(0.5,2.0); |
||
1150 | this:SetValue(1.0); |
||
1151 | this:SetValueStep(0.05); |
||
1152 | getglobal("PowaTimer2SizeSliderText"):SetText(PowaText.nomTaille.." : 1.0"); |
||
1153 | getglobal("PowaTimer2SizeSliderLow"):SetText("0.5"); |
||
1154 | getglobal("PowaTimer2SizeSliderHigh"):SetText("2.0"); |
||
1155 | </OnLoad> |
||
1156 | <OnValueChanged> |
||
1157 | PowaTimer2SizeSliderChanged(); |
||
1158 | </OnValueChanged> |
||
1159 | </Scripts> |
||
1160 | </Slider> |
||
1161 | -- afficher ou pas les centiemes |
||
1162 | <CheckButton name="PowaDebuffTimerCentsButton" inherits="PowaCheckTemplate"> |
||
1163 | <Size> |
||
1164 | <AbsDimension x="25" y="25"/> |
||
1165 | </Size> |
||
1166 | <Anchors> |
||
1167 | <Anchor point="TOPLEFT" relativeTo="PowaTimer2SizeSlider" relativePoint="BOTTOMLEFT"> |
||
1168 | <Offset> |
||
1169 | <AbsDimension x="0" y="-15"/> |
||
1170 | </Offset> |
||
1171 | </Anchor> |
||
1172 | </Anchors> |
||
1173 | <Scripts> |
||
1174 | <OnLoad> |
||
1175 | getglobal("PowaDebuffTimerCentsButtonText"):SetText(PowaText.nomCentiemes); |
||
1176 | </OnLoad> |
||
1177 | <OnClick> |
||
1178 | PowaDebuffTimerCentsChecked(); |
||
1179 | </OnClick> |
||
1180 | </Scripts> |
||
1181 | </CheckButton> |
||
1182 | -- options generales |
||
1183 | <Frame name="PowaBarConfigFrame2Options"> |
||
1184 | <Size> |
||
1185 | <AbsDimension x="290" y="100"/> |
||
1186 | </Size> |
||
1187 | <Anchors> |
||
1188 | <Anchor point="TOP" relativeTo="PowaBarConfigFrameOptions" relativePoint="BOTTOM"> |
||
1189 | <Offset> |
||
1190 | <AbsDimension x="0" y="-33"/> |
||
1191 | </Offset> |
||
1192 | </Anchor> |
||
1193 | </Anchors> |
||
1194 | <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false"> |
||
1195 | <EdgeSize> |
||
1196 | <AbsValue val="12"/> |
||
1197 | </EdgeSize> |
||
1198 | <BackgroundInsets> |
||
1199 | <AbsInset left="2" right="2" top="2" bottom="2"/> |
||
1200 | </BackgroundInsets> |
||
1201 | </Backdrop> |
||
1202 | <Scripts> |
||
1203 | <OnLoad> |
||
1204 | this:SetBackdropBorderColor(0.7, 0.7, 0.7); |
||
1205 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
1206 | </OnLoad> |
||
1207 | </Scripts> |
||
1208 | </Frame> |
||
1209 | <CheckButton name="PowaDisableButton" inherits="PowaCheckTemplate"> |
||
1210 | <Size> |
||
1211 | <AbsDimension x="25" y="25"/> |
||
1212 | </Size> |
||
1213 | <Anchors> |
||
1214 | <Anchor point="TOPLEFT" relativeTo="PowaBarConfigFrameOptions" relativePoint="BOTTOMLEFT"> |
||
1215 | <Offset> |
||
1216 | <AbsDimension x="10" y="-5"/> |
||
1217 | </Offset> |
||
1218 | </Anchor> |
||
1219 | </Anchors> |
||
1220 | <Scripts> |
||
1221 | <OnLoad> |
||
1222 | this.tooltipText = PowaText.aideDisable; |
||
1223 | getglobal("PowaDisableButtonText"):SetText(PowaText.nomDisable); |
||
1224 | getglobal("PowaDisableButtonText"):SetTextColor(1.0,0.1,0.1); |
||
1225 | </OnLoad> |
||
1226 | <OnClick> |
||
1227 | PowaDisableChecked(); |
||
1228 | </OnClick> |
||
1229 | </Scripts> |
||
1230 | </CheckButton> |
||
1231 | <CheckButton name="PowaQuickHideButton" inherits="PowaCheckTemplate"> |
||
1232 | <Size> |
||
1233 | <AbsDimension x="25" y="25"/> |
||
1234 | </Size> |
||
1235 | <Anchors> |
||
1236 | <Anchor point="TOPLEFT" relativeTo="PowaDisableButton" relativePoint="BOTTOMLEFT"> |
||
1237 | <Offset> |
||
1238 | <AbsDimension x="0" y="-15"/> |
||
1239 | </Offset> |
||
1240 | </Anchor> |
||
1241 | </Anchors> |
||
1242 | <Scripts> |
||
1243 | <OnLoad> |
||
1244 | this.tooltipText = PowaText.aideQuickHide; |
||
1245 | getglobal("PowaQuickHideButtonText"):SetText(PowaText.nomCheckQuickHide); |
||
1246 | </OnLoad> |
||
1247 | <OnClick> |
||
1248 | PowaQuickHideChecked(); |
||
1249 | </OnClick> |
||
1250 | </Scripts> |
||
1251 | </CheckButton> |
||
1252 | -- slider max textures |
||
1253 | <Slider name="PowaMaxTexSlider" inherits="PowaBarSliderTemplate"> |
||
1254 | <Size> |
||
1255 | <AbsDimension x="260" y="16"/> |
||
1256 | </Size> |
||
1257 | <Anchors> |
||
1258 | <Anchor point="BOTTOM" relativeTo="PowaBarConfigFrame2Options" relativePoint="BOTTOM"> |
||
1259 | <Offset> |
||
1260 | <AbsDimension x="0" y="20" /> |
||
1261 | </Offset> |
||
1262 | </Anchor> |
||
1263 | </Anchors> |
||
1264 | <Scripts> |
||
1265 | <OnLoad> |
||
1266 | this.aide = PowaText.aideMaxTex; |
||
1267 | this:SetMinMaxValues(1,50); |
||
1268 | this:SetValue(20); |
||
1269 | this:SetValueStep(1); |
||
1270 | getglobal("PowaMaxTexSliderText"):SetText(PowaText.nomMaxTex.." : 20"); |
||
1271 | getglobal("PowaMaxTexSliderLow"):SetText("1"); |
||
1272 | getglobal("PowaMaxTexSliderHigh"):SetText("50"); |
||
1273 | </OnLoad> |
||
1274 | <OnValueChanged> |
||
1275 | PowaMaxTexSliderChanged(); |
||
1276 | </OnValueChanged> |
||
1277 | </Scripts> |
||
1278 | </Slider> |
||
1279 | |||
1280 | </Frames> |
||
1281 | |||
1282 | </Frame> |
||
1283 | |||
1284 | </Frames> |
||
1285 | |||
1286 | </Frame> |
||
1287 | |||
1288 | </Ui> |