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 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="localization.lua" /> |
||
4 | <Script file="QuuSpellAlert.lua" /> |
||
5 | |||
6 | <Frame name="QuuSpellAlertOptions" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent"> |
||
7 | <Size> |
||
8 | <AbsDimension x="250" y="300" /> |
||
9 | </Size> |
||
10 | <Anchors> |
||
11 | <Anchor point="CENTER" /> |
||
12 | </Anchors> |
||
13 | |||
14 | <TitleRegion setAllPoints="true"/> |
||
15 | |||
16 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
17 | <EdgeSize> |
||
18 | <AbsValue val="16"/> |
||
19 | </EdgeSize> |
||
20 | <TileSize> |
||
21 | <AbsValue val="16"/> |
||
22 | </TileSize> |
||
23 | <BackgroundInsets> |
||
24 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
25 | </BackgroundInsets> |
||
26 | </Backdrop> |
||
27 | |||
28 | <Layers> |
||
29 | <Layer level="BACKGROUND"> |
||
30 | <FontString name="$parentText" inherits="GameFontNormal" text="QSA Options"> |
||
31 | <Anchors> |
||
32 | <Anchor point="TOP"> |
||
33 | <Offset> |
||
34 | <AbsDimension x="0" y="-8"/> |
||
35 | </Offset> |
||
36 | </Anchor> |
||
37 | </Anchors> |
||
38 | </FontString> |
||
39 | </Layer> |
||
40 | </Layers> |
||
41 | <Frames> |
||
42 | <CheckButton name="$parentEnable" inherits="OptionsCheckButtonTemplate"> |
||
43 | <Anchors> |
||
44 | <Anchor point="TOPLEFT" relativeTo="$parent"> |
||
45 | <Offset> |
||
46 | <AbsDimension x="15" y="-25" /> |
||
47 | </Offset> |
||
48 | </Anchor> |
||
49 | </Anchors> |
||
50 | <Scripts> |
||
51 | <OnLoad> |
||
52 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_ENABLE); |
||
53 | </OnLoad> |
||
54 | </Scripts> |
||
55 | </CheckButton> |
||
56 | |||
57 | <CheckButton name="$parentGain" inherits="OptionsCheckButtonTemplate"> |
||
58 | <Anchors> |
||
59 | <Anchor point="LEFT" relativeTo="$parentEnable" relativePoint="left"> |
||
60 | <Offset> |
||
61 | <AbsDimension x="0" y="-30" /> |
||
62 | </Offset> |
||
63 | </Anchor> |
||
64 | </Anchors> |
||
65 | <Scripts> |
||
66 | <OnLoad> |
||
67 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_GAIN); |
||
68 | </OnLoad> |
||
69 | </Scripts> |
||
70 | </CheckButton> |
||
71 | |||
72 | <CheckButton name="$parentFade" inherits="OptionsCheckButtonTemplate"> |
||
73 | <Anchors> |
||
74 | <Anchor point="LEFT" relativeTo="$parentGain" relativePoint="left"> |
||
75 | <Offset> |
||
76 | <AbsDimension x="0" y="-30" /> |
||
77 | </Offset> |
||
78 | </Anchor> |
||
79 | </Anchors> |
||
80 | <Scripts> |
||
81 | <OnLoad> |
||
82 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_FADE); |
||
83 | </OnLoad> |
||
84 | </Scripts> |
||
85 | </CheckButton> |
||
86 | |||
87 | <CheckButton name="$parentEmote" inherits="OptionsCheckButtonTemplate"> |
||
88 | <Anchors> |
||
89 | <Anchor point="LEFT" relativeTo="$parentFade" relativePoint="left"> |
||
90 | <Offset> |
||
91 | <AbsDimension x="0" y="-30" /> |
||
92 | </Offset> |
||
93 | </Anchor> |
||
94 | </Anchors> |
||
95 | <Scripts> |
||
96 | <OnLoad> |
||
97 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_EMOTE); |
||
98 | </OnLoad> |
||
99 | </Scripts> |
||
100 | </CheckButton> |
||
101 | |||
102 | <CheckButton name="$parentCombat" inherits="OptionsCheckButtonTemplate"> |
||
103 | <Anchors> |
||
104 | <Anchor point="LEFT" relativeTo="$parentEmote" relativePoint="left"> |
||
105 | <Offset> |
||
106 | <AbsDimension x="0" y="-30" /> |
||
107 | </Offset> |
||
108 | </Anchor> |
||
109 | </Anchors> |
||
110 | <Scripts> |
||
111 | <OnLoad> |
||
112 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_COMBAT); |
||
113 | </OnLoad> |
||
114 | </Scripts> |
||
115 | </CheckButton> |
||
116 | |||
117 | <CheckButton name="$parentTarget" inherits="OptionsCheckButtonTemplate"> |
||
118 | <Anchors> |
||
119 | <Anchor point="LEFT" relativeTo="$parentCombat" relativePoint="left"> |
||
120 | <Offset> |
||
121 | <AbsDimension x="0" y="-30" /> |
||
122 | </Offset> |
||
123 | </Anchor> |
||
124 | </Anchors> |
||
125 | <Scripts> |
||
126 | <OnLoad> |
||
127 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_TRGONLY); |
||
128 | </OnLoad> |
||
129 | </Scripts> |
||
130 | </CheckButton> |
||
131 | |||
132 | <CheckButton name="$parentShort" inherits="OptionsCheckButtonTemplate"> |
||
133 | <Anchors> |
||
134 | <Anchor point="LEFT" relativeTo="$parentTarget" relativePoint="left"> |
||
135 | <Offset> |
||
136 | <AbsDimension x="0" y="-30" /> |
||
137 | </Offset> |
||
138 | </Anchor> |
||
139 | </Anchors> |
||
140 | <Scripts> |
||
141 | <OnLoad> |
||
142 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_SHORT); |
||
143 | </OnLoad> |
||
144 | </Scripts> |
||
145 | </CheckButton> |
||
146 | |||
147 | <CheckButton name="$parentAffliction" inherits="OptionsCheckButtonTemplate"> |
||
148 | <Anchors> |
||
149 | <Anchor point="LEFT" relativeTo="$parentShort" relativePoint="left"> |
||
150 | <Offset> |
||
151 | <AbsDimension x="0" y="-30" /> |
||
152 | </Offset> |
||
153 | </Anchor> |
||
154 | </Anchors> |
||
155 | <Scripts> |
||
156 | <OnLoad> |
||
157 | getglobal(this:GetName().."Text"):SetText(QSA_BUTTON_AFFLIC); |
||
158 | </OnLoad> |
||
159 | </Scripts> |
||
160 | </CheckButton> |
||
161 | |||
162 | <Button name="$parentSave" inherits="GameMenuButtonTemplate" text="CLOSE"> |
||
163 | <Anchors> |
||
164 | <Anchor point="CENTER" relativePoint="BOTTOM" relativeTo="$parent"> |
||
165 | <Offset> |
||
166 | <AbsDimension x="0" y="25" /> |
||
167 | </Offset> |
||
168 | </Anchor> |
||
169 | </Anchors> |
||
170 | <Scripts> |
||
171 | <OnClick> |
||
172 | QSA_OptionsClose(); |
||
173 | </OnClick> |
||
174 | </Scripts> |
||
175 | </Button> |
||
176 | </Frames> |
||
177 | |||
178 | </Frame> |
||
179 | |||
180 | <Frame name="QuuSpellAlertAnchor" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent"> |
||
181 | <Size> |
||
182 | <AbsDimension x="175" y="55"/> |
||
183 | </Size> |
||
184 | |||
185 | <Anchors> |
||
186 | <Anchor point="TOP" relativeTo="UIErrorsFrame" relativePoint="BOTTOM"> |
||
187 | <Offset> |
||
188 | <AbsDimension x="0" y="0"/> |
||
189 | </Offset> |
||
190 | </Anchor> |
||
191 | </Anchors> |
||
192 | |||
193 | <TitleRegion setAllPoints="true"/> |
||
194 | |||
195 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
196 | <EdgeSize> |
||
197 | <AbsValue val="16"/> |
||
198 | </EdgeSize> |
||
199 | <TileSize> |
||
200 | <AbsValue val="16"/> |
||
201 | </TileSize> |
||
202 | <BackgroundInsets> |
||
203 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
204 | </BackgroundInsets> |
||
205 | </Backdrop> |
||
206 | |||
207 | <Layers> |
||
208 | <Layer level="BACKGROUND"> |
||
209 | <FontString name="$parentText" inherits="GameFontNormal" text="Quu Spell Alert"> |
||
210 | <Anchors> |
||
211 | <Anchor point="TOP"> |
||
212 | <Offset> |
||
213 | <AbsDimension x="0" y="-8"/> |
||
214 | </Offset> |
||
215 | </Anchor> |
||
216 | </Anchors> |
||
217 | </FontString> |
||
218 | </Layer> |
||
219 | </Layers> |
||
220 | <Scripts> |
||
221 | <OnLoad> |
||
222 | getglobal(this:GetName().."Text"):SetText(BINDING_HEADER_QSATITLE.." "..QSA_VERSION); |
||
223 | </OnLoad> |
||
224 | </Scripts> |
||
225 | <Frames> |
||
226 | <Button name="$parentTest" inherits="OptionsButtonTemplate" text="Test"> |
||
227 | <Size> |
||
228 | <AbsDimension x="40" y="25"/> |
||
229 | </Size> |
||
230 | <Anchors> |
||
231 | <Anchor point="BOTTOMLEFT"> |
||
232 | <Offset> |
||
233 | <AbsDimension x="5" y="5"/> |
||
234 | </Offset> |
||
235 | </Anchor> |
||
236 | </Anchors> |
||
237 | <Scripts> |
||
238 | <OnClick> |
||
239 | QSA_Test(); |
||
240 | </OnClick> |
||
241 | </Scripts> |
||
242 | </Button> |
||
243 | <Button name="$parentColor" inherits="OptionsButtonTemplate" text="Color"> |
||
244 | <Size> |
||
245 | <AbsDimension x="40" y="25"/> |
||
246 | </Size> |
||
247 | <Anchors> |
||
248 | <Anchor point="BOTTOMLEFT"> |
||
249 | <Offset> |
||
250 | <AbsDimension x="44" y="5"/> |
||
251 | </Offset> |
||
252 | </Anchor> |
||
253 | </Anchors> |
||
254 | <Scripts> |
||
255 | <OnClick> |
||
256 | QSA_ChooseColor(); |
||
257 | </OnClick> |
||
258 | </Scripts> |
||
259 | </Button> |
||
260 | <Button name="$parentOptions" inherits="OptionsButtonTemplate" text="Option"> |
||
261 | <Size> |
||
262 | <AbsDimension x="50" y="25"/> |
||
263 | </Size> |
||
264 | <Anchors> |
||
265 | <Anchor point="BOTTOMRIGHT"> |
||
266 | <Offset> |
||
267 | <AbsDimension x="-42" y="5"/> |
||
268 | </Offset> |
||
269 | </Anchor> |
||
270 | </Anchors> |
||
271 | <Scripts> |
||
272 | <OnClick> |
||
273 | QSA_OptionsOpen(); |
||
274 | </OnClick> |
||
275 | </Scripts> |
||
276 | </Button> |
||
277 | <Button name="$parentHide" inherits="OptionsButtonTemplate" text="Hide"> |
||
278 | <Size> |
||
279 | <AbsDimension x="40" y="25"/> |
||
280 | </Size> |
||
281 | <Anchors> |
||
282 | <Anchor point="BOTTOMRIGHT"> |
||
283 | <Offset> |
||
284 | <AbsDimension x="-5" y="5"/> |
||
285 | </Offset> |
||
286 | </Anchor> |
||
287 | </Anchors> |
||
288 | <Scripts> |
||
289 | <OnClick> |
||
290 | if ( ColorPickerFrame:IsVisible() ) then |
||
291 | ColorPickerFrame:Hide(); |
||
292 | end |
||
293 | if ( QuuSpellAlertOptions:IsVisible() ) then |
||
294 | QuuSpellAlertOptions:Hide(); |
||
295 | end |
||
296 | setVar( "QSA_Hide", true); |
||
297 | QuuSpellAlertAnchor:Hide(); |
||
298 | </OnClick> |
||
299 | </Scripts> |
||
300 | </Button> |
||
301 | </Frames> |
||
302 | </Frame> |
||
303 | |||
304 | <MessageFrame name="QuuSpellAlertNormalFrame" insertMode="BOTTOM" parent="UIParent" frameStrata="HIGH" toplevel="true" > |
||
305 | <Size> |
||
306 | <AbsDimension x="600" y="70"/> |
||
307 | </Size> |
||
308 | <Anchors> |
||
309 | <Anchor point="TOP" relativeTo="QuuSpellAlertAnchor" relativePoint="BOTTOM"> |
||
310 | <Offset> |
||
311 | <AbsDimension x="0" y="0"/> |
||
312 | </Offset> |
||
313 | </Anchor> |
||
314 | </Anchors> |
||
315 | |||
316 | <FontString inherits="MasterFont" font="Fonts\FRIZQT__.TTF" justifyH="CENTER"> |
||
317 | <FontHeight> |
||
318 | <AbsValue val="14"/> |
||
319 | </FontHeight> |
||
320 | </FontString> |
||
321 | </MessageFrame> |
||
322 | |||
323 | <MessageFrame name="QuuSpellAlertCriticalFrame" insertMode="BOTTOM" parent="UIParent" frameStrata="HIGH" toplevel="true" > |
||
324 | <Size> |
||
325 | <AbsDimension x="600" y="60"/> |
||
326 | </Size> |
||
327 | <Anchors> |
||
328 | <Anchor point="TOP" relativeTo="QuuSpellAlertNormalFrame" relativePoint="BOTTOM"> |
||
329 | <Offset> |
||
330 | <AbsDimension x="0" y="-20"/> |
||
331 | </Offset> |
||
332 | </Anchor> |
||
333 | </Anchors> |
||
334 | |||
335 | <FontString inherits="MasterFont" font="Fonts\FRIZQT__.TTF" justifyH="CENTER"> |
||
336 | <FontHeight> |
||
337 | <AbsValue val="16"/> |
||
338 | </FontHeight> |
||
339 | </FontString> |
||
340 | </MessageFrame> |
||
341 | |||
342 | <Frame name="QuuSpellAlertFrame" parent="UIParent" > |
||
343 | <Scripts> |
||
344 | <OnLoad> |
||
345 | this:RegisterEvent("VARIABLES_LOADED"); |
||
346 | |||
347 | -- this is all the CHAT_MSG_SPELL_XXX events |
||
348 | this:RegisterEvent("CHAT_MSG_SPELL_AURA_GONE_OTHER"); |
||
349 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_BUFF"); |
||
350 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE"); |
||
351 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_PARTY_BUFF"); |
||
352 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE"); |
||
353 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_BUFF"); |
||
354 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE"); |
||
355 | this:RegisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_BUFF"); |
||
356 | this:RegisterEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE"); |
||
357 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS"); |
||
358 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE"); |
||
359 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_BUFFS"); |
||
360 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE"); |
||
361 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE"); |
||
362 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE"); |
||
363 | |||
364 | |||
365 | --this:RegisterEvent("CHAT_MSG_SPELL_AURA_GONE_SELF"); |
||
366 | --this:RegisterEvent("CHAT_MSG_SPELL_BREAK_AURA"); |
||
367 | --this:RegisterEvent("CHAT_MSG_SPELL_DAMAGESHIELDS_ON_OTHERS"); |
||
368 | --this:RegisterEvent("CHAT_MSG_SPELL_DAMAGESHIELDS_ON_SELF"); |
||
369 | --this:RegisterEvent("CHAT_MSG_SPELL_FAILED_LOCALPLAYER"); |
||
370 | --this:RegisterEvent("CHAT_MSG_SPELL_FRIENDLYPLAYER_BUFF"); |
||
371 | --this:RegisterEvent("CHAT_MSG_SPELL_FRIENDLYPLAYER_DAMAGE"); |
||
372 | --this:RegisterEvent("CHAT_MSG_SPELL_ITEM_ENCHANTMENTS"); |
||
373 | --this:RegisterEvent("CHAT_MSG_SPELL_PARTY_BUFF"); |
||
374 | --this:RegisterEvent("CHAT_MSG_SPELL_PARTY_DAMAGE"); |
||
375 | --this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE"); |
||
376 | --this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_BUFFS"); |
||
377 | --this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_BUFFS"); |
||
378 | --this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_BUFFS"); |
||
379 | --this:RegisterEvent("CHAT_MSG_SPELL_PET_BUFF"); |
||
380 | --this:RegisterEvent("CHAT_MSG_SPELL_PET_DAMAGE"); |
||
381 | --this:RegisterEvent("CHAT_MSG_SPELL_SELF_BUFF"); |
||
382 | --this:RegisterEvent("CHAT_MSG_SPELL_SELF_DAMAGE"); |
||
383 | --this:RegisterEvent("CHAT_MSG_SPELL_TRADESKILLS"); |
||
384 | |||
385 | -- these are the emotes |
||
386 | this:RegisterEvent("CHAT_MSG_EMOTE"); |
||
387 | this:RegisterEvent("CHAT_MSG_MONSTER_EMOTE"); |
||
388 | --this:RegisterEvent("CHAT_MSG_TEXT_EMOTE"); |
||
389 | |||
390 | </OnLoad> |
||
391 | <OnEvent> |
||
392 | if (event == "VARIABLES_LOADED") then |
||
393 | QSA_Init(); |
||
394 | else |
||
395 | QSA_Event(event, arg1, arg2); |
||
396 | end |
||
397 | </OnEvent> |
||
398 | </Scripts> |
||
399 | </Frame> |
||
400 | </Ui> |