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/..\FrameXML\UI.xsd"> |
2 | |||
3 | <Frame name="NecrosisGraphOptionMenu" frameStrata="DIALOG" movable="false" enableMouse="true" parent="NecrosisGeneralFrame"> |
||
4 | <Size> |
||
5 | <AbsDimension x="350" y="452"/> |
||
6 | </Size> |
||
7 | <Anchors> |
||
8 | <Anchor point="BOTTOMLEFT" relativeTo="NecrosisGeneralFrame"/> |
||
9 | </Anchors> |
||
10 | <HitRectInsets> |
||
11 | <AbsInset left="0" right="35" top="0" bottom="75"/> |
||
12 | </HitRectInsets> |
||
13 | <Layers> |
||
14 | <Layer level="ARTWORK"> |
||
15 | <FontString name="NecrosisShowTrance_Option" inherits="GameFontNormalSmall"> |
||
16 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
17 | <Anchors> |
||
18 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
19 | <Offset> |
||
20 | <AbsDimension x="60" y="-40"/> |
||
21 | </Offset> |
||
22 | </Anchor> |
||
23 | </Anchors> |
||
24 | </FontString> |
||
25 | <FontString name="NecrosisIconsLock_Option" inherits="GameFontNormalSmall"> |
||
26 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
27 | <Anchors> |
||
28 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
29 | <Offset> |
||
30 | <AbsDimension x="60" y="-80"/> |
||
31 | </Offset> |
||
32 | </Anchor> |
||
33 | </Anchors> |
||
34 | </FontString> |
||
35 | <FontString name="NecrosisLock_Option" inherits="GameFontNormalSmall"> |
||
36 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
37 | <Anchors> |
||
38 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
39 | <Offset> |
||
40 | <AbsDimension x="60" y="-100"/> |
||
41 | </Offset> |
||
42 | </Anchor> |
||
43 | </Anchors> |
||
44 | </FontString> |
||
45 | <FontString name="NecrosisBuffMenu_Option" inherits="GameFontNormalSmall"> |
||
46 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
47 | <Anchors> |
||
48 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
49 | <Offset> |
||
50 | <AbsDimension x="60" y="-140"/> |
||
51 | </Offset> |
||
52 | </Anchor> |
||
53 | </Anchors> |
||
54 | </FontString> |
||
55 | <FontString name="NecrosisPetMenu_Option" inherits="GameFontNormalSmall"> |
||
56 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
57 | <Anchors> |
||
58 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
59 | <Offset> |
||
60 | <AbsDimension x="60" y="-160"/> |
||
61 | </Offset> |
||
62 | </Anchor> |
||
63 | </Anchors> |
||
64 | </FontString> |
||
65 | <FontString name="NecrosisCurseMenu_Option" inherits="GameFontNormalSmall"> |
||
66 | <Color r="1.0" g="1.0" b="1.0" a="1"/> |
||
67 | <Anchors> |
||
68 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
69 | <Offset> |
||
70 | <AbsDimension x="60" y="-180"/> |
||
71 | </Offset> |
||
72 | </Anchor> |
||
73 | </Anchors> |
||
74 | </FontString> |
||
75 | </Layer> |
||
76 | </Layers> |
||
77 | <Frames> |
||
78 | <Slider name="NecrosisButtonRotate_Slider" inherits="OptionsSliderTemplate" minValue="0" maxValue="360" valueStep="18" virtual="true"> |
||
79 | <Size> |
||
80 | <AbsDimension x="150" y="16"/> |
||
81 | </Size> |
||
82 | <Anchors> |
||
83 | <Anchor point="CENTER" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOP"> |
||
84 | <Offset> |
||
85 | <AbsDimension x="0" y="0"/> |
||
86 | </Offset> |
||
87 | </Anchor> |
||
88 | </Anchors> |
||
89 | <Scripts> |
||
90 | <OnEnter> |
||
91 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
92 | GameTooltip:SetText(this:GetValue()); |
||
93 | </OnEnter> |
||
94 | <OnValueChanged> |
||
95 | NecrosisConfig.NecrosisAngle = this:GetValue(); |
||
96 | local x, y = NecrosisButton:GetCenter(); |
||
97 | GameTooltip:SetText(this:GetValue()); |
||
98 | Necrosis_UpdateButtonsScale(); |
||
99 | </OnValueChanged> |
||
100 | <OnLeave> |
||
101 | GameTooltip:Hide(); |
||
102 | </OnLeave> |
||
103 | </Scripts> |
||
104 | </Slider> |
||
105 | <Slider name="NecrosisButtonScale_Slider" inherits="OptionsSliderTemplate" minValue="50" maxValue="150" valueStep="5" virtual="true"> |
||
106 | <Size> |
||
107 | <AbsDimension x="150" y="16"/> |
||
108 | </Size> |
||
109 | <Anchors> |
||
110 | <Anchor point="CENTER" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOP"> |
||
111 | <Offset> |
||
112 | <AbsDimension x="0" y="-40"/> |
||
113 | </Offset> |
||
114 | </Anchor> |
||
115 | </Anchors> |
||
116 | <Scripts> |
||
117 | <OnEnter> |
||
118 | NBx, NBy = NecrosisButton:GetCenter(); |
||
119 | NBx = NBx * (NecrosisConfig.NecrosisButtonScale / 100); |
||
120 | NBy = NBy * (NecrosisConfig.NecrosisButtonScale / 100); |
||
121 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
122 | GameTooltip:SetText(this:GetValue().." %"); |
||
123 | </OnEnter> |
||
124 | <OnValueChanged> |
||
125 | if this:GetValue() ~= NecrosisConfig.NecrosisButtonScale then |
||
126 | NecrosisButton:ClearAllPoints(); |
||
127 | GameTooltip:SetText(this:GetValue().." %"); |
||
128 | NecrosisConfig.NecrosisButtonScale = this:GetValue(); |
||
129 | NecrosisButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", NBx / (NecrosisConfig.NecrosisButtonScale / 100), NBy / (NecrosisConfig.NecrosisButtonScale / 100)); |
||
130 | NecrosisButton:SetScale(NecrosisConfig.NecrosisButtonScale / 100); |
||
131 | Necrosis_UpdateButtonsScale(); |
||
132 | end |
||
133 | </OnValueChanged> |
||
134 | <OnLeave> |
||
135 | GameTooltip:Hide(); |
||
136 | </OnLeave> |
||
137 | </Scripts> |
||
138 | </Slider> |
||
139 | <Slider name="ShadowTranceScale_Slider" inherits="OptionsSliderTemplate" minValue="50" maxValue="150" valueStep="5" virtual="true"> |
||
140 | <Size> |
||
141 | <AbsDimension x="150" y="16"/> |
||
142 | </Size> |
||
143 | <Anchors> |
||
144 | <Anchor point="CENTER" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOP"> |
||
145 | <Offset> |
||
146 | <AbsDimension x="0" y="-80"/> |
||
147 | </Offset> |
||
148 | </Anchor> |
||
149 | </Anchors> |
||
150 | <Scripts> |
||
151 | <OnEnter> |
||
152 | STx, STy = NecrosisShadowTranceButton:GetCenter(); |
||
153 | STx = STx * (NecrosisConfig.ShadowTranceScale / 100); |
||
154 | STy = STy * (NecrosisConfig.ShadowTranceScale / 100); |
||
155 | AFx, AFy = NecrosisAntiFearButton:GetCenter(); |
||
156 | AFx = AFx * (NecrosisConfig.ShadowTranceScale / 100); |
||
157 | AFy = AFy * (NecrosisConfig.ShadowTranceScale / 100); |
||
158 | ShowUIPanel(NecrosisShadowTranceButton); |
||
159 | ShowUIPanel(NecrosisAntiFearButton); |
||
160 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
161 | GameTooltip:SetText(this:GetValue().."%"); |
||
162 | </OnEnter> |
||
163 | <OnValueChanged> |
||
164 | if this:GetValue() ~= NecrosisConfig.ShadowTranceScale then |
||
165 | GameTooltip:SetText(this:GetValue().."%"); |
||
166 | NecrosisConfig.ShadowTranceScale = this:GetValue(); |
||
167 | NecrosisShadowTranceButton:ClearAllPoints(); |
||
168 | NecrosisShadowTranceButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", STx / (NecrosisConfig.ShadowTranceScale / 100), STy / (NecrosisConfig.ShadowTranceScale / 100)); |
||
169 | NecrosisShadowTranceButton:SetScale(NecrosisConfig.ShadowTranceScale / 100); |
||
170 | NecrosisAntiFearButton:ClearAllPoints(); |
||
171 | NecrosisAntiFearButton:SetPoint("CENTER", "UIParent", "BOTTOMLEFT", AFx / (NecrosisConfig.ShadowTranceScale / 100), AFy / (NecrosisConfig.ShadowTranceScale / 100)); |
||
172 | NecrosisAntiFearButton:SetScale(NecrosisConfig.ShadowTranceScale / 100); |
||
173 | end |
||
174 | </OnValueChanged> |
||
175 | <OnLeave> |
||
176 | if not NecrosisShowTrance_Button:GetChecked() then |
||
177 | HideUIPanel(NecrosisShadowTranceButton); |
||
178 | HideUIPanel(NecrosisAntiFearButton); |
||
179 | end |
||
180 | GameTooltip:Hide(); |
||
181 | </OnLeave> |
||
182 | </Scripts> |
||
183 | </Slider> |
||
184 | <CheckButton name="NecrosisShowTrance_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
185 | <Size> |
||
186 | <AbsDimension x="24" y="24"/> |
||
187 | </Size> |
||
188 | <Anchors> |
||
189 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
190 | <Offset> |
||
191 | <AbsDimension x="30" y="-35"/> |
||
192 | </Offset> |
||
193 | </Anchor> |
||
194 | </Anchors> |
||
195 | <Scripts> |
||
196 | <OnClick> |
||
197 | if (this:GetChecked()) then |
||
198 | ShowUIPanel(NecrosisShadowTranceButton); |
||
199 | ShowUIPanel(NecrosisAntiFearButton); |
||
200 | NecrosisShadowTranceButton:RegisterForDrag("LeftButton") |
||
201 | NecrosisAntiFearButton:RegisterForDrag("LeftButton") |
||
202 | else |
||
203 | HideUIPanel(NecrosisShadowTranceButton); |
||
204 | HideUIPanel(NecrosisAntiFearButton); |
||
205 | NecrosisShadowTranceButton:RegisterForDrag(""); |
||
206 | NecrosisAntiFearButton:RegisterForDrag(""); |
||
207 | end |
||
208 | </OnClick> |
||
209 | </Scripts> |
||
210 | </CheckButton> |
||
211 | <CheckButton name="NecrosisIconsLock_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
212 | <Size> |
||
213 | <AbsDimension x="24" y="24"/> |
||
214 | </Size> |
||
215 | <Anchors> |
||
216 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
217 | <Offset> |
||
218 | <AbsDimension x="30" y="-75"/> |
||
219 | </Offset> |
||
220 | </Anchor> |
||
221 | </Anchors> |
||
222 | <Scripts> |
||
223 | <OnClick> |
||
224 | if (this:GetChecked()) then |
||
225 | NecrosisConfig.NecrosisLockServ = true; |
||
226 | Necrosis_ClearAllPoints(); |
||
227 | Necrosis_UpdateButtonsScale(); |
||
228 | Necrosis_NoDrag(); |
||
229 | if not NecrosisConfig.NoDragAll then |
||
230 | NecrosisButton:RegisterForDrag("LeftButton"); |
||
231 | NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); |
||
232 | end |
||
233 | else |
||
234 | NecrosisConfig.NecrosisLockServ = false; |
||
235 | Necrosis_ClearAllPoints(); |
||
236 | NecrosisFirestoneButton:SetPoint("CENTER", "UIParent", "CENTER", -121,-100); |
||
237 | NecrosisSpellstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -87,-100); |
||
238 | NecrosisHealthstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -53,-100); |
||
239 | NecrosisSoulstoneButton:SetPoint("CENTER", "UIParent", "CENTER", -17,-100); |
||
240 | NecrosisBuffMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 17,-100); |
||
241 | NecrosisMountButton:SetPoint("CENTER", "UIParent", "CENTER", 53,-100); |
||
242 | NecrosisPetMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 87,-100); |
||
243 | NecrosisCurseMenuButton:SetPoint("CENTER", "UIParent", "CENTER", 121,-100); |
||
244 | Necrosis_Drag(); |
||
245 | NecrosisConfig.NoDragAll = false; |
||
246 | NecrosisLock_Button:SetChecked(false); |
||
247 | NecrosisButton:RegisterForDrag("LeftButton"); |
||
248 | NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); |
||
249 | end |
||
250 | </OnClick> |
||
251 | </Scripts> |
||
252 | </CheckButton> |
||
253 | <CheckButton name="NecrosisLock_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
254 | <Size> |
||
255 | <AbsDimension x="24" y="24"/> |
||
256 | </Size> |
||
257 | <Anchors> |
||
258 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
259 | <Offset> |
||
260 | <AbsDimension x="30" y="-95"/> |
||
261 | </Offset> |
||
262 | </Anchor> |
||
263 | </Anchors> |
||
264 | <Scripts> |
||
265 | <OnClick> |
||
266 | if (this:GetChecked()) then |
||
267 | Necrosis_NoDrag(); |
||
268 | NecrosisButton:RegisterForDrag(""); |
||
269 | NecrosisSpellTimerButton:RegisterForDrag(""); |
||
270 | NecrosisConfig.NoDragAll = true; |
||
271 | else |
||
272 | if not NecrosisConfig.NecrosisLockServ then |
||
273 | Necrosis_Drag(); |
||
274 | end |
||
275 | NecrosisButton:RegisterForDrag("LeftButton"); |
||
276 | NecrosisSpellTimerButton:RegisterForDrag("LeftButton"); |
||
277 | NecrosisConfig.NoDragAll = false; |
||
278 | end |
||
279 | </OnClick> |
||
280 | </Scripts> |
||
281 | </CheckButton> |
||
282 | <CheckButton name="NecrosisBuffMenu_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
283 | <Size> |
||
284 | <AbsDimension x="24" y="24"/> |
||
285 | </Size> |
||
286 | <Anchors> |
||
287 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
288 | <Offset> |
||
289 | <AbsDimension x="30" y="-135"/> |
||
290 | </Offset> |
||
291 | </Anchor> |
||
292 | </Anchors> |
||
293 | <Scripts> |
||
294 | <OnClick> |
||
295 | if (this:GetChecked()) then |
||
296 | NecrosisConfig.BuffMenuPos = -34; |
||
297 | else |
||
298 | NecrosisConfig.BuffMenuPos = 34; |
||
299 | end |
||
300 | Necrosis_CreateMenu(); |
||
301 | </OnClick> |
||
302 | </Scripts> |
||
303 | </CheckButton> |
||
304 | <CheckButton name="NecrosisPetMenu_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
305 | <Size> |
||
306 | <AbsDimension x="24" y="24"/> |
||
307 | </Size> |
||
308 | <Anchors> |
||
309 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
310 | <Offset> |
||
311 | <AbsDimension x="30" y="-155"/> |
||
312 | </Offset> |
||
313 | </Anchor> |
||
314 | </Anchors> |
||
315 | <Scripts> |
||
316 | <OnClick> |
||
317 | if (this:GetChecked()) then |
||
318 | NecrosisConfig.PetMenuPos = -34; |
||
319 | else |
||
320 | NecrosisConfig.PetMenuPos = 34; |
||
321 | end |
||
322 | Necrosis_CreateMenu(); |
||
323 | </OnClick> |
||
324 | </Scripts> |
||
325 | </CheckButton> |
||
326 | <CheckButton name="NecrosisCurseMenu_Button" enableMouse="true" inherits="UICheckButtonTemplate" checked="false"> |
||
327 | <Size> |
||
328 | <AbsDimension x="24" y="24"/> |
||
329 | </Size> |
||
330 | <Anchors> |
||
331 | <Anchor point="TOPLEFT" relativeTo="NecrosisGraphOptionMenu" relativeFrom="TOPLEFT"> |
||
332 | <Offset> |
||
333 | <AbsDimension x="30" y="-175"/> |
||
334 | </Offset> |
||
335 | </Anchor> |
||
336 | </Anchors> |
||
337 | <Scripts> |
||
338 | <OnClick> |
||
339 | if (this:GetChecked()) then |
||
340 | NecrosisConfig.CurseMenuPos = -34; |
||
341 | else |
||
342 | NecrosisConfig.CurseMenuPos = 34; |
||
343 | end |
||
344 | Necrosis_CreateMenu(); |
||
345 | </OnClick> |
||
346 | </Scripts> |
||
347 | </CheckButton> |
||
348 | </Frames> |
||
349 | <Scripts> |
||
350 | <OnLoad> |
||
351 | HideUIPanel(NecrosisGraphOptionMenu); |
||
352 | </OnLoad> |
||
353 | </Scripts> |
||
354 | </Frame> |
||
355 | </Ui> |