-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPerfectRaid.xml
More file actions
132 lines (132 loc) · 3.68 KB
/
PerfectRaid.xml
File metadata and controls
132 lines (132 loc) · 3.68 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<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">
<Frame name="PROptionsTemplate" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent" virtual="true" inherits="BackdropTemplate">
<Size>
<AbsDimension x="500" y="400"/>
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Frames>
<Button name="$parentHeader">
<Size>
<AbsDimension x="350" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="12"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\DialogFrame\UI-DialogBox-Header" setAllPoints="true">
</Texture>
<FontString name="$parentTitle" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP" relativeTo="$parentTexture">
<Offset>
<AbsDimension x="0" y="-14"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnMouseDown>
self:GetParent():StartMoving()
</OnMouseDown>
<OnMouseUp>
self:GetParent():StopMovingOrSizing()
</OnMouseUp>
</Scripts>
</Button>
<Button name="$parentCloseButton" hidden="false" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PerfectRaid:HasModule("PerfectRaid-Options"):ShowOptions()
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad>
local name = self:GetName()
table.insert(UISpecialFrames,name)
self.Title = getglobal(name.."Title")
</OnLoad>
<OnHide>
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
</OnHide>
</Scripts>
</Frame>
<Button name="PRTabTemplate" hidden="false" inherits="CharacterFrameTabButtonTemplate" virtual="true">>
<Size>
<AbsDimension x="115" y="32"/>
</Size>
<Scripts>
<OnLoad>
self:SetFrameLevel(2);
</OnLoad>
<OnClick>
PerfectRaid:HasModule("PerfectRaid-Options"):TabOnClick(self)
</OnClick>
</Scripts>
</Button>
<CheckButton name="PRCheckTemplate" hidden="true" inherits="UICheckButtonTemplate" virtual="true">
<Size><AbsDimension x="26" y="26"/></Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentLabel" inherits="GameFontHighlightSmall" text="Check Label">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset><AbsDimension x="5" y="0"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self.Label = getglobal(self:GetName().."Label")
</OnLoad>
</Scripts>
</CheckButton>
<Slider name="PRSliderTemplate" inherits="OptionsSliderTemplate" hidden="true" virtual="true">
<Size><AbsDimension x="160" y="16"/></Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentCurrent" inherits="GameFontHighlightSmall">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset><AbsDimension x="5" y="0"/></Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
local name = self:GetName()
self.Text = getglobal(name.."Text")
self.High = getglobal(name.."High")
self.Low = getglobal(name.."Low")
self.Current = getglobal(name.."Current")
</OnLoad>
<OnValueChanged>
self.Current:SetText(string.format("%.2f", self:GetValue()))
</OnValueChanged>
</Scripts>
</Slider>
<Button name="PRButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
</Button>
</Ui>