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_Viewport.lua"/> |
||
4 | <EditBox name="CT_Viewport_EditBoxTemplate" autoFocus="false" historyLines="0" letters="4" virtual="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="60" y="25"/> |
||
7 | </Size> |
||
8 | <Layers> |
||
9 | <Layer level="BACKGROUND"> |
||
10 | <Texture name="$parentLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left"> |
||
11 | <Size> |
||
12 | <AbsDimension x="65" y="32"/> |
||
13 | </Size> |
||
14 | <Anchors> |
||
15 | <Anchor point="LEFT"> |
||
16 | <Offset> |
||
17 | <AbsDimension x="-10" y="0"/> |
||
18 | </Offset> |
||
19 | </Anchor> |
||
20 | </Anchors> |
||
21 | <TexCoords left="0" right="0.2539" top="0" bottom="1.0"/> |
||
22 | </Texture> |
||
23 | <Texture name="$parentRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right"> |
||
24 | <Size> |
||
25 | <AbsDimension x="25" y="32"/> |
||
26 | </Size> |
||
27 | <Anchors> |
||
28 | <Anchor point="RIGHT"> |
||
29 | <Offset> |
||
30 | <AbsDimension x="10" y="0"/> |
||
31 | </Offset> |
||
32 | </Anchor> |
||
33 | </Anchors> |
||
34 | <TexCoords left="0.9" right="1.0" top="0" bottom="1.0"/> |
||
35 | </Texture> |
||
36 | <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left"> |
||
37 | <Size> |
||
38 | <AbsDimension x="5" y="32"/> |
||
39 | </Size> |
||
40 | <Anchors> |
||
41 | <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"> |
||
42 | <Offset> |
||
43 | <AbsDimension x="0" y="0"/> |
||
44 | </Offset> |
||
45 | </Anchor> |
||
46 | <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"> |
||
47 | <Offset> |
||
48 | <AbsDimension x="0" y="0"/> |
||
49 | </Offset> |
||
50 | </Anchor> |
||
51 | </Anchors> |
||
52 | <TexCoords left="0.29296875" right="1.0" top="0" bottom="1.0"/> |
||
53 | </Texture> |
||
54 | </Layer> |
||
55 | </Layers> |
||
56 | <FontString inherits="ChatFontNormal"/> |
||
57 | <Scripts> |
||
58 | <OnEscapePressed> |
||
59 | this:ClearFocus(); |
||
60 | </OnEscapePressed> |
||
61 | <OnEnterPressed> |
||
62 | CT_Viewport_ChangeViewportSide(); |
||
63 | </OnEnterPressed> |
||
64 | <OnTextChanged> |
||
65 | if ( ( not tonumber(this:GetText()) or ( this.limitation and tonumber(this:GetText()) > this.limitation ) ) and strlen(this:GetText()) > 0 ) then |
||
66 | if ( tonumber(this:GetText()) and this.limitation and tonumber(this:GetText()) > this.limitation ) then |
||
67 | this:SetText(this.limitation); |
||
68 | else |
||
69 | this:SetText(strsub(this:GetText(), 1, strlen(this:GetText())-1)); |
||
70 | end |
||
71 | end |
||
72 | </OnTextChanged> |
||
73 | <OnEditFocusGained> |
||
74 | this:HighlightText(); |
||
75 | </OnEditFocusGained> |
||
76 | <OnEditFocusLost> |
||
77 | this:HighlightText(0, 0); |
||
78 | </OnEditFocusLost> |
||
79 | </Scripts> |
||
80 | </EditBox> |
||
81 | <Frame name="CT_ViewportFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent"> |
||
82 | <Size> |
||
83 | <AbsDimension x="600" y="400"/> |
||
84 | </Size> |
||
85 | <Anchors> |
||
86 | <Anchor point="CENTER" relativeTo="UIParent"/> |
||
87 | </Anchors> |
||
88 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
89 | <BackgroundInsets> |
||
90 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
91 | </BackgroundInsets> |
||
92 | <TileSize> |
||
93 | <AbsValue val="32"/> |
||
94 | </TileSize> |
||
95 | <EdgeSize> |
||
96 | <AbsValue val="32"/> |
||
97 | </EdgeSize> |
||
98 | </Backdrop> |
||
99 | <Layers> |
||
100 | <Layer level="ARTWORK"> |
||
101 | <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
102 | <Size> |
||
103 | <AbsDimension x="256" y="64"/> |
||
104 | </Size> |
||
105 | <Anchors> |
||
106 | <Anchor point="TOP"> |
||
107 | <Offset> |
||
108 | <AbsDimension x="0" y="12"/> |
||
109 | </Offset> |
||
110 | </Anchor> |
||
111 | </Anchors> |
||
112 | </Texture> |
||
113 | <FontString name="$parentHeaderText" inherits="GameFontNormal" text="Viewport"> |
||
114 | <Anchors> |
||
115 | <Anchor point="TOP" relativeTo="$parentHeaderTexture"> |
||
116 | <Offset> |
||
117 | <AbsDimension x="0" y="-14"/> |
||
118 | </Offset> |
||
119 | </Anchor> |
||
120 | </Anchors> |
||
121 | </FontString> |
||
122 | <FontString name="$parentInfoText" inherits="GameFontNormal" text="CT_VIEWPORT_INFO"> |
||
123 | <Size> |
||
124 | <AbsDimension x="450" y="40"/> |
||
125 | </Size> |
||
126 | <Anchors> |
||
127 | <Anchor point="BOTTOM"> |
||
128 | <Offset> |
||
129 | <AbsDimension x="0" y="20"/> |
||
130 | </Offset> |
||
131 | </Anchor> |
||
132 | </Anchors> |
||
133 | </FontString> |
||
134 | <FontString name="$parentAspectRatioDefaultText" inherits="GameFontNormal"> |
||
135 | <Anchors> |
||
136 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> |
||
137 | <Offset> |
||
138 | <AbsDimension x="-5" y="100"/> |
||
139 | </Offset> |
||
140 | </Anchor> |
||
141 | </Anchors> |
||
142 | </FontString> |
||
143 | <FontString name="$parentAspectRatioNewText" inherits="GameFontNormal"> |
||
144 | <Anchors> |
||
145 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM"> |
||
146 | <Offset> |
||
147 | <AbsDimension x="5" y="100"/> |
||
148 | </Offset> |
||
149 | </Anchor> |
||
150 | </Anchors> |
||
151 | </FontString> |
||
152 | </Layer> |
||
153 | </Layers> |
||
154 | <Frames> |
||
155 | <Frame name="$parentBorderFrame"> |
||
156 | <Size> |
||
157 | <AbsDimension x="382" y="289"/> |
||
158 | </Size> |
||
159 | <Anchors> |
||
160 | <Anchor point="TOP"> |
||
161 | <Offset> |
||
162 | <AbsDimension x="0" y="-60"/> |
||
163 | </Offset> |
||
164 | </Anchor> |
||
165 | </Anchors> |
||
166 | <Backdrop edgeFile="Interface\ChatFrame\ChatFrameBackground" tile="true"> |
||
167 | <EdgeSize> |
||
168 | <AbsValue val="4"/> |
||
169 | </EdgeSize> |
||
170 | <TileSize> |
||
171 | <AbsValue val="4"/> |
||
172 | </TileSize> |
||
173 | </Backdrop> |
||
174 | </Frame> |
||
175 | <Frame name="$parentInnerFrame" resizable="true"> |
||
176 | <Size> |
||
177 | <AbsDimension x="375" y="281"/> |
||
178 | </Size> |
||
179 | <Anchors> |
||
180 | <Anchor point="TOPLEFT" relativeTo="$parentBorderFrame"> |
||
181 | <Offset> |
||
182 | <AbsDimension x="4" y="-4"/> |
||
183 | </Offset> |
||
184 | </Anchor> |
||
185 | </Anchors> |
||
186 | <ResizeBounds> |
||
187 | <minResize> |
||
188 | <AbsDimension x="188" y="140"/> |
||
189 | </minResize> |
||
190 | <maxResize> |
||
191 | <AbsDimension x="375" y="281"/> |
||
192 | </maxResize> |
||
193 | </ResizeBounds> |
||
194 | <Layers> |
||
195 | <Layer level="BACKGROUND"> |
||
196 | <Texture name="$parentBackground" hidden="false" file="Interface\ChatFrame\ChatFrameBackground"> |
||
197 | <Anchors> |
||
198 | <Anchor point="TOPLEFT"> |
||
199 | <Offset> |
||
200 | <AbsDimension x="-2" y="3"/> |
||
201 | </Offset> |
||
202 | </Anchor> |
||
203 | <Anchor point="TOPRIGHT"> |
||
204 | <Offset> |
||
205 | <AbsDimension x="2" y="3"/> |
||
206 | </Offset> |
||
207 | </Anchor> |
||
208 | <Anchor point="BOTTOMLEFT"> |
||
209 | <Offset> |
||
210 | <AbsDimension x="-2" y="-6"/> |
||
211 | </Offset> |
||
212 | </Anchor> |
||
213 | <Anchor point="BOTTOMRIGHT"> |
||
214 | <Offset> |
||
215 | <AbsDimension x="3" y="-6"/> |
||
216 | </Offset> |
||
217 | </Anchor> |
||
218 | </Anchors> |
||
219 | </Texture> |
||
220 | </Layer> |
||
221 | <Layer level="ARTWORK"> |
||
222 | <FontString name="$parentInfo" inherits="GameFontNormal" text="Rendered Area"> |
||
223 | <Anchors> |
||
224 | <Anchor point="CENTER"/> |
||
225 | </Anchors> |
||
226 | </FontString> |
||
227 | </Layer> |
||
228 | </Layers> |
||
229 | <Backdrop edgeFile="Interface\ChatFrame\ChatFrameBackground" tile="true"> |
||
230 | <EdgeSize> |
||
231 | <AbsValue val="4"/> |
||
232 | </EdgeSize> |
||
233 | <TileSize> |
||
234 | <AbsValue val="4"/> |
||
235 | </TileSize> |
||
236 | </Backdrop> |
||
237 | <Frames> |
||
238 | <Button name="$parentResizeTopLeft"> |
||
239 | <Size> |
||
240 | <AbsDimension x="16" y="16"/> |
||
241 | </Size> |
||
242 | <Anchors> |
||
243 | <Anchor point="TOPLEFT" relativeTo="$parentBackground"> |
||
244 | <Offset> |
||
245 | <AbsDimension x="-2" y="2"/> |
||
246 | </Offset> |
||
247 | </Anchor> |
||
248 | </Anchors> |
||
249 | <Scripts> |
||
250 | <OnLoad> |
||
251 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
252 | </OnLoad> |
||
253 | <OnMouseDown> |
||
254 | CT_Viewport_Resize("TOPLEFT"); |
||
255 | </OnMouseDown> |
||
256 | <OnMouseUp> |
||
257 | CT_Viewport_StopResize(); |
||
258 | </OnMouseUp> |
||
259 | </Scripts> |
||
260 | </Button> |
||
261 | <Button name="$parentResizeTopRight"> |
||
262 | <Size> |
||
263 | <AbsDimension x="16" y="16"/> |
||
264 | </Size> |
||
265 | <Anchors> |
||
266 | <Anchor point="TOPRIGHT" relativeTo="$parentBackground"> |
||
267 | <Offset> |
||
268 | <AbsDimension x="2" y="2"/> |
||
269 | </Offset> |
||
270 | </Anchor> |
||
271 | </Anchors> |
||
272 | <Scripts> |
||
273 | <OnLoad> |
||
274 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
275 | </OnLoad> |
||
276 | <OnMouseDown> |
||
277 | CT_Viewport_Resize("TOPRIGHT"); |
||
278 | </OnMouseDown> |
||
279 | <OnMouseUp> |
||
280 | CT_Viewport_StopResize(); |
||
281 | </OnMouseUp> |
||
282 | </Scripts> |
||
283 | </Button> |
||
284 | <Button name="$parentResizeBottomLeft"> |
||
285 | <Size> |
||
286 | <AbsDimension x="16" y="16"/> |
||
287 | </Size> |
||
288 | <Anchors> |
||
289 | <Anchor point="BOTTOMLEFT" relativeTo="$parentBackground"> |
||
290 | <Offset> |
||
291 | <AbsDimension x="-2" y="-3"/> |
||
292 | </Offset> |
||
293 | </Anchor> |
||
294 | </Anchors> |
||
295 | <Scripts> |
||
296 | <OnLoad> |
||
297 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
298 | </OnLoad> |
||
299 | <OnMouseDown> |
||
300 | CT_Viewport_Resize("BOTTOMLEFT"); |
||
301 | </OnMouseDown> |
||
302 | <OnMouseUp> |
||
303 | CT_Viewport_StopResize(); |
||
304 | </OnMouseUp> |
||
305 | </Scripts> |
||
306 | </Button> |
||
307 | <Button name="$parentResizeBottomRight"> |
||
308 | <Size> |
||
309 | <AbsDimension x="16" y="16"/> |
||
310 | </Size> |
||
311 | <Anchors> |
||
312 | <Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground"> |
||
313 | <Offset> |
||
314 | <AbsDimension x="2" y="-3"/> |
||
315 | </Offset> |
||
316 | </Anchor> |
||
317 | </Anchors> |
||
318 | <Scripts> |
||
319 | <OnLoad> |
||
320 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
321 | </OnLoad> |
||
322 | <OnMouseDown> |
||
323 | CT_Viewport_Resize("BOTTOMRIGHT"); |
||
324 | </OnMouseDown> |
||
325 | <OnMouseUp> |
||
326 | CT_Viewport_StopResize(); |
||
327 | </OnMouseUp> |
||
328 | </Scripts> |
||
329 | </Button> |
||
330 | <Button name="$parentResizeTop"> |
||
331 | <Size> |
||
332 | <AbsDimension x="16" y="16"/> |
||
333 | </Size> |
||
334 | <Anchors> |
||
335 | <Anchor point="LEFT" relativeTo="$parentResizeTopLeft" relativePoint="RIGHT"> |
||
336 | <Offset> |
||
337 | <AbsDimension x="0" y="0"/> |
||
338 | </Offset> |
||
339 | </Anchor> |
||
340 | <Anchor point="RIGHT" relativeTo="$parentResizeTopRight" relativePoint="LEFT"> |
||
341 | <Offset> |
||
342 | <AbsDimension x="0" y="0"/> |
||
343 | </Offset> |
||
344 | </Anchor> |
||
345 | </Anchors> |
||
346 | <Scripts> |
||
347 | <OnLoad> |
||
348 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
349 | </OnLoad> |
||
350 | <OnMouseDown> |
||
351 | CT_Viewport_Resize("TOP"); |
||
352 | </OnMouseDown> |
||
353 | <OnMouseUp> |
||
354 | CT_Viewport_StopResize(); |
||
355 | </OnMouseUp> |
||
356 | </Scripts> |
||
357 | </Button> |
||
358 | <Button name="$parentResizeBottom"> |
||
359 | <Size> |
||
360 | <AbsDimension x="16" y="16"/> |
||
361 | </Size> |
||
362 | <Anchors> |
||
363 | <Anchor point="LEFT" relativeTo="$parentResizeBottomLeft" relativePoint="RIGHT"> |
||
364 | <Offset> |
||
365 | <AbsDimension x="0" y="0"/> |
||
366 | </Offset> |
||
367 | </Anchor> |
||
368 | <Anchor point="RIGHT" relativeTo="$parentResizeBottomRight" relativePoint="LEFT"> |
||
369 | <Offset> |
||
370 | <AbsDimension x="0" y="0"/> |
||
371 | </Offset> |
||
372 | </Anchor> |
||
373 | </Anchors> |
||
374 | <Scripts> |
||
375 | <OnLoad> |
||
376 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
377 | </OnLoad> |
||
378 | <OnMouseDown> |
||
379 | CT_Viewport_Resize("BOTTOM"); |
||
380 | </OnMouseDown> |
||
381 | <OnMouseUp> |
||
382 | CT_Viewport_StopResize(); |
||
383 | </OnMouseUp> |
||
384 | </Scripts> |
||
385 | </Button> |
||
386 | <Button name="$parentResizeLeft"> |
||
387 | <Size> |
||
388 | <AbsDimension x="16" y="16"/> |
||
389 | </Size> |
||
390 | <Anchors> |
||
391 | <Anchor point="TOP" relativeTo="$parentResizeTopLeft" relativePoint="BOTTOM"> |
||
392 | <Offset> |
||
393 | <AbsDimension x="0" y="0"/> |
||
394 | </Offset> |
||
395 | </Anchor> |
||
396 | <Anchor point="BOTTOM" relativeTo="$parentResizeBottomLeft" relativePoint="TOP"> |
||
397 | <Offset> |
||
398 | <AbsDimension x="0" y="0"/> |
||
399 | </Offset> |
||
400 | </Anchor> |
||
401 | </Anchors> |
||
402 | <Scripts> |
||
403 | <OnLoad> |
||
404 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
405 | </OnLoad> |
||
406 | <OnMouseDown> |
||
407 | CT_Viewport_Resize("LEFT"); |
||
408 | </OnMouseDown> |
||
409 | <OnMouseUp> |
||
410 | CT_Viewport_StopResize(); |
||
411 | </OnMouseUp> |
||
412 | </Scripts> |
||
413 | </Button> |
||
414 | <Button name="$parentResizeRight"> |
||
415 | <Size> |
||
416 | <AbsDimension x="16" y="16"/> |
||
417 | </Size> |
||
418 | <Anchors> |
||
419 | <Anchor point="TOP" relativeTo="$parentResizeTopRight" relativePoint="BOTTOM"> |
||
420 | <Offset> |
||
421 | <AbsDimension x="0" y="0"/> |
||
422 | </Offset> |
||
423 | </Anchor> |
||
424 | <Anchor point="BOTTOM" relativeTo="$parentResizeBottomRight" relativePoint="TOP"> |
||
425 | <Offset> |
||
426 | <AbsDimension x="0" y="0"/> |
||
427 | </Offset> |
||
428 | </Anchor> |
||
429 | </Anchors> |
||
430 | <Scripts> |
||
431 | <OnLoad> |
||
432 | this:SetFrameLevel(this:GetFrameLevel()-1); |
||
433 | </OnLoad> |
||
434 | <OnMouseDown> |
||
435 | CT_Viewport_Resize("RIGHT"); |
||
436 | </OnMouseDown> |
||
437 | <OnMouseUp> |
||
438 | CT_Viewport_StopResize(); |
||
439 | </OnMouseUp> |
||
440 | </Scripts> |
||
441 | </Button> |
||
442 | </Frames> |
||
443 | </Frame> |
||
444 | <EditBox name="$parentLeftEB" id="1" inherits="CT_Viewport_EditBoxTemplate"> |
||
445 | <Anchors> |
||
446 | <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentBorderFrame"> |
||
447 | <Offset> |
||
448 | <AbsDimension x="-7" y="0"/> |
||
449 | </Offset> |
||
450 | </Anchor> |
||
451 | </Anchors> |
||
452 | <Scripts> |
||
453 | <OnTabPressed> |
||
454 | if ( IsShiftKeyDown() ) then |
||
455 | getglobal(this:GetParent():GetName() .. "BottomEB"):SetFocus(); |
||
456 | else |
||
457 | getglobal(this:GetParent():GetName() .. "TopEB"):SetFocus(); |
||
458 | end |
||
459 | </OnTabPressed> |
||
460 | </Scripts> |
||
461 | </EditBox> |
||
462 | <EditBox name="$parentRightEB" id="2" inherits="CT_Viewport_EditBoxTemplate"> |
||
463 | <Anchors> |
||
464 | <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentBorderFrame"> |
||
465 | <Offset> |
||
466 | <AbsDimension x="7" y="0"/> |
||
467 | </Offset> |
||
468 | </Anchor> |
||
469 | </Anchors> |
||
470 | <Scripts> |
||
471 | <OnTabPressed> |
||
472 | if ( IsShiftKeyDown() ) then |
||
473 | getglobal(this:GetParent():GetName() .. "TopEB"):SetFocus(); |
||
474 | else |
||
475 | getglobal(this:GetParent():GetName() .. "BottomEB"):SetFocus(); |
||
476 | end |
||
477 | </OnTabPressed> |
||
478 | </Scripts> |
||
479 | </EditBox> |
||
480 | <EditBox name="$parentTopEB" id="3" inherits="CT_Viewport_EditBoxTemplate"> |
||
481 | <Anchors> |
||
482 | <Anchor point="BOTTOM" relativePoint="TOP" relativeTo="$parentBorderFrame"> |
||
483 | <Offset> |
||
484 | <AbsDimension x="0" y="0"/> |
||
485 | </Offset> |
||
486 | </Anchor> |
||
487 | </Anchors> |
||
488 | <Scripts> |
||
489 | <OnTabPressed> |
||
490 | if ( IsShiftKeyDown() ) then |
||
491 | getglobal(this:GetParent():GetName() .. "LeftEB"):SetFocus(); |
||
492 | else |
||
493 | getglobal(this:GetParent():GetName() .. "RightEB"):SetFocus(); |
||
494 | end |
||
495 | </OnTabPressed> |
||
496 | </Scripts> |
||
497 | </EditBox> |
||
498 | <EditBox name="$parentBottomEB" id="4" inherits="CT_Viewport_EditBoxTemplate"> |
||
499 | <Anchors> |
||
500 | <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentBorderFrame"> |
||
501 | <Offset> |
||
502 | <AbsDimension x="0" y="0"/> |
||
503 | </Offset> |
||
504 | </Anchor> |
||
505 | </Anchors> |
||
506 | <Scripts> |
||
507 | <OnTabPressed> |
||
508 | if ( IsShiftKeyDown() ) then |
||
509 | getglobal(this:GetParent():GetName() .. "RightEB"):SetFocus(); |
||
510 | else |
||
511 | getglobal(this:GetParent():GetName() .. "LeftEB"):SetFocus(); |
||
512 | end |
||
513 | </OnTabPressed> |
||
514 | </Scripts> |
||
515 | </EditBox> |
||
516 | <Button name="$parentOkay" inherits="GameMenuButtonTemplate" text="Okay"> |
||
517 | <Size> |
||
518 | <AbsDimension x="125" y="32"/> |
||
519 | </Size> |
||
520 | <Anchors> |
||
521 | <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM"> |
||
522 | <Offset> |
||
523 | <AbsDimension x="-73" y="65"/> |
||
524 | </Offset> |
||
525 | </Anchor> |
||
526 | </Anchors> |
||
527 | <Scripts> |
||
528 | <OnClick> |
||
529 | CT_Viewport_ApplyViewport(); |
||
530 | HideUIPanel(this:GetParent()); |
||
531 | </OnClick> |
||
532 | </Scripts> |
||
533 | </Button> |
||
534 | <Button name="$parentCancel" inherits="GameMenuButtonTemplate" text="Cancel"> |
||
535 | <Size> |
||
536 | <AbsDimension x="125" y="32"/> |
||
537 | </Size> |
||
538 | <Anchors> |
||
539 | <Anchor point="BOTTOM" relativePoint="BOTTOM"> |
||
540 | <Offset> |
||
541 | <AbsDimension x="0" y="65"/> |
||
542 | </Offset> |
||
543 | </Anchor> |
||
544 | </Anchors> |
||
545 | <Scripts> |
||
546 | <OnClick> |
||
547 | HideUIPanel(this:GetParent()); |
||
548 | </OnClick> |
||
549 | </Scripts> |
||
550 | </Button> |
||
551 | <Button name="$parentApply" inherits="GameMenuButtonTemplate" text="Apply"> |
||
552 | <Size> |
||
553 | <AbsDimension x="125" y="32"/> |
||
554 | </Size> |
||
555 | <Anchors> |
||
556 | <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM"> |
||
557 | <Offset> |
||
558 | <AbsDimension x="73" y="65"/> |
||
559 | </Offset> |
||
560 | </Anchor> |
||
561 | </Anchors> |
||
562 | <Scripts> |
||
563 | <OnClick> |
||
564 | CT_Viewport_ApplyViewport(); |
||
565 | </OnClick> |
||
566 | </Scripts> |
||
567 | </Button> |
||
568 | </Frames> |
||
569 | <Scripts> |
||
570 | <OnHide> |
||
571 | this.isResizing = nil; |
||
572 | getglobal(this:GetName() .. "InnerFrame"):StopMovingOrSizing(); |
||
573 | PlaySound("UChatScrollButton"); |
||
574 | </OnHide> |
||
575 | <OnLoad> |
||
576 | CT_ViewportFrame_OnLoad(); |
||
577 | </OnLoad> |
||
578 | <OnUpdate> |
||
579 | CT_ViewportFrame_OnUpdate(arg1); |
||
580 | </OnUpdate> |
||
581 | <OnShow> |
||
582 | CT_ViewportFrame_OnShow(); |
||
583 | PlaySound("UChatScrollButton"); |
||
584 | </OnShow> |
||
585 | <OnEvent> |
||
586 | CT_ViewportFrame_OnEvent(event); |
||
587 | </OnEvent> |
||
588 | </Scripts> |
||
589 | </Frame> |
||
590 | </Ui> |