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/ |
2 | C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> |
||
3 | <Script file="CT_ResetFrame.lua"/> |
||
4 | <Frame name="CT_ResetButtonTemplate" virtual="true" hidden="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="350" y="32"/> |
||
7 | </Size> |
||
8 | <Frames> |
||
9 | <CheckButton name="$parentCheckButton" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
10 | <Anchors> |
||
11 | <Anchor point="TOPLEFT"/> |
||
12 | </Anchors> |
||
13 | <HitRectInsets> |
||
14 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
15 | </HitRectInsets> |
||
16 | <Size> |
||
17 | <AbsDimension x="32" y="32"/> |
||
18 | </Size> |
||
19 | <Scripts> |
||
20 | <OnClick> |
||
21 | CT_ResetFrame_Check(); |
||
22 | </OnClick> |
||
23 | </Scripts> |
||
24 | </CheckButton> |
||
25 | </Frames> |
||
26 | <Layers> |
||
27 | <Layer level="ARTWORK"> |
||
28 | <FontString name="$parentName" inherits="ChatFontNormal" text=""> |
||
29 | <Anchors> |
||
30 | <Anchor point="LEFT"> |
||
31 | <Offset> |
||
32 | <AbsDimension x="35" y="2"/> |
||
33 | </Offset> |
||
34 | </Anchor> |
||
35 | </Anchors> |
||
36 | </FontString> |
||
37 | </Layer> |
||
38 | </Layers> |
||
39 | </Frame> |
||
40 | <Frame name="CT_ResetFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent"> |
||
41 | <Size> |
||
42 | <AbsDimension x="400" y="450"/> |
||
43 | </Size> |
||
44 | <Anchors> |
||
45 | <Anchor point="CENTER"/> |
||
46 | </Anchors> |
||
47 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
48 | <BackgroundInsets> |
||
49 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
50 | </BackgroundInsets> |
||
51 | <TileSize> |
||
52 | <AbsValue val="32"/> |
||
53 | </TileSize> |
||
54 | <EdgeSize> |
||
55 | <AbsValue val="32"/> |
||
56 | </EdgeSize> |
||
57 | </Backdrop> |
||
58 | <Layers> |
||
59 | <Layer level="ARTWORK"> |
||
60 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
61 | <Size> |
||
62 | <AbsDimension x="256" y="64"/> |
||
63 | </Size> |
||
64 | <Anchors> |
||
65 | <Anchor point="TOP"> |
||
66 | <Offset> |
||
67 | <AbsDimension x="0" y="12"/> |
||
68 | </Offset> |
||
69 | </Anchor> |
||
70 | </Anchors> |
||
71 | </Texture> |
||
72 | <FontString inherits="GameFontNormal" text="Reset Frames"> |
||
73 | <Anchors> |
||
74 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
75 | <Offset> |
||
76 | <AbsDimension x="0" y="-14"/> |
||
77 | </Offset> |
||
78 | </Anchor> |
||
79 | </Anchors> |
||
80 | </FontString> |
||
81 | <FontString name="$parentCheckAll" inherits="GameFontNormal" text="Check all frames"> |
||
82 | <Anchors> |
||
83 | <Anchor point="TOPLEFT"> |
||
84 | <Offset> |
||
85 | <AbsDimension x="75" y="-35"/> |
||
86 | </Offset> |
||
87 | </Anchor> |
||
88 | </Anchors> |
||
89 | </FontString> |
||
90 | </Layer> |
||
91 | </Layers> |
||
92 | <Frames> |
||
93 | <Frame name="$parentDrag"> |
||
94 | <Size> |
||
95 | <AbsDimension x="150" y="32"/> |
||
96 | </Size> |
||
97 | <Anchors> |
||
98 | <Anchor point="TOP"> |
||
99 | <Offset> |
||
100 | <AbsDimension x="-12" y="12"/> |
||
101 | </Offset> |
||
102 | </Anchor> |
||
103 | </Anchors> |
||
104 | <Scripts> |
||
105 | <OnMouseDown> |
||
106 | if ( arg1 == "LeftButton" ) then |
||
107 | this:GetParent():StartMoving(); |
||
108 | elseif ( arg1 == "RightButton" ) then |
||
109 | this:GetParent():ClearAllPoints(); |
||
110 | this:GetParent():SetPoint("CENTER", "UIParent", "CENTER"); |
||
111 | end |
||
112 | </OnMouseDown> |
||
113 | <OnMouseUp> |
||
114 | this:GetParent():StopMovingOrSizing(); |
||
115 | </OnMouseUp> |
||
116 | <OnEnter> |
||
117 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
118 | GameTooltip:SetText("Left-click to drag\nRight-click to reset"); |
||
119 | </OnEnter> |
||
120 | <OnLeave> |
||
121 | GameTooltip:Hide(); |
||
122 | </OnLeave> |
||
123 | </Scripts> |
||
124 | </Frame> |
||
125 | <CheckButton name="$parentAllChecked" hidden="false" inherits="OptionsCheckButtonTemplate"> |
||
126 | <Anchors> |
||
127 | <Anchor point="TOPLEFT"> |
||
128 | <Offset> |
||
129 | <AbsDimension x="45" y="-25"/> |
||
130 | </Offset> |
||
131 | </Anchor> |
||
132 | </Anchors> |
||
133 | <HitRectInsets> |
||
134 | <AbsInset left="0" right="0" top="0" bottom="0"/> |
||
135 | </HitRectInsets> |
||
136 | <Size> |
||
137 | <AbsDimension x="32" y="32"/> |
||
138 | </Size> |
||
139 | <Scripts> |
||
140 | <OnClick> |
||
141 | CT_ResetFrame_CheckAll(this:GetChecked()); |
||
142 | </OnClick> |
||
143 | </Scripts> |
||
144 | </CheckButton> |
||
145 | <ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
146 | <Size> |
||
147 | <AbsDimension x="344" y="325"/> |
||
148 | </Size> |
||
149 | <Anchors> |
||
150 | <Anchor point="TOPLEFT"> |
||
151 | <Offset> |
||
152 | <AbsDimension x="19" y="-75"/> |
||
153 | </Offset> |
||
154 | </Anchor> |
||
155 | </Anchors> |
||
156 | <Scripts> |
||
157 | <OnVerticalScroll> |
||
158 | FauxScrollFrame_OnVerticalScroll(32, CT_ResetFrame_Update); |
||
159 | </OnVerticalScroll> |
||
160 | </Scripts> |
||
161 | </ScrollFrame> |
||
162 | <Frame name="$parentBackdrop"> |
||
163 | <Size> |
||
164 | <AbsDimension x="325" y="345"/> |
||
165 | </Size> |
||
166 | <Anchors> |
||
167 | <Anchor point="TOP"> |
||
168 | <Offset> |
||
169 | <AbsDimension x="0" y="-65"/> |
||
170 | </Offset> |
||
171 | </Anchor> |
||
172 | </Anchors> |
||
173 | <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" bgFile="Interface\Tooltips\UI-Tooltip-Background" tile="true"> |
||
174 | <EdgeSize> |
||
175 | <AbsValue val="16"/> |
||
176 | </EdgeSize> |
||
177 | <TileSize> |
||
178 | <AbsValue val="16"/> |
||
179 | </TileSize> |
||
180 | <BackgroundInsets> |
||
181 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
182 | </BackgroundInsets> |
||
183 | </Backdrop> |
||
184 | <Scripts> |
||
185 | <OnLoad> |
||
186 | this:SetBackdropColor(0, 0, 0, 0.35); |
||
187 | </OnLoad> |
||
188 | </Scripts> |
||
189 | <Frames> |
||
190 | <Frame name="$parentButton1" inherits="CT_ResetButtonTemplate" id="1"> |
||
191 | <Anchors> |
||
192 | <Anchor point="TOPLEFT"> |
||
193 | <Offset> |
||
194 | <AbsDimension x="10" y="-10"/> |
||
195 | </Offset> |
||
196 | </Anchor> |
||
197 | </Anchors> |
||
198 | </Frame> |
||
199 | <Frame name="$parentButton2" inherits="CT_ResetButtonTemplate" id="2"> |
||
200 | <Anchors> |
||
201 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton1"> |
||
202 | <Offset> |
||
203 | <AbsDimension x="0" y="0"/> |
||
204 | </Offset> |
||
205 | </Anchor> |
||
206 | </Anchors> |
||
207 | </Frame> |
||
208 | <Frame name="$parentButton3" inherits="CT_ResetButtonTemplate" id="3"> |
||
209 | <Anchors> |
||
210 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton2"> |
||
211 | <Offset> |
||
212 | <AbsDimension x="0" y="0"/> |
||
213 | </Offset> |
||
214 | </Anchor> |
||
215 | </Anchors> |
||
216 | </Frame> |
||
217 | <Frame name="$parentButton4" inherits="CT_ResetButtonTemplate" id="4"> |
||
218 | <Anchors> |
||
219 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton3"> |
||
220 | <Offset> |
||
221 | <AbsDimension x="0" y="0"/> |
||
222 | </Offset> |
||
223 | </Anchor> |
||
224 | </Anchors> |
||
225 | </Frame> |
||
226 | <Frame name="$parentButton5" inherits="CT_ResetButtonTemplate" id="5"> |
||
227 | <Anchors> |
||
228 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton4"> |
||
229 | <Offset> |
||
230 | <AbsDimension x="0" y="0"/> |
||
231 | </Offset> |
||
232 | </Anchor> |
||
233 | </Anchors> |
||
234 | </Frame> |
||
235 | <Frame name="$parentButton6" inherits="CT_ResetButtonTemplate" id="6"> |
||
236 | <Anchors> |
||
237 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton5"> |
||
238 | <Offset> |
||
239 | <AbsDimension x="0" y="0"/> |
||
240 | </Offset> |
||
241 | </Anchor> |
||
242 | </Anchors> |
||
243 | </Frame> |
||
244 | <Frame name="$parentButton7" inherits="CT_ResetButtonTemplate" id="7"> |
||
245 | <Anchors> |
||
246 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton6"> |
||
247 | <Offset> |
||
248 | <AbsDimension x="0" y="0"/> |
||
249 | </Offset> |
||
250 | </Anchor> |
||
251 | </Anchors> |
||
252 | </Frame> |
||
253 | <Frame name="$parentButton8" inherits="CT_ResetButtonTemplate" id="8"> |
||
254 | <Anchors> |
||
255 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton7"> |
||
256 | <Offset> |
||
257 | <AbsDimension x="0" y="0"/> |
||
258 | </Offset> |
||
259 | </Anchor> |
||
260 | </Anchors> |
||
261 | </Frame> |
||
262 | <Frame name="$parentButton9" inherits="CT_ResetButtonTemplate" id="9"> |
||
263 | <Anchors> |
||
264 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton8"> |
||
265 | <Offset> |
||
266 | <AbsDimension x="0" y="0"/> |
||
267 | </Offset> |
||
268 | </Anchor> |
||
269 | </Anchors> |
||
270 | </Frame> |
||
271 | <Frame name="$parentButton10" inherits="CT_ResetButtonTemplate" id="10"> |
||
272 | <Anchors> |
||
273 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentButton9"> |
||
274 | <Offset> |
||
275 | <AbsDimension x="0" y="0"/> |
||
276 | </Offset> |
||
277 | </Anchor> |
||
278 | </Anchors> |
||
279 | </Frame> |
||
280 | </Frames> |
||
281 | </Frame> |
||
282 | <Button name="$parentResetButton" hidden="false" inherits="GameMenuButtonTemplate" text="Reset"> |
||
283 | <Size> |
||
284 | <AbsDimension x="100" y="25"/> |
||
285 | </Size> |
||
286 | <Anchors> |
||
287 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> |
||
288 | <Offset> |
||
289 | <AbsDimension x="-10" y="12"/> |
||
290 | </Offset> |
||
291 | </Anchor> |
||
292 | </Anchors> |
||
293 | <Scripts> |
||
294 | <OnClick> |
||
295 | CT_ResetFrame_ResetSelected(); |
||
296 | this:GetParent():Hide(); |
||
297 | </OnClick> |
||
298 | </Scripts> |
||
299 | </Button> |
||
300 | <Button name="$parentCancelButton" hidden="false" inherits="GameMenuButtonTemplate" text="Cancel"> |
||
301 | <Size> |
||
302 | <AbsDimension x="100" y="25"/> |
||
303 | </Size> |
||
304 | <Anchors> |
||
305 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM"> |
||
306 | <Offset> |
||
307 | <AbsDimension x="10" y="12"/> |
||
308 | </Offset> |
||
309 | </Anchor> |
||
310 | </Anchors> |
||
311 | <Scripts> |
||
312 | <OnClick> |
||
313 | this:GetParent():Hide(); |
||
314 | </OnClick> |
||
315 | </Scripts> |
||
316 | </Button> |
||
317 | </Frames> |
||
318 | <Scripts> |
||
319 | <OnHide> |
||
320 | PlaySound("UChatScrollButton"); |
||
321 | </OnHide> |
||
322 | <OnShow> |
||
323 | CT_ResetFrame_Update(); |
||
324 | CT_ResetFrame_CheckAll(nil); |
||
325 | PlaySound("UChatScrollButton"); |
||
326 | </OnShow> |
||
327 | </Scripts> |
||
328 | </Frame> |
||
329 | </Ui> |