Repository navigation
Expand file tree
/
Copy pathVsiFrame.xml
More file actions
102 lines (90 loc) · 2.88 KB
/
Copy pathVsiFrame.xml
File metadata and controls
102 lines (90 loc) · 2.88 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
<Ui xmlns="http://www.blizzard.com/wow/ui"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="UI.xsd">
<!-- Container frame - plain with no border -->
<Frame name="vsiFrame" moveable="true" clampedToScreen="true">
<Size>
<AbsDimension x="80" y="140" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIParent">
<Offset>
<AbsDimension x="-100" y="400" />
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true" />
<Layers>
<Layer>
<FontString name="attitudeText" inherits="GameFontNormal">
<Size>
<AbsDimension x="131" y="16" />
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset x="0" y="15" />
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<!-- Statusbar updates are currently controlled by the main frame OnUpdate callback -->
<StatusBar name="$_posAttitudeBar" parentKey="posAttitudeBar" toplevel="true" orientation="VERTICAL" minValue="0" maxValue="90" defaultValue="0">
<Backdrop bgFile="Interface\Buttons\UI-Listbox-Highlight2" />
<BarTexture file="Interface\Buttons\UI-Listbox-Highlight2"/>
<BarColor r="1.0" g="155" b="255"/>
<Size>
<AbsDimension x="8" y="45" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset x="0" y="-15" />
</Anchor>
</Anchors>
<Scripts>
</Scripts>
<!-- Add the center "level flight" texture to the bottom of the positive attitude bar -->
<Layers>
<Layer level="OVERLAY">
<Texture name="levelFlightMarker" file="Interface\AddOns\CrocsFlightInstruments\images\level-flight-marker" setAllPoints="true">
<Anchors>
<Anchor point="CENTER" relativePoint="BOTTOM"></Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
</StatusBar>
<!-- Negative pitch bar -->
<!-- The background acts as the bar here to simulate a downwards fills bar. The StatusBar looks like the background due to it;s colour settings and the fact that it defaults to maxValue -->
<StatusBar name="$_negAttitudeBar" parentKey="negAttitudeBar" toplevel="true" orientation="VERTICAL" minValue="0" maxValue="90" defaultValue="90">
<Backdrop bgFile="Interface\Buttons\UI-Listbox-Highlight2" />
<BarTexture file="Interface\Buttons\UI-Listbox-Highlight2"/>
<BarColor r="0" g="0" b="0"/>
<Size>
<AbsDimension x="8" y="45" />
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$_posAttitudeBar" relativePoint="BOTTOM"/>
</Anchors>
<Scripts>
</Scripts>
</StatusBar>
</Frames>
<Scripts>
<OnLoad>
vsiFrame_onLoad(self);
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnDragStart>
self:StartMoving();
</OnDragStart>
<OnDragStop>
self:StopMovingOrSizing();
</OnDragStop>
<OnUpdate>
vsiFrame_OnUpdate(self, elapsed);
</OnUpdate>
</Scripts>
</Frame>
</Ui>