vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
2 | <Script file="FixCTGroups.lua"/> |
||
3 | |||
4 | <!-- Frame to handle all core events --> |
||
5 | <Frame name="FixCTGroupsCore"> |
||
6 | <Scripts> |
||
7 | <OnLoad> |
||
8 | this:RegisterEvent("VARIABLES_LOADED"); |
||
9 | </OnLoad> |
||
10 | <OnEvent> |
||
11 | if (event == "VARIABLES_LOADED") then |
||
12 | FixCTGroupsInit(); |
||
13 | end |
||
14 | </OnEvent> |
||
15 | </Scripts> |
||
16 | </Frame> |
||
17 | |||
18 | <Frame name="FixCTGroupsConfigFrame" |
||
19 | toplevel="true" parent="UIParent" frameStrata="DIALOG" |
||
20 | hidden="true" enableMouse="true"> |
||
21 | <Size> |
||
22 | <AbsDimension x="260" y="280"/> |
||
23 | </Size> |
||
24 | <Anchors> |
||
25 | <Anchor point="CENTER"/> |
||
26 | </Anchors> |
||
27 | |||
28 | <Scripts> |
||
29 | <OnLoad> |
||
30 | <!-- allow pressing escape to close frame --> |
||
31 | tinsert(UISpecialFrames, this:GetName()); |
||
32 | </OnLoad> |
||
33 | <OnShow> FixCTGroupsConfigFrameOnShow(); </OnShow> |
||
34 | </Scripts> |
||
35 | |||
36 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" |
||
37 | edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
38 | <BackgroundInsets> |
||
39 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
40 | </BackgroundInsets> |
||
41 | <TileSize> |
||
42 | <AbsValue val="32"/> |
||
43 | </TileSize> |
||
44 | <EdgeSize> |
||
45 | <AbsValue val="32"/> |
||
46 | </EdgeSize> |
||
47 | </Backdrop> |
||
48 | |||
49 | <!-- title header --> |
||
50 | <Layers> |
||
51 | <Layer level="ARTWORK"> |
||
52 | <Texture file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
53 | <Size> |
||
54 | <AbsDimension x="256" y="64"/> |
||
55 | </Size> |
||
56 | <Anchors> |
||
57 | <Anchor point="TOP"> |
||
58 | <Offset> |
||
59 | <AbsDimension x="0" y="12"/> |
||
60 | </Offset> |
||
61 | </Anchor> |
||
62 | </Anchors> |
||
63 | </Texture> |
||
64 | </Layer> |
||
65 | <Layer level="OVERLAY"> |
||
66 | <FontString inherits="GameFontNormal" text="Fix CT Groups Config"> |
||
67 | <Anchors> |
||
68 | <Anchor point="TOP" relativeTo="$parent"></Anchor> |
||
69 | </Anchors> |
||
70 | </FontString> |
||
71 | </Layer> |
||
72 | </Layers> |
||
73 | |||
74 | <Frames> |
||
75 | <!-- close button --> |
||
76 | <Button name="$parentClose" inherits="OptionsButtonTemplate" text="Close"> |
||
77 | <Anchors> |
||
78 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM"> |
||
79 | <Offset> |
||
80 | <AbsDimension x="4" y="16"/> |
||
81 | </Offset> |
||
82 | </Anchor> |
||
83 | </Anchors> |
||
84 | <Scripts> |
||
85 | <OnClick> this:GetParent():Hide(); </OnClick> |
||
86 | </Scripts> |
||
87 | </Button> |
||
88 | |||
89 | <!-- groups button --> |
||
90 | <Button name="$parentGroups" inherits="OptionsButtonTemplate" text="Groups"> |
||
91 | <Anchors> |
||
92 | <Anchor relativeTo="$parentClose" point="BOTTOM" relativePoint="TOPLEFT"> |
||
93 | <Offset> |
||
94 | <AbsDimension x="0" y="8"/> |
||
95 | </Offset> |
||
96 | </Anchor> |
||
97 | </Anchors> |
||
98 | <Scripts> |
||
99 | <OnClick> FixCTGroupsCellsFrame:Show(); </OnClick> |
||
100 | </Scripts> |
||
101 | </Button> |
||
102 | |||
103 | <!-- default button --> |
||
104 | <Button name="$parentDefault" inherits="OptionsButtonTemplate" text="Defaults"> |
||
105 | <Anchors> |
||
106 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> |
||
107 | <Offset> |
||
108 | <AbsDimension x="-4" y="16"/> |
||
109 | </Offset> |
||
110 | </Anchor> |
||
111 | </Anchors> |
||
112 | <Scripts> |
||
113 | <OnClick> FixCTGroupsSetDefaultConfig(); </OnClick> |
||
114 | </Scripts> |
||
115 | </Button> |
||
116 | |||
117 | <!-- checkbox options --> |
||
118 | <CheckButton name="$parentCTRADefault" inherits="OptionsCheckButtonTemplate"> |
||
119 | <Anchors> |
||
120 | <Anchor point="TOPLEFT" relativeTo="$parent"> |
||
121 | <Offset> |
||
122 | <AbsDimension x="20" y="-32"/> |
||
123 | </Offset> |
||
124 | </Anchor> |
||
125 | </Anchors> |
||
126 | <Scripts> |
||
127 | <OnLoad> getglobal(this:GetName().."Text"):SetText("Default CTRA Style"); </OnLoad> |
||
128 | <OnClick> FixCTGroupsConfigFrameOptionOnClick(); </OnClick> |
||
129 | </Scripts> |
||
130 | </CheckButton> |
||
131 | |||
132 | <!--CheckButton name="$parentLinkAllGroups" inherits="OptionsCheckButtonTemplate"> |
||
133 | <Anchors> |
||
134 | <Anchor point="TOPLEFT" relativeTo="$parentCTRADefault" relativePoint="BOTTOMLEFT"> |
||
135 | <Offset> |
||
136 | <AbsDimension x="0" y="0"/> |
||
137 | </Offset> |
||
138 | </Anchor> |
||
139 | </Anchors> |
||
140 | <Scripts> |
||
141 | <OnLoad> getglobal(this:GetName().."Text"):SetText("Link All Groups"); </OnLoad> |
||
142 | <OnClick> FixCTGroupsConfigFrameOptionOnClick(); </OnClick> |
||
143 | </Scripts> |
||
144 | </CheckButton--> |
||
145 | |||
146 | <CheckButton name="$parentShowGroups" inherits="OptionsCheckButtonTemplate"> |
||
147 | <Anchors> |
||
148 | <Anchor point="TOPLEFT" relativeTo="$parentCTRADefault" relativePoint="BOTTOMLEFT"> |
||
149 | <Offset> |
||
150 | <AbsDimension x="0" y="0"/> |
||
151 | </Offset> |
||
152 | </Anchor> |
||
153 | </Anchors> |
||
154 | <Scripts> |
||
155 | <OnLoad> getglobal(this:GetName().."Text"):SetText("Show Groups"); </OnLoad> |
||
156 | <OnClick> FixCTGroupsConfigFrameOptionOnClick(); </OnClick> |
||
157 | </Scripts> |
||
158 | </CheckButton> |
||
159 | |||
160 | <!-- spacing sliders --> |
||
161 | <Slider name="$parentSpacingX" inherits="OptionsSliderTemplate"> |
||
162 | <Size> |
||
163 | <AbsDimension x="220" y="16"/> |
||
164 | </Size> |
||
165 | <Anchors> |
||
166 | <Anchor point="TOPLEFT" relativeTo="$parentShowGroups" relativePoint="BOTTOMLEFT"> |
||
167 | <Offset> |
||
168 | <AbsDimension x="0" y="-24"/> |
||
169 | </Offset> |
||
170 | </Anchor> |
||
171 | </Anchors> |
||
172 | <Scripts> |
||
173 | <OnLoad> |
||
174 | getglobal(this:GetName().."Text"):SetText("Horizontal Spacing"); |
||
175 | getglobal(this:GetName().."High"):SetText(""); |
||
176 | getglobal(this:GetName().."Low"):SetText(""); |
||
177 | this:SetMinMaxValues(-15,15); |
||
178 | this:SetValueStep(1); |
||
179 | </OnLoad> |
||
180 | <OnValueChanged> FixCTGroupsConfigFrameOptionOnClick(); </OnValueChanged> |
||
181 | </Scripts> |
||
182 | </Slider> |
||
183 | |||
184 | <Slider name="$parentSpacingY" inherits="OptionsSliderTemplate"> |
||
185 | <Size> |
||
186 | <AbsDimension x="220" y="16"/> |
||
187 | </Size> |
||
188 | <Anchors> |
||
189 | <Anchor point="TOPLEFT" relativeTo="$parentSpacingX" relativePoint="BOTTOMLEFT"> |
||
190 | <Offset> |
||
191 | <AbsDimension x="0" y="-24"/> |
||
192 | </Offset> |
||
193 | </Anchor> |
||
194 | </Anchors> |
||
195 | <Scripts> |
||
196 | <OnLoad> |
||
197 | getglobal(this:GetName().."Text"):SetText("Vertical Spacing"); |
||
198 | getglobal(this:GetName().."High"):SetText(""); |
||
199 | getglobal(this:GetName().."Low"):SetText(""); |
||
200 | this:SetMinMaxValues(-100,0); |
||
201 | this:SetValueStep(1); |
||
202 | </OnLoad> |
||
203 | <OnValueChanged> FixCTGroupsConfigFrameOptionOnClick(); </OnValueChanged> |
||
204 | </Scripts> |
||
205 | </Slider> |
||
206 | |||
207 | </Frames> |
||
208 | |||
209 | </Frame> |
||
210 | </Ui> |
||
211 |