-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFlightMapTimes.xml
More file actions
118 lines (111 loc) · 3.48 KB
/
FlightMapTimes.xml
File metadata and controls
118 lines (111 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<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/">
<Script file="FlightMapTimes.lua"/>
<!-- This frame will only be shown when in flight. -->
<StatusBar name="FlightMapTimesFrame" toplevel="true" parent="UIParent"
hidden="true" movable="true" enableMouse="true"
drawLayer="BORDER">
<!-- Standard casting bar size is 195x13 -->
<Size>
<AbsDimension x="195" y="13"/>
</Size>
<!-- Throw it right into the middle of the screen -->
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<!-- Build up the layers of the bar -->
<Layers>
<!-- Alpha mask off the background a bit -->
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<!-- The text and border are just artwork -->
<Layer level="ARTWORK">
<FontString name="FlightMapTimesText" inherits="GameFontHighlight">
<Size>
<AbsDimension x="185" y="16"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<Texture name="FlightMapTimesBorder"
file="Interface\CastingBar\UI-CastingBar-Border">
<Size>
<AbsDimension x="256" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="28"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<!-- Overlay the moving spark to give a bright blended edge rather than
a sharp cut between done and not-done -->
<Texture name="FlightMapTimesSpark" alphaMode="ADD"
file="Interface\CastingBar\UI-CastingBar-Spark">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
<!-- Overlay a flash to cause the entire status bar to glow briefly as
it fades away -->
<Texture name="FlightMapTimesFlash" alphaMode="ADD"
file="Interface\CastingBar\UI-CastingBar-Flash">
<Size>
<AbsDimension x="256" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="28"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<!-- StatusBar specific settings -->
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="1.0" g="0.7" b="0.0"/>
<!-- Make it dance! -->
<Scripts>
<OnLoad>
FlightMapTimes_OnLoad();
</OnLoad>
<OnUpdate>
FlightMapTimes_OnUpdate();
</OnUpdate>
<OnDragStart>
FlightMapTimes_OnDragStart();
</OnDragStart>
<OnDragStop>
FlightMapTimes_OnDragStop();
</OnDragStop>
<OnMouseUp>
FlightMapTimes_OnDragStop();
</OnMouseUp>
<OnEnter>
GameTooltip_AddNewbieTip(FLIGHTMAP_NAME, 1.0, 1.0, 1.0,
FLIGHTMAP_TIMER_HELP, 1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</StatusBar>
</Ui>