-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFiveSec.xml
92 lines (88 loc) · 3.09 KB
/
FiveSec.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
<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="localization.lua" />
<Script file="TNEUtils.lua" />
<Script file="FiveSec.lua" />
<GameTooltip name="FiveSecTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate" />
<StatusBar name="FiveSecBarFrame" drawLayer="BORDER" toplevel="true" parent="UIParent" movable="true">
<Size>
<AbsDimension x="195" y="13" />
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="120" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
<Color r="0" g="0" b="0" a="0.5" />
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentDelay" inherits="GameFontHighlight" justifyh="CENTER" hidden="true" setAllPoints="true" text="TNE_FiveSec_DELAYED_BY_CHANNELING" />
<FontString name="$parentLabel" inherits="GameFontHighlight" justifyh="RIGHT" text="TNE_FiveSec_NEXT_TICK_IN">
<Size>
<AbsDimension x="115" y="12" />
</Size>
<Anchors>
<Anchor point="LEFT" />
</Anchors>
</FontString>
<FontString name="$parentText" inherits="GameFontHighlight" justifyh="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLabel" relativePoint="RIGHT" />
</Anchors>
</FontString>
<Texture name="$parentBorder" file="Interface\Tooltips\UI-StatusBar-Border">
<Size>
<AbsDimension x="205" y="20" />
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="3" />
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Size>
<AbsDimension x="32" y="32" />
</Size>
<Anchors>
<Anchor point="CENTER" />
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED")
this:RegisterEvent("UNIT_DISPLAYPOWER") -- we need this to detect mana users and shifty druids
this:RegisterForDrag("LeftButton")
FiveSec:Initalize()
</OnLoad>
<OnEvent>
FiveSecBarFrame_OnEvent(event, arg1)
</OnEvent>
<OnUpdate>
FiveSecBarFrame_OnUpdate(arg1)
</OnUpdate>
<OnDragStart>
if (TNE_FiveSec_Movable) then
this:StartMoving()
end
</OnDragStart>
<OnDragStop>
this:StopMovingOrSizing()
</OnDragStop>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar" />
<BarColor r="0.0" g="0.7" b="1.0" />
</StatusBar>
</Ui>