vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <?xml-stylesheet type="text/xsl" href="/css/wowui.xsl"?> |
2 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
||
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
4 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> |
||
5 | <Script file="localisation.en.lua"/> |
||
6 | <Script file="localisation.cn.lua"/> |
||
7 | <Script file="localisation.de.lua"/> |
||
8 | <Script file="localisation.fr.lua"/> |
||
9 | <Script file="localisation.ko.lua"/> |
||
10 | <Script file="localisation.tw.lua"/> |
||
11 | <Script file="Defaults.lua"/> |
||
12 | <Script file="FlightMap.lua"/> |
||
13 | |||
14 | <!-- Hook OnLoad and OnEvent --> |
||
15 | <Frame name="FlightMapFrame" parent="UIParent" hidden="true"> |
||
16 | <Scripts> |
||
17 | <OnLoad> |
||
18 | FlightMap_OnLoad(); |
||
19 | </OnLoad> |
||
20 | <OnEvent> |
||
21 | FlightMap_OnEvent(event); |
||
22 | </OnEvent> |
||
23 | </Scripts> |
||
24 | </Frame> |
||
25 | |||
26 | <!-- Create a new tooltip for this AddOn, so the original WorldMap tip |
||
27 | still works --> |
||
28 | <GameTooltip name="FlightMapTooltip" parent="WorldMapFrame" hidden="true" |
||
29 | frameStrata="TOOLTIP" inherits="GameTooltipTemplate"> |
||
30 | <Scripts> |
||
31 | <OnLoad> |
||
32 | this:SetBackdropBorderColor( |
||
33 | TOOLTIP_DEFAULT_COLOR.r, |
||
34 | TOOLTIP_DEFAULT_COLOR.g, |
||
35 | TOOLTIP_DEFAULT_COLOR.b, |
||
36 | |||
37 | ); |
||
38 | this:SetBackdropColor( |
||
39 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, |
||
40 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, |
||
41 | TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, |
||
42 | |||
43 | ); |
||
44 | </OnLoad> |
||
45 | </Scripts> |
||
46 | </GameTooltip> |
||
47 | |||
48 | <!-- Flight path lines; thanks to MapNotes! --> |
||
49 | <Texture name="FlightMapPathTemplate" hidden="true" virtual="true" |
||
50 | file="Interface\AddOns\FlightMap\FlightMapUp"> |
||
51 | <Size> |
||
52 | <AbsDimension x="512" y="512"/> |
||
53 | </Size> |
||
54 | <Anchors> |
||
55 | <Anchor point="TOPLEFT"/> |
||
56 | </Anchors> |
||
57 | </Texture> |
||
58 | |||
59 | <!-- Extra POI icons for flight masters --> |
||
60 | <Button name="FlightMapPOITemplate" hidden="true" virtual="true"> |
||
61 | <Size> |
||
62 | <AbsDimension x="16" y="16"/> |
||
63 | </Size> |
||
64 | <NormalTexture file="Interface\TaxiFrame\UI-Taxi-Icon-Green"/> |
||
65 | <HighlightTexture file="Interface\TaxiFrame\UI-Taxi-Icon-Highlight"> |
||
66 | <Size x="32" y="32"/> |
||
67 | <Anchors> |
||
68 | <Anchor point="CENTER"> |
||
69 | <Offset> |
||
70 | <AbsDimension x="0" y="0"/> |
||
71 | </Offset> |
||
72 | </Anchor> |
||
73 | </Anchors> |
||
74 | </HighlightTexture> |
||
75 | <Scripts> |
||
76 | <OnEnter> |
||
77 | FlightMapPOIButton_OnEnter(); |
||
78 | </OnEnter> |
||
79 | <OnLeave> |
||
80 | WorldMapTooltip:Hide(); |
||
81 | </OnLeave> |
||
82 | </Scripts> |
||
83 | </Button> |
||
84 | |||
85 | <Texture name="FlightMapIconTemplate" hidden="true" virtual="true" |
||
86 | file="Interface\TaxiFrame\UI-Taxi-Icon-Green"> |
||
87 | <Size> |
||
88 | <AbsDimension x="16" y="16"/> |
||
89 | </Size> |
||
90 | <Anchors> |
||
91 | <Anchor point="CENTER"/> |
||
92 | </Anchors> |
||
93 | </Texture> |
||
94 | |||
95 | <Frame name="FlightMapPathFrame" parent="WorldMapDetailFrame" hidden="false"> |
||
96 | <Layers> |
||
97 | <Layer level="ARTWORK"> |
||
98 | <Texture name="FlightMapPath1" inherits="FlightMapPathTemplate"/> |
||
99 | <Texture name="FlightMapPath2" inherits="FlightMapPathTemplate"/> |
||
100 | <Texture name="FlightMapPath3" inherits="FlightMapPathTemplate"/> |
||
101 | <Texture name="FlightMapPath4" inherits="FlightMapPathTemplate"/> |
||
102 | <Texture name="FlightMapPath5" inherits="FlightMapPathTemplate"/> |
||
103 | <Texture name="FlightMapPath6" inherits="FlightMapPathTemplate"/> |
||
104 | <Texture name="FlightMapPath7" inherits="FlightMapPathTemplate"/> |
||
105 | <Texture name="FlightMapPath8" inherits="FlightMapPathTemplate"/> |
||
106 | <Texture name="FlightMapPath9" inherits="FlightMapPathTemplate"/> |
||
107 | <Texture name="FlightMapPath10" inherits="FlightMapPathTemplate"/> |
||
108 | <Texture name="FlightMapPath11" inherits="FlightMapPathTemplate"/> |
||
109 | <Texture name="FlightMapPath12" inherits="FlightMapPathTemplate"/> |
||
110 | <Texture name="FlightMapPath13" inherits="FlightMapPathTemplate"/> |
||
111 | <Texture name="FlightMapPath14" inherits="FlightMapPathTemplate"/> |
||
112 | <Texture name="FlightMapPath15" inherits="FlightMapPathTemplate"/> |
||
113 | </Layer> |
||
114 | </Layers> |
||
115 | <Frames> |
||
116 | <Button name="FlightMapPOI1" inherits="FlightMapPOITemplate"/> |
||
117 | <Button name="FlightMapPOI2" inherits="FlightMapPOITemplate"/> |
||
118 | <Button name="FlightMapPOI3" inherits="FlightMapPOITemplate"/> |
||
119 | <Button name="FlightMapPOI4" inherits="FlightMapPOITemplate"/> |
||
120 | <Button name="FlightMapPOI5" inherits="FlightMapPOITemplate"/> |
||
121 | <Button name="FlightMapPOI6" inherits="FlightMapPOITemplate"/> |
||
122 | <Button name="FlightMapPOI7" inherits="FlightMapPOITemplate"/> |
||
123 | <Button name="FlightMapPOI8" inherits="FlightMapPOITemplate"/> |
||
124 | <Button name="FlightMapPOI9" inherits="FlightMapPOITemplate"/> |
||
125 | <Button name="FlightMapPOI10" inherits="FlightMapPOITemplate"/> |
||
126 | <Button name="FlightMapPOI11" inherits="FlightMapPOITemplate"/> |
||
127 | <Button name="FlightMapPOI12" inherits="FlightMapPOITemplate"/> |
||
128 | <Button name="FlightMapPOI13" inherits="FlightMapPOITemplate"/> |
||
129 | <Button name="FlightMapPOI14" inherits="FlightMapPOITemplate"/> |
||
130 | <Button name="FlightMapPOI15" inherits="FlightMapPOITemplate"/> |
||
131 | </Frames> |
||
132 | </Frame> |
||
133 | |||
134 | <!-- Configuration checkbox template --> |
||
135 | <CheckButton name="FlightMapOptionsCheckButtonTemplate" |
||
136 | inherits="UICheckButtonTemplate" virtual="true"> |
||
137 | <Scripts> |
||
138 | <OnClick> |
||
139 | if (this:GetChecked()) then |
||
140 | PlaySound("igMainMenuOptionCheckBoxOff"); |
||
141 | else |
||
142 | PlaySound("igMainMenuOptionCheckBoxOn"); |
||
143 | end |
||
144 | FlightMapOptionsCheckButton_OnClick(); |
||
145 | </OnClick> |
||
146 | <OnEnter> |
||
147 | if (this.tooltipText) then |
||
148 | GameTooltip_AddNewbieTip(this.tooltipText, 1, 1, 1); |
||
149 | end |
||
150 | </OnEnter> |
||
151 | <OnLeave> |
||
152 | GameTooltip:Hide(); |
||
153 | </OnLeave> |
||
154 | </Scripts> |
||
155 | </CheckButton> |
||
156 | |||
157 | <!-- Configuration window --> |
||
158 | <Frame name="FlightMapOptionsFrame" toplevel="true" frameStrata="DIALOG" |
||
159 | movable="true" enableMouse="true" hidden="true" parent="UIParent" |
||
160 | enableKeyboard="true"> |
||
161 | <Size> |
||
162 | <AbsDimension x="350" y="265"/> |
||
163 | </Size> |
||
164 | <Anchors> |
||
165 | <Anchor point="CENTER"/> |
||
166 | </Anchors> |
||
167 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" |
||
168 | edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
169 | <BackgroundInsets> |
||
170 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
171 | </BackgroundInsets> |
||
172 | <TileSize> |
||
173 | <AbsValue val="32"/> |
||
174 | </TileSize> |
||
175 | <EdgeSize> |
||
176 | <AbsValue val="32"/> |
||
177 | </EdgeSize> |
||
178 | </Backdrop> |
||
179 | <Layers> |
||
180 | <Layer level="ARTWORK"> |
||
181 | <Texture name="FlightMapOptionsFrameHeader" |
||
182 | file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
183 | <Size> |
||
184 | <AbsDimension x="256" y="64"/> |
||
185 | </Size> |
||
186 | <Anchors> |
||
187 | <Anchor point="TOP"> |
||
188 | <Offset> |
||
189 | <AbsDimension x="0" y="12"/> |
||
190 | </Offset> |
||
191 | </Anchor> |
||
192 | </Anchors> |
||
193 | </Texture> |
||
194 | <FontString inherits="GameFontNormal" name="FlightMapOptionsFrameTitle" |
||
195 | text="FlightMap Options"> |
||
196 | <Anchors> |
||
197 | <Anchor point="TOP" relativeTo="FlightMapOptionsFrameHeader"> |
||
198 | <Offset> |
||
199 | <AbsDimension x="0" y="-14"/> |
||
200 | </Offset> |
||
201 | </Anchor> |
||
202 | </Anchors> |
||
203 | </FontString> |
||
204 | </Layer> |
||
205 | </Layers> |
||
206 | <Frames> |
||
207 | <!-- Option #1; row 1, column 1 --> |
||
208 | <CheckButton name="$parentOpt1" |
||
209 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
210 | <Anchors> |
||
211 | <Anchor point="TOPLEFT"> |
||
212 | <Offset> |
||
213 | <AbsDimension x="25" y="-25"/> |
||
214 | </Offset> |
||
215 | </Anchor> |
||
216 | </Anchors> |
||
217 | </CheckButton> |
||
218 | |||
219 | <!-- Option #2; row 2, column 1 --> |
||
220 | <CheckButton name="$parentOpt2" |
||
221 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
222 | <Anchors> |
||
223 | <Anchor point="TOPLEFT"> |
||
224 | <Offset> |
||
225 | <AbsDimension x="25" y="-55"/> |
||
226 | </Offset> |
||
227 | </Anchor> |
||
228 | </Anchors> |
||
229 | </CheckButton> |
||
230 | |||
231 | <!-- Option #3; row 3, column 1 --> |
||
232 | <CheckButton name="$parentOpt3" |
||
233 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
234 | <Anchors> |
||
235 | <Anchor point="TOPLEFT"> |
||
236 | <Offset> |
||
237 | <AbsDimension x="25" y="-85"/> |
||
238 | </Offset> |
||
239 | </Anchor> |
||
240 | </Anchors> |
||
241 | </CheckButton> |
||
242 | |||
243 | <!-- Option #4; row 4, column 1 --> |
||
244 | <CheckButton name="$parentOpt4" |
||
245 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
246 | <Anchors> |
||
247 | <Anchor point="TOPLEFT"> |
||
248 | <Offset> |
||
249 | <AbsDimension x="25" y="-115"/> |
||
250 | </Offset> |
||
251 | </Anchor> |
||
252 | </Anchors> |
||
253 | </CheckButton> |
||
254 | |||
255 | <!-- Option #5; row 5, column 1 --> |
||
256 | <CheckButton name="$parentOpt5" |
||
257 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
258 | <Anchors> |
||
259 | <Anchor point="TOPLEFT"> |
||
260 | <Offset> |
||
261 | <AbsDimension x="25" y="-145"/> |
||
262 | </Offset> |
||
263 | </Anchor> |
||
264 | </Anchors> |
||
265 | </CheckButton> |
||
266 | |||
267 | <!-- Option #6; row 1, column 2 --> |
||
268 | <CheckButton name="$parentOpt6" |
||
269 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
270 | <Anchors> |
||
271 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
272 | <Offset> |
||
273 | <AbsDimension x="-185" y="-25"/> |
||
274 | </Offset> |
||
275 | </Anchor> |
||
276 | </Anchors> |
||
277 | </CheckButton> |
||
278 | |||
279 | <!-- Option #7; row 2, column 2 --> |
||
280 | <CheckButton name="$parentOpt7" |
||
281 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
282 | <Anchors> |
||
283 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
284 | <Offset> |
||
285 | <AbsDimension x="-175" y="-55"/> |
||
286 | </Offset> |
||
287 | </Anchor> |
||
288 | </Anchors> |
||
289 | </CheckButton> |
||
290 | |||
291 | <!-- Option #8; row 3, column 2 --> |
||
292 | <CheckButton name="$parentOpt8" |
||
293 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
294 | <Anchors> |
||
295 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
296 | <Offset> |
||
297 | <AbsDimension x="-175" y="-85"/> |
||
298 | </Offset> |
||
299 | </Anchor> |
||
300 | </Anchors> |
||
301 | </CheckButton> |
||
302 | |||
303 | <!-- Option #9; row 4, column 2 --> |
||
304 | <CheckButton name="$parentOpt9" |
||
305 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
306 | <Anchors> |
||
307 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
308 | <Offset> |
||
309 | <AbsDimension x="-175" y="-115"/> |
||
310 | </Offset> |
||
311 | </Anchor> |
||
312 | </Anchors> |
||
313 | </CheckButton> |
||
314 | |||
315 | <!-- Option #10; row 5, column 2 --> |
||
316 | <CheckButton name="$parentOpt10" |
||
317 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
318 | <Anchors> |
||
319 | <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
||
320 | <Offset> |
||
321 | <AbsDimension x="-185" y="-145"/> |
||
322 | </Offset> |
||
323 | </Anchor> |
||
324 | </Anchors> |
||
325 | </CheckButton> |
||
326 | |||
327 | <!-- Option #11; row 6, column 1 --> |
||
328 | <CheckButton name="$parentOpt11" |
||
329 | inherits="FlightMapOptionsCheckButtonTemplate"> |
||
330 | <Anchors> |
||
331 | <Anchor point="TOPLEFT"> |
||
332 | <Offset> |
||
333 | <AbsDimension x="25" y="-175"/> |
||
334 | </Offset> |
||
335 | </Anchor> |
||
336 | </Anchors> |
||
337 | </CheckButton> |
||
338 | |||
339 | <Button name="FlightMapOptionsFrameClose" |
||
340 | inherits="OptionsButtonTemplate" text="Close"> |
||
341 | <Anchors> |
||
342 | <Anchor point="BOTTOM"> |
||
343 | <Offset> |
||
344 | <AbsDimension x="0" y="16"/> |
||
345 | </Offset> |
||
346 | </Anchor> |
||
347 | </Anchors> |
||
348 | <Scripts> |
||
349 | <OnClick> |
||
350 | PlaySound("gsTitleOptionOK"); |
||
351 | HideUIPanel(FlightMapOptionsFrame); |
||
352 | </OnClick> |
||
353 | </Scripts> |
||
354 | </Button> |
||
355 | </Frames> |
||
356 | <Scripts> |
||
357 | <OnShow> |
||
358 | FlightMapOptionsFrame_OnShow(); |
||
359 | </OnShow> |
||
360 | <OnHide> |
||
361 | FlightMapOptionsFrame_OnHide(); |
||
362 | </OnHide> |
||
363 | </Scripts> |
||
364 | </Frame> |
||
365 | |||
366 | </Ui> |