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="MetaMapBWP.lua" /> |
||
4 | <script file="MetaMapBWP.loc" /> |
||
5 | |||
6 | <Frame name="BWP_MainFrame" frameStrata="HIGH" toplevel="true" movable="true" enableMouse="false" parent="UIParent"> |
||
7 | <Size> |
||
8 | <AbsDimension x="40" y="40"/> |
||
9 | </Size> |
||
10 | <Anchors> |
||
11 | <Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER"> |
||
12 | <Offset> |
||
13 | <AbsDimension x="0" y="0"/> |
||
14 | </Offset> |
||
15 | </Anchor> |
||
16 | </Anchors> |
||
17 | <Scripts> |
||
18 | <OnLoad> |
||
19 | BWP_OnLoad(); |
||
20 | </OnLoad> |
||
21 | <OnEvent> |
||
22 | BWP_OnEvent(event); |
||
23 | </OnEvent> |
||
24 | <OnUpdate> |
||
25 | if(not BWP_VarsLoaded) then |
||
26 | BWP_SetVars(); |
||
27 | end |
||
28 | BWP_OnUpdate(arg1); |
||
29 | </OnUpdate> |
||
30 | </Scripts> |
||
31 | </Frame> |
||
32 | |||
33 | <Frame name="BWP_DisplayFrame" parent="BWP_MainFrame"> |
||
34 | <Size> |
||
35 | <AbsDimension x="40" y="40"/> |
||
36 | </Size> |
||
37 | <Anchors> |
||
38 | <Anchor point="CENTER"> |
||
39 | <Offset> |
||
40 | <AbsDimension x="0" y="0"/> |
||
41 | </Offset> |
||
42 | </Anchor> |
||
43 | </Anchors> |
||
44 | <Layers> |
||
45 | <Layer level="BACKGROUND"> |
||
46 | <Texture name="BWP_Arrow" file="Interface\AddOns\MetaMapBWP\Artwork\Arrows\forward"> |
||
47 | <Anchors> |
||
48 | <Anchor point="TOPLEFT"/> |
||
49 | <Anchor point="BOTTOMRIGHT"/> |
||
50 | </Anchors> |
||
51 | </Texture> |
||
52 | </Layer> |
||
53 | <Layer level="BACKGROUND"> |
||
54 | <FontString name="BWPDestText" inherits="GameFontNormal"> |
||
55 | <Anchors> |
||
56 | <Anchor point="BOTTOM" relativeTo = "$parent" relativePoint = "BOTTOM"> |
||
57 | <Offset> |
||
58 | <AbsDimension x="0" y="-10"/> |
||
59 | </Offset> |
||
60 | </Anchor> |
||
61 | </Anchors> |
||
62 | </FontString> |
||
63 | </Layer> |
||
64 | <Layer level="BACKGROUND"> |
||
65 | <FontString name="BWPDistanceText" inherits="GameFontNormal"> |
||
66 | <Anchors> |
||
67 | <Anchor point="TOP" relativeTo = "$parent" relativePoint = "TOP"> |
||
68 | <Offset> |
||
69 | <AbsDimension x="0" y="15"/> |
||
70 | </Offset> |
||
71 | </Anchor> |
||
72 | </Anchors> |
||
73 | </FontString> |
||
74 | </Layer> |
||
75 | </Layers> |
||
76 | <Scripts> |
||
77 | <OnMouseDown> |
||
78 | if(arg1 == "RightButton") then |
||
79 | this:GetParent():StartMoving(); |
||
80 | this.isMoving = true; |
||
81 | elseif(arg1 == "LeftButton") then |
||
82 | end |
||
83 | </OnMouseDown> |
||
84 | <OnMouseUp> |
||
85 | if(this.isMoving and arg1 == "RightButton") then |
||
86 | this:GetParent():StopMovingOrSizing(); |
||
87 | this.isMoving = false; |
||
88 | elseif(arg1 == "LeftButton") then |
||
89 | MetaMapBWPMenu_Init(); |
||
90 | end |
||
91 | </OnMouseUp> |
||
92 | <OnEnter> |
||
93 | GameTooltip_SetDefaultAnchor(GameTooltip, UIParent); |
||
94 | GameTooltip:SetText(BWP_BUTTON_TOOLTIP); |
||
95 | </OnEnter> |
||
96 | <OnLeave> |
||
97 | GameTooltip:Hide(); |
||
98 | </OnLeave> |
||
99 | </Scripts> |
||
100 | </Frame> |
||
101 | |||
102 | <Frame name="BWP_MenuFrame" frameStrata="FULLSCREEN" toplevel="true" enableMouse="true" hidden="true" parent="UIParent"> |
||
103 | <Size> |
||
104 | <AbsDimension x="191" y="50"/> |
||
105 | </Size> |
||
106 | <Anchors> |
||
107 | <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="BOTTOMLEFT" > |
||
108 | <Offset> |
||
109 | <AbsDimension x="0" y="0"/> |
||
110 | </Offset> |
||
111 | </Anchor> |
||
112 | </Anchors> |
||
113 | <Layers> |
||
114 | <Layer level="BACKGROUND"> |
||
115 | <Texture name="$parentTexture" file=""> |
||
116 | <Anchors> |
||
117 | <Anchor point="TOPLEFT"/> |
||
118 | <Anchor point="BOTTOMRIGHT"/> |
||
119 | </Anchors> |
||
120 | </Texture> |
||
121 | </Layer> |
||
122 | </Layers> |
||
123 | <Frames> |
||
124 | <Frame name="$parent_DropDown" inherits="UIDropDownMenuTemplate" hidden="true" enablemouse ="false" > |
||
125 | <Anchors> |
||
126 | <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" > |
||
127 | <Offset> |
||
128 | <AbsDimension x="0" y="0"/> |
||
129 | </Offset> |
||
130 | </Anchor> |
||
131 | </Anchors> |
||
132 | <Scripts> |
||
133 | <OnLoad> |
||
134 | BWP_SelectionDropDown_OnLoad(); |
||
135 | </OnLoad> |
||
136 | </Scripts> |
||
137 | </Frame> |
||
138 | </Frames> |
||
139 | </Frame> |
||
140 | |||
141 | <Frame name="BWP_MiniDropMenu" inherits="UIDropDownMenuTemplate" hidden = "true"> |
||
142 | <Anchors> |
||
143 | <Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER"> |
||
144 | <Offset> |
||
145 | <AbsDimension x="0" y="0"/> |
||
146 | </Offset> |
||
147 | </Anchor> |
||
148 | </Anchors> |
||
149 | <Scripts> |
||
150 | <OnLoad> |
||
151 | BWP_MiniDropMenu_OnLoad(); |
||
152 | </OnLoad> |
||
153 | <OnShow> |
||
154 | BWP_MiniDropMenu_OnLoad(); |
||
155 | </OnShow> |
||
156 | </Scripts> |
||
157 | </Frame> |
||
158 | |||
159 | <Button name="MetaMapBWPMenu_ButtonTemplate" virtual="true"> |
||
160 | <Size> |
||
161 | <AbsDimension x="150" y="16"/> |
||
162 | </Size> |
||
163 | <Layers> |
||
164 | <Layer level="BACKGROUND"> |
||
165 | <Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/> |
||
166 | </Layer> |
||
167 | <Layer level="ARTWORK"> |
||
168 | <FontString name="$parentText" inherits="GameFontGreen" text=""> |
||
169 | <Anchors> |
||
170 | <Anchor point="LEFT"> |
||
171 | <Offset> |
||
172 | <AbsDimension x="-20" y="0"/> |
||
173 | </Offset> |
||
174 | </Anchor> |
||
175 | </Anchors> |
||
176 | </FontString> |
||
177 | <Texture name="$parentCheck" file="Interface\Buttons\UI-CheckBox-Check"> |
||
178 | <Size> |
||
179 | <AbsDimension x="20" y="20"/> |
||
180 | </Size> |
||
181 | <Anchors> |
||
182 | <Anchor point="LEFT"> |
||
183 | <Offset><AbsDimension x="-25" y="0"/></Offset> |
||
184 | </Anchor> |
||
185 | </Anchors> |
||
186 | </Texture> |
||
187 | </Layer> |
||
188 | </Layers> |
||
189 | <Frames> |
||
190 | <Button name="$parentColorSwatch" hidden="true"> |
||
191 | <Size> |
||
192 | <AbsDimension x="16" y="16"/> |
||
193 | </Size> |
||
194 | <Anchors> |
||
195 | <Anchor point="LEFT"> |
||
196 | <Offset><AbsDimension x="-6" y="0"/></Offset> |
||
197 | </Anchor> |
||
198 | </Anchors> |
||
199 | <Layers> |
||
200 | <Layer level="BACKGROUND"> |
||
201 | <Texture name="$parentSwatchBg"> |
||
202 | <Size> |
||
203 | <AbsDimension x="14" y="14"/> |
||
204 | </Size> |
||
205 | <Anchors> |
||
206 | <Anchor point="LEFT"> |
||
207 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
208 | </Anchor> |
||
209 | </Anchors> |
||
210 | <Color r="1.0" g="1.0" b="1.0"/> |
||
211 | </Texture> |
||
212 | </Layer> |
||
213 | </Layers> |
||
214 | <Scripts> |
||
215 | <OnEnter> |
||
216 | getglobal(this:GetName().."SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b); |
||
217 | </OnEnter> |
||
218 | <OnLeave> |
||
219 | getglobal(this:GetName().."SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); |
||
220 | </OnLeave> |
||
221 | </Scripts> |
||
222 | <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/> |
||
223 | </Button> |
||
224 | </Frames> |
||
225 | <Scripts> |
||
226 | <OnLoad> |
||
227 | this:SetFrameLevel(10); |
||
228 | </OnLoad> |
||
229 | <OnClick> |
||
230 | MetaMapBWPMenu_Select(this:GetID()); |
||
231 | </OnClick> |
||
232 | <OnEnter> |
||
233 | getglobal(this:GetName().."Highlight"):Show(); |
||
234 | </OnEnter> |
||
235 | <OnLeave> |
||
236 | getglobal(this:GetName().."Highlight"):Hide(); |
||
237 | </OnLeave> |
||
238 | </Scripts> |
||
239 | <NormalFont name="$parentNormalText" justifyH="LEFT" inherits="GameFontNormalSmall"/> |
||
240 | <HighlightFont name="$parentHighlightText" justifyH="LEFT" inherits="GameFontHighlightSmall"/> |
||
241 | <DisabledFont name="$parentDisabledText" justifyH="LEFT" inherits="GameFontDisableSmall"/> |
||
242 | </Button> |
||
243 | |||
244 | <Frame name="MetaMapBWPMenu" toplevel="true" frameStrata="FULLSCREEN" hidden="true" parent="UIParent"> |
||
245 | <Size> |
||
246 | <AbsDimension x="200" y="190"/> |
||
247 | </Size> |
||
248 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
249 | <BackgroundInsets> |
||
250 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
251 | </BackgroundInsets> |
||
252 | <TileSize> |
||
253 | <AbsValue val="32"/> |
||
254 | </TileSize> |
||
255 | <EdgeSize> |
||
256 | <AbsValue val="32"/> |
||
257 | </EdgeSize> |
||
258 | </Backdrop> |
||
259 | <Layers> |
||
260 | <Layer level="ARTWORK"> |
||
261 | <FontString name="MetaMapBWPMenu_Title" inherits="GameFontGreen" text="BWP_NAME"> |
||
262 | <Anchors> |
||
263 | <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP"> |
||
264 | <Offset> |
||
265 | <AbsDimension x="0" y="-15"/> |
||
266 | </Offset> |
||
267 | </Anchor> |
||
268 | </Anchors> |
||
269 | </FontString> |
||
270 | </Layer> |
||
271 | </Layers> |
||
272 | <Frames> |
||
273 | <Button name="MetaMapBWPMenu_Option1" inherits="MetaMapBWPMenu_ButtonTemplate" id="1"> |
||
274 | <Anchors> |
||
275 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
276 | <Offset> |
||
277 | <AbsDimension x="40" y="-35"/> |
||
278 | </Offset> |
||
279 | </Anchor> |
||
280 | </Anchors> |
||
281 | </Button> |
||
282 | <Button name="MetaMapBWPMenu_Option2" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="2"> |
||
283 | <Anchors> |
||
284 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option1" relativePoint="BOTTOMLEFT"/> |
||
285 | </Anchors> |
||
286 | </Button> |
||
287 | <Button name="MetaMapBWPMenu_Option3" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="3"> |
||
288 | <Anchors> |
||
289 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option2" relativePoint="BOTTOMLEFT"/> |
||
290 | </Anchors> |
||
291 | </Button> |
||
292 | <Button name="MetaMapBWPMenu_Option4" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="4"> |
||
293 | <Anchors> |
||
294 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option3" relativePoint="BOTTOMLEFT"/> |
||
295 | </Anchors> |
||
296 | </Button> |
||
297 | <Button name="MetaMapBWPMenu_Option5" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="5"> |
||
298 | <Anchors> |
||
299 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option4" relativePoint="BOTTOMLEFT"/> |
||
300 | </Anchors> |
||
301 | </Button> |
||
302 | <Button name="MetaMapBWPMenu_Option6" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="6"> |
||
303 | <Anchors> |
||
304 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option5" relativePoint="BOTTOMLEFT"/> |
||
305 | </Anchors> |
||
306 | </Button> |
||
307 | <Button name="MetaMapBWPMenu_Option7" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="7"> |
||
308 | <Anchors> |
||
309 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option6" relativePoint="BOTTOMLEFT"/> |
||
310 | </Anchors> |
||
311 | </Button> |
||
312 | <Button name="MetaMapBWPMenu_Option8" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="8"> |
||
313 | <Anchors> |
||
314 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option7" relativePoint="BOTTOMLEFT"/> |
||
315 | </Anchors> |
||
316 | </Button> |
||
317 | <Button name="MetaMapBWPMenu_Option9" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="9"> |
||
318 | <Anchors> |
||
319 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option8" relativePoint="BOTTOMLEFT"/> |
||
320 | </Anchors> |
||
321 | </Button> |
||
322 | <Button name="MetaMapBWPMenu_Option10" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="10"> |
||
323 | <Anchors> |
||
324 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option9" relativePoint="BOTTOMLEFT"/> |
||
325 | </Anchors> |
||
326 | </Button> |
||
327 | <Button name="MetaMapBWPMenu_Option11" hidden="true" inherits="MetaMapBWPMenu_ButtonTemplate" id="11"> |
||
328 | <Anchors> |
||
329 | <Anchor point="TOPLEFT" relativeTo="MetaMapBWPMenu_Option10" relativePoint="BOTTOMLEFT"/> |
||
330 | </Anchors> |
||
331 | </Button> |
||
332 | <Frame name="$parentSliderMenu"> |
||
333 | <Size> |
||
334 | <AbsDimension x="200" y="100"/> |
||
335 | </Size> |
||
336 | <Anchors> |
||
337 | <Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM"> |
||
338 | <Offset> |
||
339 | <AbsDimension x="0" y="15" /> |
||
340 | </Offset> |
||
341 | </Anchor> |
||
342 | </Anchors> |
||
343 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
344 | <BackgroundInsets> |
||
345 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
346 | </BackgroundInsets> |
||
347 | <TileSize> |
||
348 | <AbsValue val="32"/> |
||
349 | </TileSize> |
||
350 | <EdgeSize> |
||
351 | <AbsValue val="32"/> |
||
352 | </EdgeSize> |
||
353 | </Backdrop> |
||
354 | <Layers> |
||
355 | <Layer level="ARTWORK"> |
||
356 | <FontString name="BWP_SetDistText" inherits="GameFontGreenSmall"> |
||
357 | <Anchors> |
||
358 | <Anchor point="TOP"> |
||
359 | <Offset> |
||
360 | <AbsDimension x="0" y="-38"/> |
||
361 | </Offset> |
||
362 | </Anchor> |
||
363 | </Anchors> |
||
364 | </FontString> |
||
365 | </Layer> |
||
366 | </Layers> |
||
367 | <Frames> |
||
368 | <Slider name="BWP_DistanceSlider" inherits="OptionsSliderTemplate"> |
||
369 | <Size> |
||
370 | <AbsDimension x="170" y="16"/> |
||
371 | </Size> |
||
372 | <Anchors> |
||
373 | <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP"> |
||
374 | <Offset> |
||
375 | <AbsDimension x="0" y="-25" /> |
||
376 | </Offset> |
||
377 | </Anchor> |
||
378 | </Anchors> |
||
379 | <Scripts> |
||
380 | <OnLoad> |
||
381 | getglobal(this:GetName().."Text"):SetText("Distance for Arrived Message"); |
||
382 | getglobal(this:GetName().."Low"):SetText("1"); |
||
383 | getglobal(this:GetName().."High"):SetText("40"); |
||
384 | this:SetMinMaxValues(0.0005, 0.01); |
||
385 | this:SetValueStep(0.0002); |
||
386 | </OnLoad> |
||
387 | <OnValueChanged> |
||
388 | MetaMapBWP_UpdateDistance(); |
||
389 | </OnValueChanged> |
||
390 | </Scripts> |
||
391 | </Slider> |
||
392 | <Slider name="BWP_AlphaSlider" inherits="OptionsSliderTemplate"> |
||
393 | <Size> |
||
394 | <AbsDimension x="170" y="16"/> |
||
395 | </Size> |
||
396 | <Anchors> |
||
397 | <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP"> |
||
398 | <Offset> |
||
399 | <AbsDimension x="0" y="-65" /> |
||
400 | </Offset> |
||
401 | </Anchor> |
||
402 | </Anchors> |
||
403 | <Scripts> |
||
404 | <OnLoad> |
||
405 | getglobal(this:GetName().."Text"):SetText("Set Waypoint Alpha"); |
||
406 | getglobal(this:GetName().."High"):SetText(); |
||
407 | getglobal(this:GetName().."Low"):SetText(); |
||
408 | this:SetMinMaxValues(0.0,1.0); |
||
409 | this:SetValueStep(0.01); |
||
410 | </OnLoad> |
||
411 | <OnValueChanged> |
||
412 | MetaMapBWP_UpdateAlpha(); |
||
413 | </OnValueChanged> |
||
414 | </Scripts> |
||
415 | </Slider> |
||
416 | </Frames> |
||
417 | </Frame> |
||
418 | </Frames> |
||
419 | <Scripts> |
||
420 | <OnLoad> |
||
421 | UIPanelWindows['MetaMapBWPMenu'] = {area = 'center', pushable = 0}; |
||
422 | </OnLoad> |
||
423 | <OnUpdate> |
||
424 | MetaMapBWPMenu_OnUpdate(); |
||
425 | </OnUpdate> |
||
426 | </Scripts> |
||
427 | </Frame> |
||
428 | </Ui> |