-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZHunterTranq.xml
executable file
·146 lines (144 loc) · 4.13 KB
/
ZHunterTranq.xml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<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">
<Script file="ZHunterTranq.lua"/>
<StatusBar name="ZHunterTranqTemplate" parent="UIParent" hidden="true" virtual="true">
<Size>
<AbsDimension x="128" y="12"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentTextLeft" inherits="GameFontHighlightSmall" text="Name" justifyH="LEFT" justifyV="CENTER">
<Size>
<AbsDimension x="88" y="12"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="2" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentTextRight" inherits="GameFontHighlightSmall" text="Time" justifyH="LEFT" justifyV="CENTER">
<Size>
<AbsDimension x="32" y="12"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-3" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentIcon" file="Interface\Icons\Spell_Nature_Drowsy" hidden="true">
<Size>
<AbsDimension x="14" y="14"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="-16" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Size>
<AbsDimension x="12" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Frame>
<Size>
<AbsDimension x="132" y="16"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<TileSize>
<AbsValue val="10"/>
</TileSize>
<EdgeSize>
<AbsValue val="10"/>
</EdgeSize>
</Backdrop>
</Frame>
</Frames>
<Scripts>
<OnLoad>
this:SetMinMaxValues(0,1)
</OnLoad>
<OnUpdate>
ZHunterTranqTemplate_OnUpdate()
</OnUpdate>
<OnHide>
getglobal(this:GetName().."Icon"):Hide()
</OnHide>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.0" g="1.0" b="0.0"/>
</StatusBar>
<StatusBar name="ZHunterTranq0" enableMouse="true" movable="true" inherits="ZHunterTranqTemplate">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED")
this:SetMinMaxValues(0,1)
this:RegisterForDrag("LeftButton", "RightButton")
</OnLoad>
<OnEvent>
ZHunterTranq_OnEvent()
</OnEvent>
<OnMouseUp>
if ( this.isMoving ) then
this:StopMovingOrSizing()
this.isMoving = false
end
</OnMouseUp>
<OnDragStart>
if IsAltKeyDown() then
this:StartMoving()
this.isMoving = true
end
</OnDragStart>
<OnDragStop>
this:StopMovingOrSizing()
this.isMoving = false
</OnDragStop>
</Scripts>
</StatusBar>
<StatusBar name="ZHunterTranq1" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq2" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq3" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq4" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq5" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq6" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq7" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq8" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq9" inherits="ZHunterTranqTemplate"/>
<StatusBar name="ZHunterTranq10" inherits="ZHunterTranqTemplate"/>
</Ui>