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="Parchment.lua"/> |
||
3 | <Button name="Parchment_TabTemplate" virtual="true" hidden="false"> |
||
4 | <Size> |
||
5 | <AbsDimension x="128" y="64"/> |
||
6 | </Size> |
||
7 | <HitRectInsets> |
||
8 | <AbsInset left="15" right="14" top="13" bottom="15"/> |
||
9 | </HitRectInsets> |
||
10 | <Scripts> |
||
11 | <OnClick> |
||
12 | ParchmentTab_OnClick(); |
||
13 | </OnClick> |
||
14 | <OnEnter> |
||
15 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
16 | </OnEnter> |
||
17 | <OnLeave> |
||
18 | GameTooltip:Hide(); |
||
19 | </OnLeave> |
||
20 | </Scripts> |
||
21 | <NormalText inherits="GameFontNormalSmall"> |
||
22 | <Anchors> |
||
23 | <Anchor point="CENTER"> |
||
24 | <Offset> |
||
25 | <AbsDimension x="0" y="3"/> |
||
26 | </Offset> |
||
27 | </Anchor> |
||
28 | </Anchors> |
||
29 | </NormalText> |
||
30 | <HighlightText inherits="GameFontHighlightSmall"> |
||
31 | <Anchors> |
||
32 | <Anchor point="CENTER"> |
||
33 | <Offset> |
||
34 | <AbsDimension x="0" y="3"/> |
||
35 | </Offset> |
||
36 | </Anchor> |
||
37 | </Anchors> |
||
38 | </HighlightText> |
||
39 | <DisabledText inherits="GameFontHighlightSmall"> |
||
40 | <Anchors> |
||
41 | <Anchor point="CENTER"> |
||
42 | <Offset> |
||
43 | <AbsDimension x="0" y="6"/> |
||
44 | </Offset> |
||
45 | </Anchor> |
||
46 | </Anchors> |
||
47 | </DisabledText> |
||
48 | <NormalTexture file="Interface\SpellBook\UI-SpellBook-Tab-Unselected"/> |
||
49 | <HighlightTexture file="Interface\SpellBook\UI-SpellbookPanel-Tab-Highlight"/> |
||
50 | </Button> |
||
51 | |||
52 | <Frame name="ParchmentFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true"> |
||
53 | <Size> |
||
54 | <AbsDimension x="384" y="512"/> |
||
55 | </Size> |
||
56 | <Anchors> |
||
57 | <Anchor point="TOPLEFT"> |
||
58 | <Offset> |
||
59 | <AbsDimension x="0" y="-104"/> |
||
60 | </Offset> |
||
61 | </Anchor> |
||
62 | </Anchors> |
||
63 | <Layers> |
||
64 | <Layer level="BACKGROUND"> |
||
65 | <Texture name="ParchmentFramePortrait" file="Interface\FriendsFrame\FriendsFrameScrollIcon"> |
||
66 | <Size> |
||
67 | <AbsDimension x="60" y="60"/> |
||
68 | </Size> |
||
69 | <Anchors> |
||
70 | <Anchor point="TOPLEFT"> |
||
71 | <Offset> |
||
72 | <AbsDimension x="8" y="-9"/> |
||
73 | </Offset> |
||
74 | </Anchor> |
||
75 | </Anchors> |
||
76 | </Texture> |
||
77 | </Layer> |
||
78 | <Layer level="ARTWORK"> |
||
79 | <FontString name="ParchmentTitleText" inherits="GameFontNormal"> |
||
80 | <Anchors> |
||
81 | <Anchor point="CENTER"> |
||
82 | <Offset> |
||
83 | <AbsDimension x="6" y="226"/> |
||
84 | </Offset> |
||
85 | </Anchor> |
||
86 | </Anchors> |
||
87 | </FontString> |
||
88 | </Layer> |
||
89 | <Layer level="BACKGROUND"> |
||
90 | <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopLeft"> |
||
91 | <Size> |
||
92 | <AbsDimension x="256" y="256"/> |
||
93 | </Size> |
||
94 | <Anchors> |
||
95 | <Anchor point="TOPLEFT"/> |
||
96 | </Anchors> |
||
97 | </Texture> |
||
98 | <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopRight"> |
||
99 | <Size> |
||
100 | <AbsDimension x="128" y="256"/> |
||
101 | </Size> |
||
102 | <Anchors> |
||
103 | <Anchor point="TOPLEFT"> |
||
104 | <Offset> |
||
105 | <AbsDimension x="256" y="0"/> |
||
106 | </Offset> |
||
107 | </Anchor> |
||
108 | </Anchors> |
||
109 | </Texture> |
||
110 | <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotLeft"> |
||
111 | <Size> |
||
112 | <AbsDimension x="256" y="256"/> |
||
113 | </Size> |
||
114 | <Anchors> |
||
115 | <Anchor point="TOPLEFT"> |
||
116 | <Offset> |
||
117 | <AbsDimension x="0" y="-256"/> |
||
118 | </Offset> |
||
119 | </Anchor> |
||
120 | </Anchors> |
||
121 | </Texture> |
||
122 | <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotRight"> |
||
123 | <Size> |
||
124 | <AbsDimension x="128" y="256"/> |
||
125 | </Size> |
||
126 | <Anchors> |
||
127 | <Anchor point="TOPLEFT"> |
||
128 | <Offset> |
||
129 | <AbsDimension x="256" y="-256"/> |
||
130 | </Offset> |
||
131 | </Anchor> |
||
132 | </Anchors> |
||
133 | </Texture> |
||
134 | </Layer> |
||
135 | </Layers> |
||
136 | <Frames> |
||
137 | <Button name="ParchmentFrameCloseButton" inherits="UIPanelCloseButton"> |
||
138 | <Anchors> |
||
139 | <Anchor point="TOPRIGHT"> |
||
140 | <Offset> |
||
141 | <AbsDimension x="-26" y="-15"/> |
||
142 | </Offset> |
||
143 | </Anchor> |
||
144 | </Anchors> |
||
145 | <Scripts> |
||
146 | <OnClick> |
||
147 | HideUIPanel(ParchmentFrame); |
||
148 | </OnClick> |
||
149 | </Scripts> |
||
150 | </Button> |
||
151 | <!-- Tabs --> |
||
152 | <Button name="ParchmentFrameTab1" inherits="Parchment_TabTemplate" id="1" text="Parchment"> |
||
153 | <Anchors> |
||
154 | <Anchor point="CENTER" relativePoint="BOTTOMLEFT"> |
||
155 | <Offset> |
||
156 | <AbsDimension x="79" y="55"/> |
||
157 | </Offset> |
||
158 | </Anchor> |
||
159 | </Anchors> |
||
160 | <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/> |
||
161 | </Button> |
||
162 | <Button name="ParchmentFrameTab2" inherits="Parchment_TabTemplate" id="2" text="Options"> |
||
163 | <Anchors> |
||
164 | <Anchor point="LEFT" relativeTo="ParchmentFrameTab1" relativePoint="RIGHT"> |
||
165 | <Offset> |
||
166 | <AbsDimension x="-20" y="0"/> |
||
167 | </Offset> |
||
168 | </Anchor> |
||
169 | </Anchors> |
||
170 | <DisabledTexture file="Interface\SpellBook\UI-SpellBook-Tab1-Selected"/> |
||
171 | </Button> |
||
172 | |||
173 | <Frame name="ParchmentDataFrame" hidden="true"> |
||
174 | <Anchors> |
||
175 | <Anchor point="TOPLEFT"/> |
||
176 | </Anchors> |
||
177 | <Size> |
||
178 | <AbsDimension x="384" y="512"/> |
||
179 | </Size> |
||
180 | <Frames> |
||
181 | <Button name="ParchmentDeleteButton" inherits="UIPanelButtonTemplate" text="Delete"> |
||
182 | <Size> |
||
183 | <AbsDimension x="65" y="22"/> |
||
184 | </Size> |
||
185 | <Anchors> |
||
186 | <Anchor point="TOPLEFT" relativeTo="ParchmentFrame" relativePoint="TOPLEFT"> |
||
187 | <Offset> |
||
188 | <AbsDimension x="70" y="-50"/> |
||
189 | </Offset> |
||
190 | </Anchor> |
||
191 | </Anchors> |
||
192 | <Scripts> |
||
193 | <OnEnter> |
||
194 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
195 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
196 | </OnEnter> |
||
197 | <OnLeave> |
||
198 | GameTooltip:Hide(); |
||
199 | </OnLeave> |
||
200 | <OnClick> |
||
201 | Parchment_Delete_Character(); |
||
202 | </OnClick> |
||
203 | </Scripts> |
||
204 | </Button> |
||
205 | |||
206 | <Frame name="Parchment_UserDropdown" inherits="UIDropDownMenuTemplate" enableMouse="true"> |
||
207 | <Anchors> |
||
208 | <Anchor point="TOPLEFT" relativeTo="ParchmentDeleteButton" relativePoint="TOPRIGHT"> |
||
209 | <Offset> |
||
210 | <AbsDimension x="-7" y="2"/> |
||
211 | </Offset> |
||
212 | </Anchor> |
||
213 | </Anchors> |
||
214 | <Scripts> |
||
215 | <OnEnter> |
||
216 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
217 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
218 | </OnEnter> |
||
219 | <OnLeave> |
||
220 | GameTooltip:Hide(); |
||
221 | </OnLeave> |
||
222 | </Scripts> |
||
223 | </Frame> |
||
224 | |||
225 | <CheckButton name="Parchment_Tack" inherits="UICheckButtonTemplate"> |
||
226 | <Anchors> |
||
227 | <Anchor point="TOPLEFT" relativeTo="Parchment_UserDropdown" relativePoint="TOPRIGHT"> |
||
228 | <Offset> |
||
229 | <AbsDimension x="-8" y="2"/> |
||
230 | </Offset> |
||
231 | </Anchor> |
||
232 | </Anchors> |
||
233 | <HitRectInsets> |
||
234 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
235 | </HitRectInsets> |
||
236 | <Scripts> |
||
237 | <OnClick> |
||
238 | Parchment_Tack_Character(); |
||
239 | </OnClick> |
||
240 | <OnEnter> |
||
241 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
242 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
243 | </OnEnter> |
||
244 | <OnLeave> |
||
245 | GameTooltip:Hide(); |
||
246 | </OnLeave> |
||
247 | </Scripts> |
||
248 | </CheckButton> |
||
249 | <Button name="ParchmentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel"> |
||
250 | <Size> |
||
251 | <AbsDimension x="77" y="21"/> |
||
252 | </Size> |
||
253 | <Anchors> |
||
254 | <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT"> |
||
255 | <Offset> |
||
256 | <AbsDimension x="20" y="74"/> |
||
257 | </Offset> |
||
258 | </Anchor> |
||
259 | </Anchors> |
||
260 | <Scripts> |
||
261 | <OnClick> |
||
262 | Parchment_Cancel(); |
||
263 | </OnClick> |
||
264 | </Scripts> |
||
265 | </Button> |
||
266 | <Button name="ParchmentClearButton" inherits="UIPanelButtonTemplate" text="Clear"> |
||
267 | <Size> |
||
268 | <AbsDimension x="77" y="21"/> |
||
269 | </Size> |
||
270 | <Anchors> |
||
271 | <Anchor point="BOTTOM" relativeTo="ParchmentFrame" relativePoint="BOTTOM"> |
||
272 | <Offset> |
||
273 | <AbsDimension x="0" y="73"/> |
||
274 | </Offset> |
||
275 | </Anchor> |
||
276 | </Anchors> |
||
277 | <Scripts> |
||
278 | <OnClick> |
||
279 | Parchment_Clear(); |
||
280 | </OnClick> |
||
281 | </Scripts> |
||
282 | </Button> |
||
283 | <Button name="ParchmentSaveButton" inherits="UIPanelButtonTemplate" text="Save"> |
||
284 | <Size> |
||
285 | <AbsDimension x="77" y="21"/> |
||
286 | </Size> |
||
287 | <Anchors> |
||
288 | <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT"> |
||
289 | <Offset> |
||
290 | <AbsDimension x="-39" y="74"/> |
||
291 | </Offset> |
||
292 | </Anchor> |
||
293 | </Anchors> |
||
294 | <Scripts> |
||
295 | <OnClick> |
||
296 | HideUIPanel(ParchmentFrame); |
||
297 | </OnClick> |
||
298 | </Scripts> |
||
299 | </Button> |
||
300 | <ScrollFrame name="ParchmentScrollFrame" inherits="UIPanelScrollFrameTemplate"> |
||
301 | <Size> |
||
302 | <AbsDimension x="300" y="334"/> |
||
303 | </Size> |
||
304 | <Anchors> |
||
305 | <Anchor point="TOPLEFT"> |
||
306 | <Offset> |
||
307 | <AbsDimension x="23" y="-81"/> |
||
308 | </Offset> |
||
309 | </Anchor> |
||
310 | </Anchors> |
||
311 | <Layers> |
||
312 | <Layer level="ARTWORK"> |
||
313 | <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> |
||
314 | <Size> |
||
315 | <AbsDimension x="30" y="256"/> |
||
316 | </Size> |
||
317 | <Anchors> |
||
318 | <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton"> |
||
319 | <Offset> |
||
320 | <AbsDimension x="0" y="5"/> |
||
321 | </Offset> |
||
322 | </Anchor> |
||
323 | </Anchors> |
||
324 | <TexCoords left="1" right="1" top="1" bottom="1"/> |
||
325 | </Texture> |
||
326 | <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> |
||
327 | <Size> |
||
328 | <AbsDimension x="31" y="106"/> |
||
329 | </Size> |
||
330 | <Anchors> |
||
331 | <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton"> |
||
332 | <Offset> |
||
333 | <AbsDimension x="0" y="-2"/> |
||
334 | </Offset> |
||
335 | </Anchor> |
||
336 | </Anchors> |
||
337 | <TexCoords left="1" right="1" top="1" bottom="1"/> |
||
338 | </Texture> |
||
339 | <FontString name="Parchment_Text_Length" inherits="GameFontNormal"> |
||
340 | <Anchors> |
||
341 | <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentSaveButton"> |
||
342 | <Offset> |
||
343 | <AbsDimension x="0" y="-25" /> |
||
344 | </Offset> |
||
345 | </Anchor> |
||
346 | </Anchors> |
||
347 | </FontString> |
||
348 | </Layer> |
||
349 | </Layers> |
||
350 | <ScrollChild> |
||
351 | <Frame name="ParchmentScrollChildFrame" enableMouse="true"> |
||
352 | <Size> |
||
353 | <AbsDimension x="300" y="255"/> |
||
354 | </Size> |
||
355 | <Anchors> |
||
356 | <Anchor point="TOPLEFT"> |
||
357 | <Offset> |
||
358 | <AbsDimension x="0" y="0"/> |
||
359 | </Offset> |
||
360 | </Anchor> |
||
361 | </Anchors> |
||
362 | <Frames> |
||
363 | <EditBox name="ParchmentEditBox" multiLine="true" enableMouse="true" autoFocus="false"> |
||
364 | <Size> |
||
365 | <AbsDimension x="270" y="200"/> |
||
366 | </Size> |
||
367 | <Anchors> |
||
368 | <Anchor point="TOPLEFT"> |
||
369 | <Offset> |
||
370 | <AbsDimension x="20" y="-10"/> |
||
371 | </Offset> |
||
372 | </Anchor> |
||
373 | </Anchors> |
||
374 | <Scripts> |
||
375 | <OnEscapePressed> |
||
376 | HideUIPanel(ParchmentFrame); |
||
377 | </OnEscapePressed> |
||
378 | <OnTextChanged> |
||
379 | local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar") |
||
380 | this:GetParent():GetParent():UpdateScrollChildRect(); |
||
381 | local min; |
||
382 | local max; |
||
383 | min, max = scrollBar:GetMinMaxValues(); |
||
384 | if ( max > 0 and (this.max ~= max) ) then |
||
385 | this.max = max; |
||
386 | end |
||
387 | Parchment_UpdateTextLength(); <!-- Might not be needed if the dropdown change is considered ontextchanged --> |
||
388 | </OnTextChanged> |
||
389 | <OnClick> |
||
390 | this:SetFocus(); |
||
391 | </OnClick> |
||
392 | </Scripts> |
||
393 | <FontString inherits="ItemTextFontNormal"/> |
||
394 | </EditBox> |
||
395 | </Frames> |
||
396 | <Scripts> |
||
397 | <OnMouseUp> |
||
398 | ParchmentEditBox:SetFocus(); |
||
399 | </OnMouseUp> |
||
400 | </Scripts> |
||
401 | </Frame> |
||
402 | </ScrollChild> |
||
403 | </ScrollFrame> |
||
404 | </Frames> |
||
405 | <Scripts> |
||
406 | <OnShow> |
||
407 | ParchmentDataFrame_OnShow(); |
||
408 | </OnShow> |
||
409 | <OnHide> |
||
410 | ParchmentSaveText(); |
||
411 | </OnHide> |
||
412 | </Scripts> |
||
413 | </Frame> |
||
414 | |||
415 | <Frame name="ParchmentOptionsFrame" hidden="true"> |
||
416 | <Anchors> |
||
417 | <Anchor point="TOPLEFT"/> |
||
418 | </Anchors> |
||
419 | <Size> |
||
420 | <AbsDimension x="384" y="512"/> |
||
421 | </Size> |
||
422 | <Frames> |
||
423 | <CheckButton name="ParchmentLock_Check" inherits="UICheckButtonTemplate"> |
||
424 | <Anchors> |
||
425 | <Anchor point="TOPLEFT"> |
||
426 | <Offset> |
||
427 | <AbsDimension x="50" y="-100"/> |
||
428 | </Offset> |
||
429 | </Anchor> |
||
430 | </Anchors> |
||
431 | <HitRectInsets> |
||
432 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
433 | </HitRectInsets> |
||
434 | <Scripts> |
||
435 | <OnClick> |
||
436 | ParchmentLock_CheckOnClick(); |
||
437 | </OnClick> |
||
438 | <OnEnter> |
||
439 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
440 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
441 | </OnEnter> |
||
442 | <OnLeave> |
||
443 | GameTooltip:Hide(); |
||
444 | </OnLeave> |
||
445 | </Scripts> |
||
446 | </CheckButton> |
||
447 | <Button name="ParchmentResetButton" inherits="UIPanelButtonTemplate" text="Reset"> |
||
448 | <Size> |
||
449 | <AbsDimension x="77" y="21"/> |
||
450 | </Size> |
||
451 | <Anchors> |
||
452 | <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPRIGHT"> |
||
453 | <Offset> |
||
454 | <AbsDimension x="120" y="-5"/> |
||
455 | </Offset> |
||
456 | </Anchor> |
||
457 | </Anchors> |
||
458 | <Scripts> |
||
459 | <OnEnter> |
||
460 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
461 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
462 | </OnEnter> |
||
463 | <OnLeave> |
||
464 | GameTooltip:Hide(); |
||
465 | </OnLeave> |
||
466 | <OnClick> |
||
467 | Parchment_SlashCommandHandler("reset"); |
||
468 | </OnClick> |
||
469 | </Scripts> |
||
470 | </Button> |
||
471 | <CheckButton name="ParchmentAllRealms" inherits="UICheckButtonTemplate"> |
||
472 | <Anchors> |
||
473 | <Anchor point="TOPLEFT" relativeTo="ParchmentLock_Check" relativePoint="TOPLEFT"> |
||
474 | <Offset> |
||
475 | <AbsDimension x="0" y="-30"/> |
||
476 | </Offset> |
||
477 | </Anchor> |
||
478 | </Anchors> |
||
479 | <HitRectInsets> |
||
480 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
481 | </HitRectInsets> |
||
482 | <Scripts> |
||
483 | <OnClick> |
||
484 | ParchmentAllRealms_CheckOnClick(); |
||
485 | </OnClick> |
||
486 | <OnEnter> |
||
487 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
488 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
489 | </OnEnter> |
||
490 | <OnLeave> |
||
491 | GameTooltip:Hide(); |
||
492 | </OnLeave> |
||
493 | </Scripts> |
||
494 | </CheckButton> |
||
495 | |||
496 | <CheckButton name="ParchmentShowButton" inherits="UICheckButtonTemplate"> |
||
497 | <Anchors> |
||
498 | <Anchor point="TOPLEFT" relativeTo="ParchmentAllRealms" relativePoint="TOPLEFT"> |
||
499 | <Offset> |
||
500 | <AbsDimension x="0" y="-30"/> |
||
501 | </Offset> |
||
502 | </Anchor> |
||
503 | </Anchors> |
||
504 | <HitRectInsets> |
||
505 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
506 | </HitRectInsets> |
||
507 | <Scripts> |
||
508 | <OnClick> |
||
509 | ParchmentButton_Toggle(); |
||
510 | </OnClick> |
||
511 | <OnEnter> |
||
512 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
513 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
514 | </OnEnter> |
||
515 | <OnLeave> |
||
516 | GameTooltip:Hide(); |
||
517 | </OnLeave> |
||
518 | </Scripts> |
||
519 | </CheckButton> |
||
520 | |||
521 | <CheckButton name="ParchmentShowTackButton" inherits="UICheckButtonTemplate"> |
||
522 | <Anchors> |
||
523 | <Anchor point="TOPLEFT" relativeTo="ParchmentShowButton" relativePoint="TOPLEFT"> |
||
524 | <Offset> |
||
525 | <AbsDimension x="0" y="-30"/> |
||
526 | </Offset> |
||
527 | </Anchor> |
||
528 | </Anchors> |
||
529 | <HitRectInsets> |
||
530 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
531 | </HitRectInsets> |
||
532 | <Scripts> |
||
533 | <OnClick> |
||
534 | ParchmentTack_OnClick(); |
||
535 | </OnClick> |
||
536 | <OnEnter> |
||
537 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
538 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
539 | </OnEnter> |
||
540 | <OnLeave> |
||
541 | GameTooltip:Hide(); |
||
542 | </OnLeave> |
||
543 | </Scripts> |
||
544 | </CheckButton> |
||
545 | |||
546 | <CheckButton name="ParchmentLockTackButton" inherits="UICheckButtonTemplate"> |
||
547 | <Anchors> |
||
548 | <Anchor point="TOPLEFT" relativeTo="ParchmentShowTackButton" relativePoint="TOPLEFT"> |
||
549 | <Offset> |
||
550 | <AbsDimension x="0" y="-30"/> |
||
551 | </Offset> |
||
552 | </Anchor> |
||
553 | </Anchors> |
||
554 | <HitRectInsets> |
||
555 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
556 | </HitRectInsets> |
||
557 | <Scripts> |
||
558 | <OnClick> |
||
559 | ParchmentLockTack_OnClick(); |
||
560 | </OnClick> |
||
561 | <OnEnter> |
||
562 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
563 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
564 | </OnEnter> |
||
565 | <OnLeave> |
||
566 | GameTooltip:Hide(); |
||
567 | </OnLeave> |
||
568 | </Scripts> |
||
569 | </CheckButton> |
||
570 | |||
571 | <Button name="ParchmentTackResetButton" inherits="UIPanelButtonTemplate" text="Reset"> |
||
572 | <Size> |
||
573 | <AbsDimension x="77" y="21"/> |
||
574 | </Size> |
||
575 | <Anchors> |
||
576 | <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPRIGHT"> |
||
577 | <Offset> |
||
578 | <AbsDimension x="120" y="-5"/> |
||
579 | </Offset> |
||
580 | </Anchor> |
||
581 | </Anchors> |
||
582 | <Scripts> |
||
583 | <OnEnter> |
||
584 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
585 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
586 | </OnEnter> |
||
587 | <OnLeave> |
||
588 | GameTooltip:Hide(); |
||
589 | </OnLeave> |
||
590 | <OnClick> |
||
591 | Parchment_SlashCommandHandler("resettack"); |
||
592 | </OnClick> |
||
593 | </Scripts> |
||
594 | </Button> |
||
595 | |||
596 | <CheckButton name="ParchmentTackBorder" inherits="UICheckButtonTemplate"> |
||
597 | <Anchors> |
||
598 | <Anchor point="TOPLEFT" relativeTo="ParchmentLockTackButton" relativePoint="TOPLEFT"> |
||
599 | <Offset> |
||
600 | <AbsDimension x="0" y="-30"/> |
||
601 | </Offset> |
||
602 | </Anchor> |
||
603 | </Anchors> |
||
604 | <HitRectInsets> |
||
605 | <AbsInset left="0" right="-100" top="0" bottom="0"/> |
||
606 | </HitRectInsets> |
||
607 | <Scripts> |
||
608 | <OnClick> |
||
609 | ParchmentTackBorder_OnClick(); |
||
610 | </OnClick> |
||
611 | <OnEnter> |
||
612 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
613 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
614 | </OnEnter> |
||
615 | <OnLeave> |
||
616 | GameTooltip:Hide(); |
||
617 | </OnLeave> |
||
618 | </Scripts> |
||
619 | </CheckButton> |
||
620 | |||
621 | <Button name="ParchmentAddChapterButton" inherits="UIPanelButtonTemplate" text="Add a Chapter"> |
||
622 | <Size> |
||
623 | <AbsDimension x="120" y="21"/> |
||
624 | </Size> |
||
625 | <Anchors> |
||
626 | <Anchor point="TOPLEFT" relativeTo="ParchmentTackBorder" relativePoint="TOPLEFT"> |
||
627 | <Offset> |
||
628 | <AbsDimension x="0" y="-40"/> |
||
629 | </Offset> |
||
630 | </Anchor> |
||
631 | </Anchors> |
||
632 | <Scripts> |
||
633 | <OnEnter> |
||
634 | GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
||
635 | GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1); |
||
636 | </OnEnter> |
||
637 | <OnLeave> |
||
638 | GameTooltip:Hide(); |
||
639 | </OnLeave> |
||
640 | <OnClick> |
||
641 | ParchmentAddChapterButton_OnClick(); |
||
642 | </OnClick> |
||
643 | </Scripts> |
||
644 | </Button> |
||
645 | |||
646 | <Slider name="Parchment_Slider" inherits="OptionsSliderTemplate"> |
||
647 | <Size> |
||
648 | <AbsDimension x="220" y="16"/> |
||
649 | </Size> |
||
650 | <Anchors> |
||
651 | <Anchor point="TOPLEFT" relativeTo="ParchmentAddChapterButton" relativePoint="TOPLEFT"> |
||
652 | <Offset> |
||
653 | <AbsDimension x="0" y="-50"/> |
||
654 | </Offset> |
||
655 | </Anchor> |
||
656 | </Anchors> |
||
657 | <Scripts> |
||
658 | <OnLoad> |
||
659 | Parchment_Slider:SetMinMaxValues(0,360); |
||
660 | Parchment_Slider:SetValueStep(1); |
||
661 | </OnLoad> |
||
662 | <OnValueChanged> |
||
663 | Parchment_Config.ButtonPos = Parchment_Slider:GetValue(); |
||
664 | ParchmentButton_UpdatePosition(); |
||
665 | </OnValueChanged> |
||
666 | </Scripts> |
||
667 | </Slider> |
||
668 | |||
669 | <Slider name="Parchment_Alpha" inherits="OptionsSliderTemplate"> |
||
670 | <Size> |
||
671 | <AbsDimension x="220" y="16"/> |
||
672 | </Size> |
||
673 | <Anchors> |
||
674 | <Anchor point="TOPLEFT" relativeTo="Parchment_Slider" relativePoint="TOPLEFT"> |
||
675 | <Offset> |
||
676 | <AbsDimension x="0" y="-40" /> |
||
677 | </Offset> |
||
678 | </Anchor> |
||
679 | </Anchors> |
||
680 | <Scripts> |
||
681 | <OnLoad> |
||
682 | Parchment_Alpha:SetMinMaxValues(0.0,1.0); |
||
683 | Parchment_Alpha:SetValueStep(0.01); |
||
684 | </OnLoad> |
||
685 | <OnValueChanged> |
||
686 | Parchment_Config.Alpha = Parchment_Alpha:GetValue(); |
||
687 | Parchment_UpdateAlpha(); |
||
688 | </OnValueChanged> |
||
689 | </Scripts> |
||
690 | </Slider> |
||
691 | |||
692 | <Button name="ParchmentDefaultButton" inherits="UIPanelButtonTemplate" text="Defaults"> |
||
693 | <Size> |
||
694 | <AbsDimension x="77" y="21"/> |
||
695 | </Size> |
||
696 | <Anchors> |
||
697 | <Anchor point="BOTTOMLEFT" relativeTo="ParchmentFrame" relativePoint="BOTTOMLEFT"> |
||
698 | <Offset> |
||
699 | <AbsDimension x="20" y="74"/> |
||
700 | </Offset> |
||
701 | </Anchor> |
||
702 | </Anchors> |
||
703 | <Scripts> |
||
704 | <OnClick> |
||
705 | Parchment_Load_Defaults(); |
||
706 | </OnClick> |
||
707 | </Scripts> |
||
708 | </Button> |
||
709 | <Button name="ParchmentOptionsCloseButton" inherits="UIPanelButtonTemplate" text="Close"> |
||
710 | <Size> |
||
711 | <AbsDimension x="77" y="21"/> |
||
712 | </Size> |
||
713 | <Anchors> |
||
714 | <Anchor point="BOTTOMRIGHT" relativeTo="ParchmentFrame" relativePoint="BOTTOMRIGHT"> |
||
715 | <Offset> |
||
716 | <AbsDimension x="-39" y="74"/> |
||
717 | </Offset> |
||
718 | </Anchor> |
||
719 | </Anchors> |
||
720 | <Scripts> |
||
721 | <OnClick> |
||
722 | HideUIPanel(ParchmentFrame); |
||
723 | </OnClick> |
||
724 | </Scripts> |
||
725 | </Button> |
||
726 | </Frames> |
||
727 | <Scripts> |
||
728 | <OnShow> |
||
729 | ParchmentOptionsFrame_OnShow(); |
||
730 | </OnShow> |
||
731 | </Scripts> |
||
732 | </Frame> |
||
733 | </Frames> |
||
734 | <Scripts> |
||
735 | <OnLoad> |
||
736 | Parchment_OnLoad(); |
||
737 | </OnLoad> |
||
738 | <OnEvent> |
||
739 | Parchment_OnEvent(event); |
||
740 | </OnEvent> |
||
741 | <OnShow> |
||
742 | Parchment_OnShow(); |
||
743 | </OnShow> |
||
744 | <OnHide> |
||
745 | Parchment_OnHide(); |
||
746 | </OnHide> |
||
747 | <OnDragStart> |
||
748 | Parchment_OnDragStart(); |
||
749 | </OnDragStart> |
||
750 | <OnDragStop> |
||
751 | Parchment_OnDragStop(); |
||
752 | </OnDragStop> |
||
753 | <OnMouseUp> |
||
754 | Parchment_OnDragStop(); |
||
755 | </OnMouseUp> |
||
756 | </Scripts> |
||
757 | </Frame> |
||
758 | </Ui> |