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 | |||
3 | <Script file="DFM_Options.lua"/> |
||
4 | |||
5 | <CheckButton name="DFM_ScrollButtonTemplate" inherits="DL_ScrollButtonTemplate" virtual="true"> |
||
6 | <Size><AbsDimension x="160" y="20"/></Size> |
||
7 | <Scripts> |
||
8 | <OnLoad> |
||
9 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
10 | </OnLoad> |
||
11 | </Scripts> |
||
12 | </CheckButton> |
||
13 | |||
14 | <Button name="DFM_NudgeTemplate" inherits="DL_NudgeTemplate" virtual="true"> |
||
15 | <Scripts> |
||
16 | <OnMouseUp> |
||
17 | if (arg1 == "MiddleButton") then |
||
18 | this.movingframe = nil; |
||
19 | else |
||
20 | DFM_Nudge(arg1); |
||
21 | end |
||
22 | </OnMouseUp> |
||
23 | <OnUpdate> |
||
24 | DFM_Nudge_OnUpdate(arg1); |
||
25 | </OnUpdate> |
||
26 | </Scripts> |
||
27 | </Button> |
||
28 | |||
29 | <Button name="DFM_OptionsFrameTemplate" hidden="true" virtual="true" frameStrata="HIGH"> |
||
30 | <Size><AbsDimension x="300" y="40"/></Size> |
||
31 | <Frames> |
||
32 | <Button name="$parent_Help" frameStrata="HIGH"> |
||
33 | <Size><AbsDimension x="15" y="15"/></Size> |
||
34 | <Anchors> |
||
35 | <Anchor point="TOPRIGHT"> |
||
36 | <Offset><AbsDimension x="-47" y="2"/></Offset> |
||
37 | </Anchor> |
||
38 | </Anchors> |
||
39 | <Layers> |
||
40 | <Layer level="ARTWORK"> |
||
41 | <Texture> |
||
42 | <Size><AbsDimension x="15" y="15"/></Size> |
||
43 | <Anchors> |
||
44 | <Anchor point="CENTER"/> |
||
45 | </Anchors> |
||
46 | <Color r=".3" g="0" b="0"/> |
||
47 | </Texture> |
||
48 | </Layer> |
||
49 | <Layer level="OVERLAY"> |
||
50 | <FontString inherits="GameFontNormal" text="?"> |
||
51 | <Anchors> |
||
52 | <Anchor point="CENTER"/> |
||
53 | </Anchors> |
||
54 | </FontString> |
||
55 | </Layer> |
||
56 | </Layers> |
||
57 | <Scripts> |
||
58 | <OnEnter> |
||
59 | if (this:GetParent().help) then |
||
60 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
61 | GameTooltip:SetText(this:GetParent().help, 1, 1, 1, 1, 1); |
||
62 | end |
||
63 | </OnEnter> |
||
64 | <OnLeave> |
||
65 | GameTooltip:Hide(); |
||
66 | </OnLeave> |
||
67 | </Scripts> |
||
68 | </Button> |
||
69 | <EditBox name="$parent_1" letters="1000" autoFocus="false" inherits="InputBoxTemplate" hidden="true" frameStrata="HIGH"> |
||
70 | <Size><AbsDimension x="253" y="25"/></Size> |
||
71 | <Anchors> |
||
72 | <Anchor point="TOPLEFT"> |
||
73 | <Offset><AbsDimension x="0" y="-11"/></Offset> |
||
74 | </Anchor> |
||
75 | </Anchors> |
||
76 | <Scripts> |
||
77 | <OnEscapePressed> |
||
78 | if (this.prevvalue) then |
||
79 | this:SetText(this.prevvalue); |
||
80 | else |
||
81 | this:SetText(""); |
||
82 | end |
||
83 | this:ClearFocus(); |
||
84 | </OnEscapePressed> |
||
85 | <OnEnterPressed> |
||
86 | DFM_EditBox_OnEnterPressed(); |
||
87 | </OnEnterPressed> |
||
88 | </Scripts> |
||
89 | </EditBox> |
||
90 | <Button name="$parent_2" inherits="DiscordLib_TooltipBackdropTemplate" hidden="true" frameStrata="HIGH"> |
||
91 | <Size><AbsDimension x="245" y="25"/></Size> |
||
92 | <Anchors> |
||
93 | <Anchor point="TOPLEFT"> |
||
94 | <Offset><AbsDimension x="0" y="-11"/></Offset> |
||
95 | </Anchor> |
||
96 | </Anchors> |
||
97 | <Frames> |
||
98 | <Button name="$parent_Button"> |
||
99 | <Size><AbsDimension x="32" y="32"/></Size> |
||
100 | <Anchors> |
||
101 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
102 | <Offset><AbsDimension x="-29" y="-1"/></Offset> |
||
103 | </Anchor> |
||
104 | </Anchors> |
||
105 | <HitRectInsets> |
||
106 | <AbsInset left="6" right="6" top="7" bottom="7"/> |
||
107 | </HitRectInsets> |
||
108 | <Scripts> |
||
109 | <OnClick> |
||
110 | DL_Show_Menu(1); |
||
111 | </OnClick> |
||
112 | </Scripts> |
||
113 | <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> |
||
114 | <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> |
||
115 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
||
116 | <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> |
||
117 | </Button> |
||
118 | </Frames> |
||
119 | <Layers> |
||
120 | <Layer level="ARTWORK"> |
||
121 | <FontString name="$parent_Setting" inherits="GameFontNormal"> |
||
122 | <Color r="1.0" g="1.0" b="0.0"/> |
||
123 | <Anchors> |
||
124 | <Anchor point="LEFT"> |
||
125 | <Offset><AbsDimension x="3" y="0"/></Offset> |
||
126 | </Anchor> |
||
127 | <Anchor point="RIGHT"> |
||
128 | <Offset><AbsDimension x="-20" y="0"/></Offset> |
||
129 | </Anchor> |
||
130 | </Anchors> |
||
131 | </FontString> |
||
132 | </Layer> |
||
133 | </Layers> |
||
134 | <Scripts> |
||
135 | <OnLoad> |
||
136 | this:SetBackdropColor(0,0,0); |
||
137 | </OnLoad> |
||
138 | <OnClick> |
||
139 | DL_Show_Menu(); |
||
140 | </OnClick> |
||
141 | </Scripts> |
||
142 | </Button> |
||
143 | <Frame name="$parent_3" hidden="true" frameStrata="HIGH"> |
||
144 | <Size><AbsDimension x="240" y="25"/></Size> |
||
145 | <Anchors> |
||
146 | <Anchor point="TOPLEFT"> |
||
147 | <Offset><AbsDimension x="0" y="-11"/></Offset> |
||
148 | </Anchor> |
||
149 | </Anchors> |
||
150 | <Frames> |
||
151 | <Button name="$parent_Button"> |
||
152 | <Size><AbsDimension x="36" y="36"/></Size> |
||
153 | <Anchors> |
||
154 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
155 | <Offset><AbsDimension x="-17" y="-1"/></Offset> |
||
156 | </Anchor> |
||
157 | </Anchors> |
||
158 | <HitRectInsets> |
||
159 | <AbsInset left="6" right="6" top="7" bottom="7"/> |
||
160 | </HitRectInsets> |
||
161 | <Scripts> |
||
162 | <OnClick> |
||
163 | DL_Show_Menu(1); |
||
164 | </OnClick> |
||
165 | </Scripts> |
||
166 | <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> |
||
167 | <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> |
||
168 | <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
||
169 | <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> |
||
170 | </Button> |
||
171 | <EditBox name="$parent_Setting" letters="1000" autoFocus="false" inherits="InputBoxTemplate" frameStrata="HIGH"> |
||
172 | <Size><AbsDimension x="100" y="22"/></Size> |
||
173 | <Anchors> |
||
174 | <Anchor point="LEFT"> |
||
175 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
176 | </Anchor> |
||
177 | <Anchor point="RIGHT"> |
||
178 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
179 | </Anchor> |
||
180 | </Anchors> |
||
181 | <FontString inherits="ChatFontNormal" font="Fonts\ARIALN.TTF"> |
||
182 | <Color r="1" g="1" b="0"/> |
||
183 | <FontHeight> |
||
184 | <AbsValue val="12"/> |
||
185 | </FontHeight> |
||
186 | </FontString> |
||
187 | <Scripts> |
||
188 | <OnEscapePressed> |
||
189 | if (this:GetParent().prevvalue) then |
||
190 | this:SetText(this:GetParent().prevvalue); |
||
191 | else |
||
192 | this:SetText(""); |
||
193 | end |
||
194 | this:ClearFocus(); |
||
195 | </OnEscapePressed> |
||
196 | <OnEnterPressed> |
||
197 | DFM_EditBox_OnEnterPressed(1); |
||
198 | </OnEnterPressed> |
||
199 | </Scripts> |
||
200 | </EditBox> |
||
201 | </Frames> |
||
202 | </Frame> |
||
203 | <Slider name="$parent_4" orientation="HORIZONTAL" hidden="true" enableMouse="true"> |
||
204 | <Size><AbsDimension x="190" y="17"/></Size> |
||
205 | <Anchors> |
||
206 | <Anchor point="TOPLEFT"> |
||
207 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
208 | </Anchor> |
||
209 | </Anchors> |
||
210 | <HitRectInsets> |
||
211 | <AbsInset left="0" right="0" top="-10" bottom="-10"/> |
||
212 | </HitRectInsets> |
||
213 | <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> |
||
214 | <EdgeSize> |
||
215 | <AbsValue val="8"/> |
||
216 | </EdgeSize> |
||
217 | <TileSize> |
||
218 | <AbsValue val="8"/> |
||
219 | </TileSize> |
||
220 | <BackgroundInsets> |
||
221 | <AbsInset left="3" right="3" top="6" bottom="6"/> |
||
222 | </BackgroundInsets> |
||
223 | </Backdrop> |
||
224 | <Frames> |
||
225 | <EditBox name="$parent_Display" letters="6" autoFocus="false" inherits="InputBoxTemplate" justifyH="CENTER" frameStrata="HIGH" virtual="true"> |
||
226 | <Size><AbsDimension x="53" y="20"/></Size> |
||
227 | <Anchors> |
||
228 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
229 | <Offset><AbsDimension x="5" y="0"/></Offset> |
||
230 | </Anchor> |
||
231 | </Anchors> |
||
232 | <Scripts> |
||
233 | <OnLoad> |
||
234 | this:SetTextColor(1,1,0); |
||
235 | </OnLoad> |
||
236 | <OnEnterPressed> |
||
237 | DFM_SliderEditBox_OnEnterPressed(); |
||
238 | </OnEnterPressed> |
||
239 | <OnEscapePressed> |
||
240 | this:SetText(this:GetParent():GetValue()); |
||
241 | this:ClearFocus(); |
||
242 | </OnEscapePressed> |
||
243 | </Scripts> |
||
244 | </EditBox> |
||
245 | </Frames> |
||
246 | <Layers> |
||
247 | <Layer level="ARTWORK"> |
||
248 | <FontString name="$parentLow" inherits="GameFontHighlightSmall" text="LOW"> |
||
249 | <Anchors> |
||
250 | <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
||
251 | <Offset> |
||
252 | <AbsDimension x="2" y="3"/> |
||
253 | </Offset> |
||
254 | </Anchor> |
||
255 | </Anchors> |
||
256 | </FontString> |
||
257 | <FontString name="$parentHigh" inherits="GameFontHighlightSmall" text="HIGH"> |
||
258 | <Anchors> |
||
259 | <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"> |
||
260 | <Offset> |
||
261 | <AbsDimension x="-2" y="3"/> |
||
262 | </Offset> |
||
263 | </Anchor> |
||
264 | </Anchors> |
||
265 | </FontString> |
||
266 | </Layer> |
||
267 | </Layers> |
||
268 | <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> |
||
269 | <Size> |
||
270 | <AbsDimension x="32" y="32"/> |
||
271 | </Size> |
||
272 | </ThumbTexture> |
||
273 | <Scripts> |
||
274 | <OnValueChanged> |
||
275 | DFM_Slider_OnValueChanged(); |
||
276 | </OnValueChanged> |
||
277 | </Scripts> |
||
278 | </Slider> |
||
279 | <CheckButton name="$parent_5" inherits="UICheckButtonTemplate" frameStrata="HIGH" hidden="true"> |
||
280 | <Size><AbsDimension x="30" y="30"/></Size> |
||
281 | <Scripts> |
||
282 | <OnLoad> |
||
283 | this.dynamicPosition = 1; |
||
284 | </OnLoad> |
||
285 | <OnClick> |
||
286 | DFM_CheckBox_OnClick(); |
||
287 | </OnClick> |
||
288 | </Scripts> |
||
289 | </CheckButton> |
||
290 | <Button name="$parent_6" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="HIGH" hidden="true"> |
||
291 | <Size><AbsDimension x="30" y="30"/></Size> |
||
292 | <Scripts> |
||
293 | <OnLoad> |
||
294 | this.dynamicPosition = 1; |
||
295 | </OnLoad> |
||
296 | <OnClick> |
||
297 | DFM_ColorPicker_OnClick(); |
||
298 | </OnClick> |
||
299 | </Scripts> |
||
300 | </Button> |
||
301 | <EditBox name="$parent_7" letters="1000" autoFocus="false" inherits="InputBoxTemplate" hidden="true" frameStrata="HIGH"> |
||
302 | <Size><AbsDimension x="75" y="25"/></Size> |
||
303 | <Frames> |
||
304 | <Button inherits="UIPanelButtonTemplate"> |
||
305 | <Size><AbsDimension x="20" y="20"/></Size> |
||
306 | <Anchors> |
||
307 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
308 | <Offset><AbsDimension x="-9" y="0"/></Offset> |
||
309 | </Anchor> |
||
310 | </Anchors> |
||
311 | <Scripts> |
||
312 | <OnLoad> |
||
313 | this:SetText("+"); |
||
314 | </OnLoad> |
||
315 | <OnClick> |
||
316 | DFM_PlusButton_OnClick(); |
||
317 | </OnClick> |
||
318 | </Scripts> |
||
319 | </Button> |
||
320 | <Button inherits="UIPanelButtonTemplate"> |
||
321 | <Size><AbsDimension x="20" y="20"/></Size> |
||
322 | <Anchors> |
||
323 | <Anchor point="RIGHT" relativePoint="LEFT"> |
||
324 | <Offset><AbsDimension x="-7" y="0"/></Offset> |
||
325 | </Anchor> |
||
326 | </Anchors> |
||
327 | <Scripts> |
||
328 | <OnLoad> |
||
329 | this:SetText("-"); |
||
330 | </OnLoad> |
||
331 | <OnClick> |
||
332 | DFM_MinusButton_OnClick(); |
||
333 | </OnClick> |
||
334 | </Scripts> |
||
335 | </Button> |
||
336 | </Frames> |
||
337 | <Scripts> |
||
338 | <OnLoad> |
||
339 | this.number = true; |
||
340 | this.dynamicPosition = 21; |
||
341 | </OnLoad> |
||
342 | <OnEscapePressed> |
||
343 | if (this.prevvalue) then |
||
344 | this:SetText(this.prevvalue); |
||
345 | else |
||
346 | this:SetText(""); |
||
347 | end |
||
348 | this:ClearFocus(); |
||
349 | </OnEscapePressed> |
||
350 | <OnEnterPressed> |
||
351 | DFM_EditBox_OnEnterPressed(); |
||
352 | </OnEnterPressed> |
||
353 | </Scripts> |
||
354 | </EditBox> |
||
355 | |||
356 | <CheckButton name="$parent_Use" inherits="UICheckButtonTemplate" frameStrata="HIGH"> |
||
357 | <Size><AbsDimension x="20" y="20"/></Size> |
||
358 | <Anchors> |
||
359 | <Anchor point="TOPRIGHT"> |
||
360 | <Offset><AbsDimension x="5" y="2"/></Offset> |
||
361 | </Anchor> |
||
362 | </Anchors> |
||
363 | <Layers> |
||
364 | <Layer level="ARTWORK"> |
||
365 | <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="DFM_USETEXT"> |
||
366 | <Anchors> |
||
367 | <Anchor point="RIGHT" relativePoint="LEFT"/> |
||
368 | </Anchors> |
||
369 | </FontString> |
||
370 | </Layer> |
||
371 | </Layers> |
||
372 | <Scripts> |
||
373 | <OnClick> |
||
374 | DFM_UseCheckBox_OnClick(); |
||
375 | </OnClick> |
||
376 | </Scripts> |
||
377 | </CheckButton> |
||
378 | <CheckButton name="$parent_Lock" inherits="UICheckButtonTemplate" frameStrata="HIGH"> |
||
379 | <Size><AbsDimension x="20" y="20"/></Size> |
||
380 | <Anchors> |
||
381 | <Anchor point="TOP" relativeTo="$parent_Use" relativePoint="BOTTOM"> |
||
382 | <Offset><AbsDimension x="0" y="3"/></Offset> |
||
383 | </Anchor> |
||
384 | </Anchors> |
||
385 | <Layers> |
||
386 | <Layer level="ARTWORK"> |
||
387 | <FontString name="$parent_Text" inherits="GameFontNormalSmall" text="DFM_LOCKTEXT"> |
||
388 | <Anchors> |
||
389 | <Anchor point="RIGHT" relativePoint="LEFT"/> |
||
390 | </Anchors> |
||
391 | </FontString> |
||
392 | </Layer> |
||
393 | </Layers> |
||
394 | <Scripts> |
||
395 | <OnClick> |
||
396 | DFM_LockCheckBox_OnClick(); |
||
397 | </OnClick> |
||
398 | </Scripts> |
||
399 | </CheckButton> |
||
400 | </Frames> |
||
401 | <Layers> |
||
402 | <Layer level="ARTWORK"> |
||
403 | <FontString name="$parent_Text" inherits="GameFontNormal"> |
||
404 | <Anchors> |
||
405 | <Anchor point="TOPLEFT"/> |
||
406 | </Anchors> |
||
407 | <Color r="1" g="1" b="1"/> |
||
408 | </FontString> |
||
409 | </Layer> |
||
410 | <Layer level="OVERLAY"> |
||
411 | <Texture name="$parent_Border"> |
||
412 | <Size><AbsDimension x="310" y="2"/></Size> |
||
413 | <Anchors> |
||
414 | <Anchor point="BOTTOM"> |
||
415 | <Offset><AbsDimension x="0" y="2"/></Offset> |
||
416 | </Anchor> |
||
417 | </Anchors> |
||
418 | <Color r=".3" g="0" b="0"/> |
||
419 | </Texture> |
||
420 | </Layer> |
||
421 | </Layers> |
||
422 | </Button> |
||
423 | |||
424 | <Button name="DFM_Options" inherits="DiscordLib_OptionsTemplate" hidden="true"> |
||
425 | <Size><AbsDimension x="570" y="590"/></Size> |
||
426 | <Frames> |
||
427 | <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate" frameStrata="HIGH"> |
||
428 | <Scripts> |
||
429 | <OnClick> |
||
430 | DFM_Options:Hide(); |
||
431 | </OnClick> |
||
432 | </Scripts> |
||
433 | </Button> |
||
434 | |||
435 | <ScrollFrame name="$parent_FrameMenu" inherits="DL_ScrollFrameTemplate"> |
||
436 | <Size><AbsDimension x="170" y="290"/></Size> |
||
437 | <Anchors> |
||
438 | <Anchor point="TOPLEFT"> |
||
439 | <Offset><AbsDimension x="15" y="-40"/></Offset> |
||
440 | </Anchor> |
||
441 | </Anchors> |
||
442 | <Scripts> |
||
443 | <OnLoad> |
||
444 | getglobal(this:GetName().."_OuterBorder_Header"):SetText(DFM_TEXT.Frames); |
||
445 | </OnLoad> |
||
446 | <OnVerticalScroll> |
||
447 | FauxScrollFrame_OnVerticalScroll(20, DFM_FrameMenu_Update); |
||
448 | </OnVerticalScroll> |
||
449 | </Scripts> |
||
450 | </ScrollFrame> |
||
451 | <CheckButton name="$parent_FrameMenu_Button1" inherits="DFM_ScrollButtonTemplate" id="1"> |
||
452 | <Anchors> |
||
453 | <Anchor point="TOPLEFT" relativeTo="$parent_FrameMenu"> |
||
454 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
455 | </Anchor> |
||
456 | </Anchors> |
||
457 | </CheckButton> |
||
458 | <CheckButton name="$parent_FrameMenu_Button2" inherits="DFM_ScrollButtonTemplate" id="2"/> |
||
459 | <CheckButton name="$parent_FrameMenu_Button3" inherits="DFM_ScrollButtonTemplate" id="3"/> |
||
460 | <CheckButton name="$parent_FrameMenu_Button4" inherits="DFM_ScrollButtonTemplate" id="4"/> |
||
461 | <CheckButton name="$parent_FrameMenu_Button5" inherits="DFM_ScrollButtonTemplate" id="5"/> |
||
462 | <CheckButton name="$parent_FrameMenu_Button6" inherits="DFM_ScrollButtonTemplate" id="6"/> |
||
463 | <CheckButton name="$parent_FrameMenu_Button7" inherits="DFM_ScrollButtonTemplate" id="7"/> |
||
464 | <CheckButton name="$parent_FrameMenu_Button8" inherits="DFM_ScrollButtonTemplate" id="8"/> |
||
465 | <CheckButton name="$parent_FrameMenu_Button9" inherits="DFM_ScrollButtonTemplate" id="9"/> |
||
466 | <CheckButton name="$parent_FrameMenu_Button10" inherits="DFM_ScrollButtonTemplate" id="10"/> |
||
467 | <CheckButton name="$parent_FrameMenu_Button11" inherits="DFM_ScrollButtonTemplate" id="11"/> |
||
468 | <CheckButton name="$parent_FrameMenu_Button12" inherits="DFM_ScrollButtonTemplate" id="12"/> |
||
469 | <CheckButton name="$parent_FrameMenu_Button13" inherits="DFM_ScrollButtonTemplate" id="13"/> |
||
470 | <CheckButton name="$parent_FrameMenu_Button14" inherits="DFM_ScrollButtonTemplate" id="14"/> |
||
471 | |||
472 | <ScrollFrame name="$parent_OptionsMenu" inherits="DL_ScrollFrameTemplate" frameStrata="MEDIUM"> |
||
473 | <Size><AbsDimension x="310" y="290"/></Size> |
||
474 | <Anchors> |
||
475 | <Anchor point="TOPLEFT" relativeTo="$parent_FrameMenu" relativePoint="TOPRIGHT"> |
||
476 | <Offset><AbsDimension x="35" y="0"/></Offset> |
||
477 | </Anchor> |
||
478 | </Anchors> |
||
479 | <Layers> |
||
480 | <Layer level="OVERLAY"> |
||
481 | <Texture> |
||
482 | <Size><AbsDimension x="2" y="300"/></Size> |
||
483 | <Anchors> |
||
484 | <Anchor point="RIGHT"> |
||
485 | <Offset><AbsDimension x="-50" y="0"/></Offset> |
||
486 | </Anchor> |
||
487 | </Anchors> |
||
488 | <Color r=".3" g="0" b="0"/> |
||
489 | </Texture> |
||
490 | </Layer> |
||
491 | </Layers> |
||
492 | <Scripts> |
||
493 | <OnVerticalScroll> |
||
494 | FauxScrollFrame_OnVerticalScroll(40, DFM_OptionsMenu_Update); |
||
495 | </OnVerticalScroll> |
||
496 | </Scripts> |
||
497 | </ScrollFrame> |
||
498 | <Button name="$parent_OptionsMenu_Button1" inherits="DFM_OptionsFrameTemplate" id="1"> |
||
499 | <Anchors> |
||
500 | <Anchor point="TOPLEFT" relativeTo="$parent_OptionsMenu"> |
||
501 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
502 | </Anchor> |
||
503 | </Anchors> |
||
504 | </Button> |
||
505 | <Button name="$parent_OptionsMenu_Button2" inherits="DFM_OptionsFrameTemplate" id="2"/> |
||
506 | <Button name="$parent_OptionsMenu_Button3" inherits="DFM_OptionsFrameTemplate" id="3"/> |
||
507 | <Button name="$parent_OptionsMenu_Button4" inherits="DFM_OptionsFrameTemplate" id="4"/> |
||
508 | <Button name="$parent_OptionsMenu_Button5" inherits="DFM_OptionsFrameTemplate" id="5"/> |
||
509 | <Button name="$parent_OptionsMenu_Button6" inherits="DFM_OptionsFrameTemplate" id="6"/> |
||
510 | <Button name="$parent_OptionsMenu_Button7" inherits="DFM_OptionsFrameTemplate" id="7"/> |
||
511 | |||
512 | <Frame name="$parent_LocBG" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="MEDIUM"> |
||
513 | <Size><AbsDimension x="346" y="121"/></Size> |
||
514 | <Anchors> |
||
515 | <Anchor point="TOPLEFT" relativeTo="$parent_OptionsMenu" relativePoint="BOTTOMLEFT"> |
||
516 | <Offset><AbsDimension x="-5" y="-6"/></Offset> |
||
517 | </Anchor> |
||
518 | </Anchors> |
||
519 | <Layers> |
||
520 | <Layer level="OVERLAY"> |
||
521 | <Texture> |
||
522 | <Size><AbsDimension x="336" y="2"/></Size> |
||
523 | <Anchors> |
||
524 | <Anchor point="TOP"> |
||
525 | <Offset><AbsDimension x="0" y="-25"/></Offset> |
||
526 | </Anchor> |
||
527 | </Anchors> |
||
528 | <Color r=".3" g="0" b="0"/> |
||
529 | </Texture> |
||
530 | <FontString inherits="GameFontNormal" text="DFM_FRAMELOC"> |
||
531 | <Anchors> |
||
532 | <Anchor point="TOP"> |
||
533 | <Offset><AbsDimension x="0" y="-8"/></Offset> |
||
534 | </Anchor> |
||
535 | </Anchors> |
||
536 | </FontString> |
||
537 | </Layer> |
||
538 | </Layers> |
||
539 | <Scripts> |
||
540 | <OnLoad> |
||
541 | this:SetBackdropColor(0, 0, 0); |
||
542 | this:SetBackdropBorderColor(.8, 0, 0); |
||
543 | </OnLoad> |
||
544 | </Scripts> |
||
545 | </Frame> |
||
546 | <Button name="$parent_NudgeReset" inherits="DFM_NudgeTemplate" id="0" frameStrata="HIGH"> |
||
547 | <Anchors> |
||
548 | <Anchor point="TOPLEFT" relativeTo="$parent_LocBG"> |
||
549 | <Offset><AbsDimension x="70" y="-50"/></Offset> |
||
550 | </Anchor> |
||
551 | </Anchors> |
||
552 | <Scripts> |
||
553 | <OnLoad> |
||
554 | DL_NudgeButton_OnLoad(); |
||
555 | this.updateFrame = "DFM_Options_YOffset"; |
||
556 | </OnLoad> |
||
557 | </Scripts> |
||
558 | </Button> |
||
559 | <Button name="$parent_NudgeUp" inherits="DFM_NudgeTemplate" id="1" frameStrata="HIGH"> |
||
560 | <Anchors> |
||
561 | <Anchor point="BOTTOM" relativeTo="$parent_NudgeReset" relativePoint="TOP"/> |
||
562 | </Anchors> |
||
563 | <Scripts> |
||
564 | <OnLoad> |
||
565 | DL_NudgeButton_OnLoad(); |
||
566 | this.updateFrame = "DFM_Options_YOffset"; |
||
567 | </OnLoad> |
||
568 | </Scripts> |
||
569 | </Button> |
||
570 | <Button name="$parent_NudgeDown" inherits="DFM_NudgeTemplate" id="2" frameStrata="HIGH"> |
||
571 | <Anchors> |
||
572 | <Anchor point="TOP" relativeTo="$parent_NudgeReset" relativePoint="BOTTOM"/> |
||
573 | </Anchors> |
||
574 | <Scripts> |
||
575 | <OnLoad> |
||
576 | DL_NudgeButton_OnLoad(); |
||
577 | this.updateFrame = "DFM_Options_YOffset"; |
||
578 | </OnLoad> |
||
579 | </Scripts> |
||
580 | </Button> |
||
581 | <Button name="$parent_NudgeLeft" inherits="DFM_NudgeTemplate" id="3" frameStrata="HIGH"> |
||
582 | <Anchors> |
||
583 | <Anchor point="RIGHT" relativeTo="$parent_NudgeReset" relativePoint="LEFT"/> |
||
584 | </Anchors> |
||
585 | <Scripts> |
||
586 | <OnLoad> |
||
587 | DL_NudgeButton_OnLoad(); |
||
588 | this.updateFrame = "DFM_Options_XOffset"; |
||
589 | </OnLoad> |
||
590 | </Scripts> |
||
591 | </Button> |
||
592 | <Button name="$parent_NudgeRight" inherits="DFM_NudgeTemplate" id="4" frameStrata="HIGH"> |
||
593 | <Anchors> |
||
594 | <Anchor point="LEFT" relativeTo="$parent_NudgeReset" relativePoint="RIGHT"/> |
||
595 | </Anchors> |
||
596 | <Scripts> |
||
597 | <OnLoad> |
||
598 | DL_NudgeButton_OnLoad(); |
||
599 | this.updateFrame = "DFM_Options_XOffset"; |
||
600 | </OnLoad> |
||
601 | </Scripts> |
||
602 | </Button> |
||
603 | <EditBox name="$parent_XOffset" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
604 | <Size><AbsDimension x="55" y="24"/></Size> |
||
605 | <Anchors> |
||
606 | <Anchor point="BOTTOMLEFT" relativeTo="$parent_LocBG"> |
||
607 | <Offset><AbsDimension x="25" y="5"/></Offset> |
||
608 | </Anchor> |
||
609 | </Anchors> |
||
610 | <Scripts> |
||
611 | <OnLoad> |
||
612 | DL_Set_Label("X:"); |
||
613 | </OnLoad> |
||
614 | <OnEnterPressed> |
||
615 | DFM_Update_XOffset(); |
||
616 | </OnEnterPressed> |
||
617 | </Scripts> |
||
618 | </EditBox> |
||
619 | <EditBox name="$parent_YOffset" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
620 | <Size><AbsDimension x="55" y="24"/></Size> |
||
621 | <Scripts> |
||
622 | <OnLoad> |
||
623 | DL_Set_Label("Y:"); |
||
624 | DL_Set_Anchor("_XOffset", 0, 0, "LEFT", "RIGHT"); |
||
625 | </OnLoad> |
||
626 | <OnEnterPressed> |
||
627 | DFM_Update_YOffset(); |
||
628 | </OnEnterPressed> |
||
629 | </Scripts> |
||
630 | </EditBox> |
||
631 | <CheckButton name="$parent_UseLocation" inherits="UICheckButtonTemplate" frameStrata="HIGH"> |
||
632 | <Size><AbsDimension x="25" y="25"/></Size> |
||
633 | <Anchors> |
||
634 | <Anchor point="TOPLEFT" relativeTo="$parent_LocBG"> |
||
635 | <Offset><AbsDimension x="40" y="-3"/></Offset> |
||
636 | </Anchor> |
||
637 | </Anchors> |
||
638 | <Layers> |
||
639 | <Layer level="ARTWORK"> |
||
640 | <FontString name="$parent_Text" inherits="GameFontNormal" text="DFM_USETEXT"> |
||
641 | <Anchors> |
||
642 | <Anchor point="RIGHT" relativePoint="LEFT"/> |
||
643 | </Anchors> |
||
644 | </FontString> |
||
645 | </Layer> |
||
646 | </Layers> |
||
647 | <Scripts> |
||
648 | <OnClick> |
||
649 | DFM_UseLocationCheckBox_OnClick(); |
||
650 | </OnClick> |
||
651 | </Scripts> |
||
652 | </CheckButton> |
||
653 | <CheckButton name="$parent_LockLocation" inherits="UICheckButtonTemplate" frameStrata="HIGH"> |
||
654 | <Size><AbsDimension x="25" y="25"/></Size> |
||
655 | <Anchors> |
||
656 | <Anchor point="TOPRIGHT" relativeTo="$parent_LocBG"> |
||
657 | <Offset><AbsDimension x="-5" y="-3"/></Offset> |
||
658 | </Anchor> |
||
659 | </Anchors> |
||
660 | <Layers> |
||
661 | <Layer level="ARTWORK"> |
||
662 | <FontString name="$parent_Text" inherits="GameFontNormal" text="DFM_LOCKTEXT"> |
||
663 | <Anchors> |
||
664 | <Anchor point="RIGHT" relativePoint="LEFT"/> |
||
665 | </Anchors> |
||
666 | </FontString> |
||
667 | </Layer> |
||
668 | </Layers> |
||
669 | <Scripts> |
||
670 | <OnClick> |
||
671 | DFM_LockLocationCheckBox_OnClick(); |
||
672 | </OnClick> |
||
673 | </Scripts> |
||
674 | </CheckButton> |
||
675 | <EditBox name="$parent_AnchorFrame" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
676 | <Size><AbsDimension x="150" y="24"/></Size> |
||
677 | <Anchors> |
||
678 | <Anchor point="TOPRIGHT" relativeTo="$parent_LocBG"> |
||
679 | <Offset><AbsDimension x="2" y="-30"/></Offset> |
||
680 | </Anchor> |
||
681 | </Anchors> |
||
682 | <Scripts> |
||
683 | <OnLoad> |
||
684 | DL_Set_Label(DFM_TEXT.Frame); |
||
685 | </OnLoad> |
||
686 | <OnEnterPressed> |
||
687 | DFM_Update_AnchorFrame(); |
||
688 | </OnEnterPressed> |
||
689 | </Scripts> |
||
690 | </EditBox> |
||
691 | <Button name="$parent_AnchorPoint" inherits="DiscordLib_MenuControlTemplate"> |
||
692 | <Size><AbsDimension x="143" y="22"/></Size> |
||
693 | <Anchors> |
||
694 | <Anchor point="TOPRIGHT" relativeTo="$parent_AnchorFrame" relativePoint="BOTTOMRIGHT"> |
||
695 | <Offset><AbsDimension x="-7" y="0"/></Offset> |
||
696 | </Anchor> |
||
697 | </Anchors> |
||
698 | <Scripts> |
||
699 | <OnLoad> |
||
700 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
701 | this.menu = "DFM_DropMenu"; |
||
702 | this.table = "DL_ANCHORS"; |
||
703 | this.index = "point"; |
||
704 | DL_Set_Label(DFM_TEXT.Point); |
||
705 | </OnLoad> |
||
706 | </Scripts> |
||
707 | </Button> |
||
708 | <Button name="$parent_AnchorTo" inherits="DiscordLib_MenuControlTemplate"> |
||
709 | <Size><AbsDimension x="143" y="22"/></Size> |
||
710 | <Anchors> |
||
711 | <Anchor point="TOPRIGHT" relativeTo="$parent_AnchorPoint" relativePoint="BOTTOMRIGHT"/> |
||
712 | </Anchors> |
||
713 | <Scripts> |
||
714 | <OnLoad> |
||
715 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
716 | this.menu = "DFM_DropMenu"; |
||
717 | this.table = "DL_ANCHORS"; |
||
718 | this.index = "to"; |
||
719 | DL_Set_Label(DFM_TEXT.To); |
||
720 | </OnLoad> |
||
721 | </Scripts> |
||
722 | </Button> |
||
723 | <Button inherits="UIPanelButtonTemplate" hidden="false" text="DFM_DRAGFRAME"> |
||
724 | <Size><AbsDimension x="145" y="20"/></Size> |
||
725 | <Anchors> |
||
726 | <Anchor point="TOP" relativeTo="$parent_AnchorTo" relativePoint="BOTTOM"/> |
||
727 | </Anchors> |
||
728 | <Scripts> |
||
729 | <OnClick> |
||
730 | DFM_Summon_DragFrame(); |
||
731 | </OnClick> |
||
732 | </Scripts> |
||
733 | </Button> |
||
734 | |||
735 | <Frame name="$parent_AddFrameBG" inherits="DiscordLib_TooltipBackdropTemplate" frameStrata="MEDIUM"> |
||
736 | <Size><AbsDimension x="206" y="121"/></Size> |
||
737 | <Anchors> |
||
738 | <Anchor point="TOPLEFT" relativeTo="$parent_FrameMenu" relativePoint="BOTTOMLEFT"> |
||
739 | <Offset><AbsDimension x="-5" y="-6"/></Offset> |
||
740 | </Anchor> |
||
741 | </Anchors> |
||
742 | <Scripts> |
||
743 | <OnLoad> |
||
744 | this:SetBackdropColor(0, 0, 0); |
||
745 | this:SetBackdropBorderColor(.8, 0, 0); |
||
746 | </OnLoad> |
||
747 | </Scripts> |
||
748 | </Frame> |
||
749 | <EditBox name="$parent_AddFrame" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
750 | <Size><AbsDimension x="150" y="24"/></Size> |
||
751 | <Scripts> |
||
752 | <OnLoad> |
||
753 | DL_Set_Label(DFM_TEXT.Frame); |
||
754 | DL_Set_Anchor("_AddFrameBG", 5, -5, "TOPLEFT", "TOPLEFT"); |
||
755 | </OnLoad> |
||
756 | <OnEnterPressed> |
||
757 | DFM_Options_AddName:SetFocus(); |
||
758 | </OnEnterPressed> |
||
759 | <OnTabPressed> |
||
760 | DFM_Options_AddName:SetFocus(); |
||
761 | </OnTabPressed> |
||
762 | <OnTextChanged> |
||
763 | if (getglobal(this:GetText())) then |
||
764 | DFM_Options_AddFrameButton:Enable(); |
||
765 | else |
||
766 | DFM_Options_AddFrameButton:Disable(); |
||
767 | end |
||
768 | </OnTextChanged> |
||
769 | </Scripts> |
||
770 | </EditBox> |
||
771 | <EditBox name="$parent_AddName" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
772 | <Size><AbsDimension x="150" y="24"/></Size> |
||
773 | <Scripts> |
||
774 | <OnLoad> |
||
775 | DL_Set_Label(DFM_TEXT.Name); |
||
776 | DL_Set_Anchor("_AddFrameBG", 5, -28, "TOPLEFT", "TOPLEFT"); |
||
777 | </OnLoad> |
||
778 | <OnEnterPressed> |
||
779 | DFM_Options_AddHeader:SetFocus(); |
||
780 | </OnEnterPressed> |
||
781 | <OnTabPressed> |
||
782 | DFM_Options_AddHeader:SetFocus(); |
||
783 | </OnTabPressed> |
||
784 | </Scripts> |
||
785 | </EditBox> |
||
786 | <EditBox name="$parent_AddHeader" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
787 | <Size><AbsDimension x="150" y="24"/></Size> |
||
788 | <Scripts> |
||
789 | <OnLoad> |
||
790 | DL_Set_Label(DFM_TEXT.Header); |
||
791 | DL_Set_Anchor("_AddFrameBG", 5, -51, "TOPLEFT", "TOPLEFT"); |
||
792 | </OnLoad> |
||
793 | <OnEnterPressed> |
||
794 | this:ClearFocus(); |
||
795 | </OnEnterPressed> |
||
796 | </Scripts> |
||
797 | </EditBox> |
||
798 | <CheckButton name="$parent_AddChildren" inherits="DiscordLib_CheckBoxTemplate"> |
||
799 | <Anchors> |
||
800 | <Anchor point="TOPLEFT" relativeTo="$parent_AddFrameBG"> |
||
801 | <Offset><AbsDimension x="5" y="-75"/></Offset> |
||
802 | </Anchor> |
||
803 | </Anchors> |
||
804 | <Scripts> |
||
805 | <OnLoad> |
||
806 | DL_Set_Label(DFM_TEXT.AddChildren); |
||
807 | </OnLoad> |
||
808 | </Scripts> |
||
809 | </CheckButton> |
||
810 | <Button name="$parent_AddFrameButton" inherits="UIPanelButtonTemplate" hidden="false"> |
||
811 | <Size><AbsDimension x="145" y="20"/></Size> |
||
812 | <Anchors> |
||
813 | <Anchor point="BOTTOM" relativeTo="$parent_AddFrameBG"> |
||
814 | <Offset><AbsDimension x="0" y="5"/></Offset> |
||
815 | </Anchor> |
||
816 | </Anchors> |
||
817 | <Scripts> |
||
818 | <OnLoad> |
||
819 | this:SetText(DFM_TEXT.AddFrame); |
||
820 | this:Disable(); |
||
821 | </OnLoad> |
||
822 | <OnClick> |
||
823 | DFM_AddNewFrame(); |
||
824 | </OnClick> |
||
825 | </Scripts> |
||
826 | </Button> |
||
827 | |||
828 | <EditBox name="$parent_NewProfile" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
829 | <Size><AbsDimension x="150" y="24"/></Size> |
||
830 | <Scripts> |
||
831 | <OnLoad> |
||
832 | DL_Set_Label(DFM_TEXT.NewProfile); |
||
833 | DL_Set_Anchor("_AddFrameBG", 5, -17); |
||
834 | </OnLoad> |
||
835 | <OnEnterPressed> |
||
836 | DFM_Create_Profile(); |
||
837 | </OnEnterPressed> |
||
838 | </Scripts> |
||
839 | </EditBox> |
||
840 | <Button inherits="UIPanelButtonTemplate" text="DL_CREATETEXT"> |
||
841 | <Size><AbsDimension x="75" y="24"/></Size> |
||
842 | <Anchors> |
||
843 | <Anchor point="LEFT" relativeTo="$parent_NewProfile" relativePoint="RIGHT"/> |
||
844 | </Anchors> |
||
845 | <Scripts> |
||
846 | <OnClick> |
||
847 | DFM_Create_Profile(); |
||
848 | </OnClick> |
||
849 | </Scripts> |
||
850 | </Button> |
||
851 | <Button name="$parent_LoadProfile" inherits="DiscordLib_MenuControlTemplate"> |
||
852 | <Size><AbsDimension x="143" y="22"/></Size> |
||
853 | <Scripts> |
||
854 | <OnLoad> |
||
855 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
856 | this.menu = "DFM_DropMenu"; |
||
857 | this.table = "DFM_PROFILES"; |
||
858 | this.index = "profile"; |
||
859 | DL_Set_Label(DFM_TEXT.LoadProfile); |
||
860 | DL_Set_Anchor("_AddFrameBG", 5, -42); |
||
861 | </OnLoad> |
||
862 | </Scripts> |
||
863 | </Button> |
||
864 | <Button name="$parent_Load" inherits="UIPanelButtonTemplate" text="DL_LOADTEXT"> |
||
865 | <Size><AbsDimension x="75" y="24"/></Size> |
||
866 | <Anchors> |
||
867 | <Anchor point="LEFT" relativeTo="$parent_LoadProfile" relativePoint="RIGHT"> |
||
868 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
869 | </Anchor> |
||
870 | </Anchors> |
||
871 | <Scripts> |
||
872 | <OnClick> |
||
873 | DFM_Load_Profile(); |
||
874 | </OnClick> |
||
875 | </Scripts> |
||
876 | </Button> |
||
877 | <Button inherits="UIPanelButtonTemplate" text="DL_DELETETEXT"> |
||
878 | <Size><AbsDimension x="75" y="24"/></Size> |
||
879 | <Anchors> |
||
880 | <Anchor point="LEFT" relativeTo="$parent_Load" relativePoint="RIGHT"/> |
||
881 | </Anchors> |
||
882 | <Scripts> |
||
883 | <OnClick> |
||
884 | DFM_Delete_Profile(); |
||
885 | </OnClick> |
||
886 | </Scripts> |
||
887 | </Button> |
||
888 | |||
889 | <Button name="$parent_Paste" inherits="UIPanelButtonTemplate" text="DL_PASTETEXT"> |
||
890 | <Size><AbsDimension x="75" y="24"/></Size> |
||
891 | <Anchors> |
||
892 | <Anchor point="TOPRIGHT" relativeTo="$parent_LocBG" relativePoint="BOTTOMRIGHT"/> |
||
893 | </Anchors> |
||
894 | <Scripts> |
||
895 | <OnClick> |
||
896 | DFM_Paste_Settings(); |
||
897 | </OnClick> |
||
898 | </Scripts> |
||
899 | </Button> |
||
900 | <Button inherits="UIPanelButtonTemplate" text="DL_COPYTEXT"> |
||
901 | <Size><AbsDimension x="75" y="24"/></Size> |
||
902 | <Anchors> |
||
903 | <Anchor point="RIGHT" relativeTo="$parent_Paste" relativePoint="LEFT"/> |
||
904 | </Anchors> |
||
905 | <Scripts> |
||
906 | <OnClick> |
||
907 | DFM_Copy_Settings(); |
||
908 | </OnClick> |
||
909 | </Scripts> |
||
910 | </Button> |
||
911 | <Button name="$parent_ShowFrame" inherits="UIPanelButtonTemplate" text="DFM_SHOWTEXT"> |
||
912 | <Size><AbsDimension x="75" y="24"/></Size> |
||
913 | <Anchors> |
||
914 | <Anchor point="TOPRIGHT" relativeTo="$parent_Paste" relativePoint="BOTTOMRIGHT"/> |
||
915 | </Anchors> |
||
916 | <Scripts> |
||
917 | <OnClick> |
||
918 | if (DFM_SELECTED_INDEX) then |
||
919 | getglobal(DFM_FRAME_LIST[DFM_SELECTED_INDEX].frame):Show(); |
||
920 | end |
||
921 | </OnClick> |
||
922 | </Scripts> |
||
923 | </Button> |
||
924 | <Button inherits="UIPanelButtonTemplate" text="DFM_HIDETEXT"> |
||
925 | <Size><AbsDimension x="75" y="24"/></Size> |
||
926 | <Anchors> |
||
927 | <Anchor point="RIGHT" relativeTo="$parent_ShowFrame" relativePoint="LEFT"/> |
||
928 | </Anchors> |
||
929 | <Scripts> |
||
930 | <OnClick> |
||
931 | if (DFM_SELECTED_INDEX) then |
||
932 | getglobal(DFM_FRAME_LIST[DFM_SELECTED_INDEX].frame):Hide(); |
||
933 | end |
||
934 | </OnClick> |
||
935 | </Scripts> |
||
936 | </Button> |
||
937 | <Button inherits="UIPanelButtonTemplate"> |
||
938 | <Size><AbsDimension x="150" y="24"/></Size> |
||
939 | <Anchors> |
||
940 | <Anchor point="TOPRIGHT" relativeTo="$parent_ShowFrame" relativePoint="BOTTOMRIGHT"/> |
||
941 | </Anchors> |
||
942 | <Scripts> |
||
943 | <OnLoad> |
||
944 | this:SetText(DFM_TEXT.FrameFinder); |
||
945 | </OnLoad> |
||
946 | <OnClick> |
||
947 | DFM_Toggle_FrameFinder(); |
||
948 | </OnClick> |
||
949 | </Scripts> |
||
950 | </Button> |
||
951 | <Button inherits="UIPanelButtonTemplate"> |
||
952 | <Size><AbsDimension x="150" y="24"/></Size> |
||
953 | <Anchors> |
||
954 | <Anchor point="TOPRIGHT" relativeTo="$parent_ShowFrame" relativePoint="BOTTOMRIGHT"> |
||
955 | <Offset><AbsDimension x="0" y="-24"/></Offset> |
||
956 | </Anchor> |
||
957 | </Anchors> |
||
958 | <Scripts> |
||
959 | <OnLoad> |
||
960 | this:SetText(DFM_TEXT.ResetFrame); |
||
961 | </OnLoad> |
||
962 | <OnEnter> |
||
963 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
964 | GameTooltip:SetText("Clicking this button will clear all saved settings for the frame and return it to defaults the next time you reload the UI.", 1, 1, 1, 1, 1); |
||
965 | </OnEnter> |
||
966 | <OnLeave> |
||
967 | GameTooltip:Hide(); |
||
968 | </OnLeave> |
||
969 | <OnClick> |
||
970 | DFM_Reset_Frame(); |
||
971 | </OnClick> |
||
972 | </Scripts> |
||
973 | </Button> |
||
974 | <Button inherits="UIPanelButtonTemplate"> |
||
975 | <Size><AbsDimension x="150" y="24"/></Size> |
||
976 | <Anchors> |
||
977 | <Anchor point="TOPRIGHT" relativeTo="$parent_ShowFrame" relativePoint="BOTTOMRIGHT"> |
||
978 | <Offset><AbsDimension x="0" y="-48"/></Offset> |
||
979 | </Anchor> |
||
980 | </Anchors> |
||
981 | <Scripts> |
||
982 | <OnLoad> |
||
983 | this:SetText(DFM_TEXT.RemoveFromList); |
||
984 | </OnLoad> |
||
985 | <OnEnter> |
||
986 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
987 | GameTooltip:SetText("Clicking this button will clear all saved settings for the frame, return it to defaults, and remove it from the frame list.", 1, 1, 1, 1, 1); |
||
988 | </OnEnter> |
||
989 | <OnLeave> |
||
990 | GameTooltip:Hide(); |
||
991 | </OnLeave> |
||
992 | <OnClick> |
||
993 | DFM_Remove_Frame(); |
||
994 | </OnClick> |
||
995 | </Scripts> |
||
996 | </Button> |
||
997 | |||
998 | <Button inherits="UIPanelButtonTemplate"> |
||
999 | <Size><AbsDimension x="200" y="24"/></Size> |
||
1000 | <Anchors> |
||
1001 | <Anchor point="BOTTOMLEFT"> |
||
1002 | <Offset><AbsDimension x="15" y="40"/></Offset> |
||
1003 | </Anchor> |
||
1004 | </Anchors> |
||
1005 | <Scripts> |
||
1006 | <OnLoad> |
||
1007 | this:SetText(DFM_TEXT.CreateNewFrame); |
||
1008 | </OnLoad> |
||
1009 | <OnClick> |
||
1010 | DFM_CreateFrameForm:Show(); |
||
1011 | </OnClick> |
||
1012 | </Scripts> |
||
1013 | </Button> |
||
1014 | <Button inherits="UIPanelButtonTemplate"> |
||
1015 | <Size><AbsDimension x="150" y="24"/></Size> |
||
1016 | <Anchors> |
||
1017 | <Anchor point="BOTTOMLEFT"> |
||
1018 | <Offset><AbsDimension x="15" y="15"/></Offset> |
||
1019 | </Anchor> |
||
1020 | </Anchors> |
||
1021 | <Scripts> |
||
1022 | <OnLoad> |
||
1023 | this:SetText(DFM_TEXT.ReloadUI); |
||
1024 | </OnLoad> |
||
1025 | <OnClick> |
||
1026 | ReloadUI(); |
||
1027 | </OnClick> |
||
1028 | </Scripts> |
||
1029 | </Button> |
||
1030 | <Button inherits="UIPanelButtonTemplate"> |
||
1031 | <Size><AbsDimension x="200" y="24"/></Size> |
||
1032 | <Anchors> |
||
1033 | <Anchor point="BOTTOMLEFT"> |
||
1034 | <Offset><AbsDimension x="160" y="15"/></Offset> |
||
1035 | </Anchor> |
||
1036 | </Anchors> |
||
1037 | <Scripts> |
||
1038 | <OnLoad> |
||
1039 | this:SetText(DFM_TEXT.LoadOnDemand); |
||
1040 | </OnLoad> |
||
1041 | <OnClick> |
||
1042 | if (DFM_LoDFrame:IsVisible()) then |
||
1043 | DFM_LoDFrame:Hide(); |
||
1044 | else |
||
1045 | DFM_LoDFrame:Show(); |
||
1046 | end |
||
1047 | </OnClick> |
||
1048 | </Scripts> |
||
1049 | </Button> |
||
1050 | </Frames> |
||
1051 | <Layers> |
||
1052 | <Layer level="OVERLAY"> |
||
1053 | <FontString name="$parent_ProfileLabel" inherits="GameFontNormal"> |
||
1054 | <Anchors> |
||
1055 | <Anchor point="TOPLEFT"> |
||
1056 | <Offset><AbsDimension x="15" y="-460"/></Offset> |
||
1057 | </Anchor> |
||
1058 | </Anchors> |
||
1059 | </FontString> |
||
1060 | <Texture> |
||
1061 | <Size><AbsDimension x="397" y="2"/></Size> |
||
1062 | <Color r=".3" g="0" b="0"/> |
||
1063 | <Anchors> |
||
1064 | <Anchor point="BOTTOMLEFT"> |
||
1065 | <Offset><AbsDimension x="7" y="65"/></Offset> |
||
1066 | </Anchor> |
||
1067 | </Anchors> |
||
1068 | </Texture> |
||
1069 | <Texture> |
||
1070 | <Size><AbsDimension x="2" y="130"/></Size> |
||
1071 | <Color r=".3" g="0" b="0"/> |
||
1072 | <Anchors> |
||
1073 | <Anchor point="BOTTOMRIGHT"> |
||
1074 | <Offset><AbsDimension x="-165" y="7"/></Offset> |
||
1075 | </Anchor> |
||
1076 | </Anchors> |
||
1077 | </Texture> |
||
1078 | </Layer> |
||
1079 | </Layers> |
||
1080 | <Scripts> |
||
1081 | <OnClick> |
||
1082 | DFM_DropMenu:Hide(); |
||
1083 | DFM_ScrollMenu:Hide(); |
||
1084 | </OnClick> |
||
1085 | <OnShow> |
||
1086 | DFM_Initialize_AllFrames(); |
||
1087 | </OnShow> |
||
1088 | </Scripts> |
||
1089 | </Button> |
||
1090 | |||
1091 | <Button name="DFM_ScrollMenu" inherits="DL_ScrollMenuTemplate" hidden="true" parent="DFM_Options"> |
||
1092 | <Scripts> |
||
1093 | <OnLoad> |
||
1094 | this:SetBackdropColor(0, 0, 0); |
||
1095 | this:SetBackdropBorderColor(1, 0, 0); |
||
1096 | this.scrollMenu = true; |
||
1097 | this.updateFunc = DFM_ScrollMenu_Update; |
||
1098 | </OnLoad> |
||
1099 | </Scripts> |
||
1100 | </Button> |
||
1101 | |||
1102 | <Button name="DFM_DropMenu" inherits="DL_DropMenuTemplate" parent="DFM_Options" hidden="true"/> |
||
1103 | |||
1104 | <Frame name="DFM_ReloadUIFrame" inherits="DiscordLib_DialogueBackdropTemplate" frameStrata="DIALOG" parent="UIParent" hidden="true"> |
||
1105 | <Size><AbsDimension x="300" y="100"/></Size> |
||
1106 | <Anchors> |
||
1107 | <Anchor point="CENTER"/> |
||
1108 | </Anchors> |
||
1109 | <Frames> |
||
1110 | <Button name="$parent_No" inherits="UIPanelButtonTemplate" hidden="false"> |
||
1111 | <Size><AbsDimension x="70" y="24"/></Size> |
||
1112 | <Anchors> |
||
1113 | <Anchor point="BOTTOM"> |
||
1114 | <Offset><AbsDimension x="-35" y="15"/></Offset> |
||
1115 | </Anchor> |
||
1116 | </Anchors> |
||
1117 | <Scripts> |
||
1118 | <OnLoad> |
||
1119 | this:SetText(DFM_TEXT.No); |
||
1120 | </OnLoad> |
||
1121 | <OnClick> |
||
1122 | DFM_ReloadUIFrame:Hide(); |
||
1123 | </OnClick> |
||
1124 | </Scripts> |
||
1125 | </Button> |
||
1126 | <Button name="$parent_Yes" inherits="UIPanelButtonTemplate" hidden="false"> |
||
1127 | <Size><AbsDimension x="70" y="24"/></Size> |
||
1128 | <Anchors> |
||
1129 | <Anchor point="BOTTOM"> |
||
1130 | <Offset><AbsDimension x="35" y="15"/></Offset> |
||
1131 | </Anchor> |
||
1132 | </Anchors> |
||
1133 | <Scripts> |
||
1134 | <OnLoad> |
||
1135 | this:SetText(DFM_TEXT.Yes); |
||
1136 | </OnLoad> |
||
1137 | <OnClick> |
||
1138 | ReloadUI(); |
||
1139 | </OnClick> |
||
1140 | </Scripts> |
||
1141 | </Button> |
||
1142 | </Frames> |
||
1143 | <Layers> |
||
1144 | <Layer level="OVERLAY"> |
||
1145 | <FontString name="$parent_Text" inherits="GameFontNormal" text="DFM_RELOADWARNING"> |
||
1146 | <Size><AbsDimension x="270" y="50"/></Size> |
||
1147 | <Anchors> |
||
1148 | <Anchor point="TOP"> |
||
1149 | <Offset><AbsDimension x="0" y="-15"/></Offset> |
||
1150 | </Anchor> |
||
1151 | </Anchors> |
||
1152 | </FontString> |
||
1153 | </Layer> |
||
1154 | </Layers> |
||
1155 | <Scripts> |
||
1156 | <OnLoad> |
||
1157 | this:SetBackdropColor(0, 0, 0); |
||
1158 | this:SetBackdropBorderColor(1, 0, 0); |
||
1159 | tinsert(UISpecialFrames,"DFM_ReloadUIFrame"); |
||
1160 | </OnLoad> |
||
1161 | </Scripts> |
||
1162 | </Frame> |
||
1163 | |||
1164 | <Button name="DFM_DragFrame" frameStrata="DIALOG" hidden="true" movable="true"> |
||
1165 | <Size><AbsDimension x="50" y="50"/></Size> |
||
1166 | <Frames> |
||
1167 | <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate"> |
||
1168 | <Size><AbsDimension x="20" y="20"/></Size> |
||
1169 | <Anchors> |
||
1170 | <Anchor point="TOPRIGHT"> |
||
1171 | <Offset><AbsDimension x="5" y="5"/></Offset> |
||
1172 | </Anchor> |
||
1173 | </Anchors> |
||
1174 | <Scripts> |
||
1175 | <OnClick> |
||
1176 | DFM_DragFrame:Hide(); |
||
1177 | DFM_DRAG_INDEX = nil; |
||
1178 | </OnClick> |
||
1179 | </Scripts> |
||
1180 | </Button> |
||
1181 | |||
1182 | <Button name="$parent_NudgeUp" inherits="DFM_NudgeTemplate" id="1"> |
||
1183 | <Anchors> |
||
1184 | <Anchor point="BOTTOM" relativePoint="TOP"/> |
||
1185 | </Anchors> |
||
1186 | <Scripts> |
||
1187 | <OnLoad> |
||
1188 | DL_NudgeButton_OnLoad(); |
||
1189 | this.updateFrame = "DFM_Options_YOffset"; |
||
1190 | </OnLoad> |
||
1191 | <OnMouseUp> |
||
1192 | if (arg1 == "MiddleButton") then |
||
1193 | this.movingframe = nil; |
||
1194 | else |
||
1195 | DFM_Nudge(arg1, 1); |
||
1196 | end |
||
1197 | </OnMouseUp> |
||
1198 | <OnUpdate> |
||
1199 | DFM_Nudge_OnUpdate(arg1, 1); |
||
1200 | </OnUpdate> |
||
1201 | </Scripts> |
||
1202 | </Button> |
||
1203 | <Button name="$parent_NudgeLeft" inherits="DFM_NudgeTemplate" id="3"> |
||
1204 | <Anchors> |
||
1205 | <Anchor point="RIGHT" relativePoint="LEFT"/> |
||
1206 | </Anchors> |
||
1207 | <Scripts> |
||
1208 | <OnLoad> |
||
1209 | DL_NudgeButton_OnLoad(); |
||
1210 | this.updateFrame = "DFM_Options_XOffset"; |
||
1211 | </OnLoad> |
||
1212 | <OnMouseUp> |
||
1213 | if (arg1 == "MiddleButton") then |
||
1214 | this.movingframe = nil; |
||
1215 | else |
||
1216 | DFM_Nudge(arg1, 1); |
||
1217 | end |
||
1218 | </OnMouseUp> |
||
1219 | <OnUpdate> |
||
1220 | DFM_Nudge_OnUpdate(arg1, 1); |
||
1221 | </OnUpdate> |
||
1222 | </Scripts> |
||
1223 | </Button> |
||
1224 | <Button name="$parent_NudgeRight" inherits="DL_NudgeTemplate" id="4"> |
||
1225 | <Anchors> |
||
1226 | <Anchor point="LEFT" relativePoint="RIGHT"/> |
||
1227 | </Anchors> |
||
1228 | <Scripts> |
||
1229 | <OnLoad> |
||
1230 | DL_NudgeButton_OnLoad(); |
||
1231 | this.updateFrame = "DFM_Options_XOffset"; |
||
1232 | </OnLoad> |
||
1233 | <OnMouseUp> |
||
1234 | if (arg1 == "MiddleButton") then |
||
1235 | this.movingframe = nil; |
||
1236 | else |
||
1237 | DFM_Nudge(arg1, 1); |
||
1238 | end |
||
1239 | </OnMouseUp> |
||
1240 | <OnUpdate> |
||
1241 | DFM_Nudge_OnUpdate(arg1, 1); |
||
1242 | </OnUpdate> |
||
1243 | </Scripts> |
||
1244 | </Button> |
||
1245 | <Button name="$parent_NudgeDown" inherits="DL_NudgeTemplate" id="2"> |
||
1246 | <Anchors> |
||
1247 | <Anchor point="TOP" relativePoint="BOTTOM"/> |
||
1248 | </Anchors> |
||
1249 | <Scripts> |
||
1250 | <OnLoad> |
||
1251 | DL_NudgeButton_OnLoad(); |
||
1252 | this.updateFrame = "DFM_Options_YOffset"; |
||
1253 | </OnLoad> |
||
1254 | <OnMouseUp> |
||
1255 | if (arg1 == "MiddleButton") then |
||
1256 | this.movingframe = nil; |
||
1257 | else |
||
1258 | DFM_Nudge(arg1, 1); |
||
1259 | end |
||
1260 | </OnMouseUp> |
||
1261 | <OnUpdate> |
||
1262 | DFM_Nudge_OnUpdate(arg1, 1); |
||
1263 | </OnUpdate> |
||
1264 | </Scripts> |
||
1265 | </Button> |
||
1266 | </Frames> |
||
1267 | <Layers> |
||
1268 | <Layer level="ARTWORK"> |
||
1269 | <Texture name="$parent_Texture"> |
||
1270 | <Color r=".6" g="0" b="0" a=".3"/> |
||
1271 | <Anchors> |
||
1272 | <Anchor point="TOPLEFT"/> |
||
1273 | <Anchor point="BOTTOMRIGHT"/> |
||
1274 | </Anchors> |
||
1275 | </Texture> |
||
1276 | </Layer> |
||
1277 | <Layer level="OVERLAY"> |
||
1278 | <FontString name="$parent_FrameName" inherits="GameFontNormal"> |
||
1279 | <Anchors> |
||
1280 | <Anchor point="BOTTOM"> |
||
1281 | <Offset><AbsDimension x="0" y="5"/></Offset> |
||
1282 | </Anchor> |
||
1283 | </Anchors> |
||
1284 | </FontString> |
||
1285 | </Layer> |
||
1286 | </Layers> |
||
1287 | <Scripts> |
||
1288 | <OnLoad> |
||
1289 | this:RegisterForDrag("LeftButton"); |
||
1290 | </OnLoad> |
||
1291 | <OnDragStart> |
||
1292 | DFM_Start_Dragging(); |
||
1293 | </OnDragStart> |
||
1294 | <OnDragStop> |
||
1295 | DFM_Stop_Dragging(); |
||
1296 | </OnDragStop> |
||
1297 | </Scripts> |
||
1298 | </Button> |
||
1299 | |||
1300 | <Frame name="DFM_LoDButtonTemplate" virtual="true" frameStrata="DIALOG"> |
||
1301 | <Size><AbsDimension x="250" y="20"/></Size> |
||
1302 | <Frames> |
||
1303 | <Button inherits="UIPanelButtonTemplate"> |
||
1304 | <Size><AbsDimension x="60" y="20"/></Size> |
||
1305 | <Anchors> |
||
1306 | <Anchor point="RIGHT"/> |
||
1307 | </Anchors> |
||
1308 | <Scripts> |
||
1309 | <OnLoad> |
||
1310 | this:SetText(DFM_TEXT.Delete); |
||
1311 | </OnLoad> |
||
1312 | <OnClick> |
||
1313 | DFM_Delete_LoDFunc(); |
||
1314 | </OnClick> |
||
1315 | </Scripts> |
||
1316 | </Button> |
||
1317 | </Frames> |
||
1318 | <Layers> |
||
1319 | <Layer level="OVERLAY"> |
||
1320 | <FontString name="$parent_Text" inherits="GameFontNormal"> |
||
1321 | <Anchors> |
||
1322 | <Anchor point="LEFT"/> |
||
1323 | </Anchors> |
||
1324 | <Color r="1" g="1" b="1"/> |
||
1325 | </FontString> |
||
1326 | </Layer> |
||
1327 | </Layers> |
||
1328 | </Frame> |
||
1329 | |||
1330 | <Button name="DFM_LoDFrame" parent="UIParent" inherits="DiscordLib_DialogueBackdropTemplate" hidden="true" movable="true" frameStrata="MEDIUM"> |
||
1331 | <Size><AbsDimension x="315" y="260"/></Size> |
||
1332 | <Anchors> |
||
1333 | <Anchor point="LEFT" relativeTo="DFM_Options" relativePoint="RIGHT"/> |
||
1334 | </Anchors> |
||
1335 | <Frames> |
||
1336 | <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate" frameStrata="DIALOG"> |
||
1337 | <Scripts> |
||
1338 | <OnClick> |
||
1339 | DFM_LoDFrame:Hide(); |
||
1340 | </OnClick> |
||
1341 | </Scripts> |
||
1342 | </Button> |
||
1343 | <ScrollFrame name="$parent_Menu" inherits="DL_ScrollFrameTemplate" frameStrata="HIGH"> |
||
1344 | <Size><AbsDimension x="260" y="150"/></Size> |
||
1345 | <Anchors> |
||
1346 | <Anchor point="TOPLEFT"> |
||
1347 | <Offset><AbsDimension x="15" y="-40"/></Offset> |
||
1348 | </Anchor> |
||
1349 | </Anchors> |
||
1350 | <Scripts> |
||
1351 | <OnLoad> |
||
1352 | getglobal(this:GetName().."_OuterBorder_Header"):SetText(DFM_TEXT.LoDFunc); |
||
1353 | </OnLoad> |
||
1354 | <OnVerticalScroll> |
||
1355 | FauxScrollFrame_OnVerticalScroll(20, DFM_LoDMenu_Update); |
||
1356 | </OnVerticalScroll> |
||
1357 | </Scripts> |
||
1358 | </ScrollFrame> |
||
1359 | <Frame name="$parent_Menu_Button1" inherits="DFM_LoDButtonTemplate" id="1"> |
||
1360 | <Anchors> |
||
1361 | <Anchor point="TOPLEFT" relativeTo="$parent_Menu"> |
||
1362 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
1363 | </Anchor> |
||
1364 | </Anchors> |
||
1365 | </Frame> |
||
1366 | <Frame name="$parent_Menu_Button2" inherits="DFM_LoDButtonTemplate" id="2"/> |
||
1367 | <Frame name="$parent_Menu_Button3" inherits="DFM_LoDButtonTemplate" id="3"/> |
||
1368 | <Frame name="$parent_Menu_Button4" inherits="DFM_LoDButtonTemplate" id="4"/> |
||
1369 | <Frame name="$parent_Menu_Button5" inherits="DFM_LoDButtonTemplate" id="5"/> |
||
1370 | <Frame name="$parent_Menu_Button6" inherits="DFM_LoDButtonTemplate" id="6"/> |
||
1371 | <Frame name="$parent_Menu_Button7" inherits="DFM_LoDButtonTemplate" id="7"/> |
||
1372 | |||
1373 | <EditBox name="$parent_Func" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
1374 | <Size><AbsDimension x="250" y="24"/></Size> |
||
1375 | <Anchors> |
||
1376 | <Anchor point="BOTTOM"> |
||
1377 | <Offset><AbsDimension x="0" y="40"/></Offset> |
||
1378 | </Anchor> |
||
1379 | </Anchors> |
||
1380 | <Scripts> |
||
1381 | <OnEnterPressed> |
||
1382 | DFM_Add_LoDFunc(); |
||
1383 | </OnEnterPressed> |
||
1384 | </Scripts> |
||
1385 | </EditBox> |
||
1386 | <Button inherits="UIPanelButtonTemplate"> |
||
1387 | <Size><AbsDimension x="100" y="24"/></Size> |
||
1388 | <Anchors> |
||
1389 | <Anchor point="BOTTOM"> |
||
1390 | <Offset><AbsDimension x="0" y="15"/></Offset> |
||
1391 | </Anchor> |
||
1392 | </Anchors> |
||
1393 | <Scripts> |
||
1394 | <OnLoad> |
||
1395 | this:SetText(DFM_TEXT.AddFunction); |
||
1396 | </OnLoad> |
||
1397 | <OnClick> |
||
1398 | DFM_Add_LoDFunc(); |
||
1399 | </OnClick> |
||
1400 | </Scripts> |
||
1401 | </Button> |
||
1402 | </Frames> |
||
1403 | <Scripts> |
||
1404 | <OnLoad> |
||
1405 | this:SetBackdropColor(0, 0, 0); |
||
1406 | this:SetBackdropBorderColor(1, 0, 0); |
||
1407 | this:RegisterForDrag("LeftButton"); |
||
1408 | </OnLoad> |
||
1409 | <OnDragStart> |
||
1410 | this:StartMoving(); |
||
1411 | </OnDragStart> |
||
1412 | <OnDragStop> |
||
1413 | this:StopMovingOrSizing(); |
||
1414 | </OnDragStop> |
||
1415 | </Scripts> |
||
1416 | </Button> |
||
1417 | |||
1418 | <Button name="DFM_CreateFrameForm" parent="DFM_Options" inherits="DiscordLib_DialogueBackdropTemplate" hidden="true" movable="true" frameStrata="MEDIUM"> |
||
1419 | <Size><AbsDimension x="300" y="155"/></Size> |
||
1420 | <Anchors> |
||
1421 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
1422 | <Offset><AbsDimension x="10" y="0"/></Offset> |
||
1423 | </Anchor> |
||
1424 | </Anchors> |
||
1425 | <Frames> |
||
1426 | <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate" frameStrata="HIGH"> |
||
1427 | <Scripts> |
||
1428 | <OnClick> |
||
1429 | DFM_CreateFrameForm:Hide(); |
||
1430 | </OnClick> |
||
1431 | </Scripts> |
||
1432 | </Button> |
||
1433 | <Button name="$parent_FrameType" inherits="DiscordLib_MenuControlTemplate"> |
||
1434 | <Size><AbsDimension x="170" y="22"/></Size> |
||
1435 | <Scripts> |
||
1436 | <OnLoad> |
||
1437 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
1438 | this.menu = "DFM_DropMenu"; |
||
1439 | this.table = "DFM_FRAMETYPES"; |
||
1440 | this.index = "FRAMETYPE"; |
||
1441 | this.initFunc = function() end; |
||
1442 | DL_Set_Label(DFM_TEXT.FrameType); |
||
1443 | DL_Set_Anchor("", 15, -15, "TOPLEFT", "TOPLEFT"); |
||
1444 | </OnLoad> |
||
1445 | </Scripts> |
||
1446 | </Button> |
||
1447 | <EditBox name="$parent_AddFrame" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
1448 | <Size><AbsDimension x="200" y="24"/></Size> |
||
1449 | <Scripts> |
||
1450 | <OnLoad> |
||
1451 | DL_Set_Label(DFM_TEXT.Frame); |
||
1452 | DL_Set_Anchor("", 15, -40, "TOPLEFT", "TOPLEFT"); |
||
1453 | </OnLoad> |
||
1454 | <OnEnterPressed> |
||
1455 | DFM_CreateFrameForm_AddName:SetFocus(); |
||
1456 | </OnEnterPressed> |
||
1457 | <OnTabPressed> |
||
1458 | DFM_CreateFrameForm_AddName:SetFocus(); |
||
1459 | </OnTabPressed> |
||
1460 | <OnTextChanged> |
||
1461 | if (getglobal(this:GetText()) or this:GetText() == "" or (not this:GetText())) then |
||
1462 | DFM_CreateFrameForm_AddFrameButton:Disable(); |
||
1463 | else |
||
1464 | DFM_CreateFrameForm_AddFrameButton:Enable(); |
||
1465 | end |
||
1466 | </OnTextChanged> |
||
1467 | </Scripts> |
||
1468 | </EditBox> |
||
1469 | <EditBox name="$parent_AddName" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
1470 | <Size><AbsDimension x="200" y="24"/></Size> |
||
1471 | <Scripts> |
||
1472 | <OnLoad> |
||
1473 | DL_Set_Label(DFM_TEXT.Name); |
||
1474 | DL_Set_Anchor("", 15, -65, "TOPLEFT", "TOPLEFT"); |
||
1475 | </OnLoad> |
||
1476 | <OnEnterPressed> |
||
1477 | DFM_CreateFrameForm_AddHeader:SetFocus(); |
||
1478 | </OnEnterPressed> |
||
1479 | <OnTabPressed> |
||
1480 | DFM_CreateFrameForm_AddHeader:SetFocus(); |
||
1481 | </OnTabPressed> |
||
1482 | </Scripts> |
||
1483 | </EditBox> |
||
1484 | <EditBox name="$parent_AddHeader" inherits="DiscordLib_EditBoxTemplate" frameStrata="HIGH"> |
||
1485 | <Size><AbsDimension x="200" y="24"/></Size> |
||
1486 | <Scripts> |
||
1487 | <OnLoad> |
||
1488 | DL_Set_Label(DFM_TEXT.Header); |
||
1489 | DL_Set_Anchor("", 15, -90, "TOPLEFT", "TOPLEFT"); |
||
1490 | </OnLoad> |
||
1491 | <OnEnterPressed> |
||
1492 | this:ClearFocus(); |
||
1493 | </OnEnterPressed> |
||
1494 | </Scripts> |
||
1495 | </EditBox> |
||
1496 | <Button name="$parent_AddFrameButton" inherits="UIPanelButtonTemplate" hidden="false"> |
||
1497 | <Size><AbsDimension x="145" y="20"/></Size> |
||
1498 | <Anchors> |
||
1499 | <Anchor point="BOTTOM"> |
||
1500 | <Offset><AbsDimension x="0" y="15"/></Offset> |
||
1501 | </Anchor> |
||
1502 | </Anchors> |
||
1503 | <Scripts> |
||
1504 | <OnLoad> |
||
1505 | this:SetText(DFM_TEXT.CreateFrame); |
||
1506 | this:Disable(); |
||
1507 | </OnLoad> |
||
1508 | <OnClick> |
||
1509 | DFM_Create_NewFrame(); |
||
1510 | </OnClick> |
||
1511 | </Scripts> |
||
1512 | </Button> |
||
1513 | </Frames> |
||
1514 | <Scripts> |
||
1515 | <OnLoad> |
||
1516 | this:SetBackdropColor(0, 0, 0); |
||
1517 | this:SetBackdropBorderColor(1, 0, 0); |
||
1518 | this:RegisterForDrag("LeftButton"); |
||
1519 | </OnLoad> |
||
1520 | <OnDragStart> |
||
1521 | this:StartMoving(); |
||
1522 | </OnDragStart> |
||
1523 | <OnDragStop> |
||
1524 | this:StopMovingOrSizing(); |
||
1525 | </OnDragStop> |
||
1526 | </Scripts> |
||
1527 | </Button> |
||
1528 | |||
1529 | </Ui> |