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 | ..\FrameXML\UI.xsd"> |
||
3 | |||
4 | <Button name="DAB_Options" inherits="DiscordLib_OptionsTemplate" hidden="false"> |
||
5 | <Size><AbsDimension x="600" y="655"/></Size> |
||
6 | <Frames> |
||
7 | <Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate" frameStrata="HIGH"> |
||
8 | <Scripts> |
||
9 | <OnClick> |
||
10 | DAB_Options:Hide(); |
||
11 | </OnClick> |
||
12 | </Scripts> |
||
13 | </Button> |
||
14 | |||
15 | <ScrollFrame name="$parent_BarBrowser" inherits="DL_ScrollFrameTemplate"> |
||
16 | <Size><AbsDimension x="140" y="310"/></Size> |
||
17 | <Anchors> |
||
18 | <Anchor point="TOPLEFT"> |
||
19 | <Offset><AbsDimension x="15" y="-40"/></Offset> |
||
20 | </Anchor> |
||
21 | </Anchors> |
||
22 | <Scripts> |
||
23 | <OnLoad> |
||
24 | getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.ObjectOptions); |
||
25 | </OnLoad> |
||
26 | <OnVerticalScroll> |
||
27 | FauxScrollFrame_OnVerticalScroll(20, DAB_BarBrowser_Update); |
||
28 | </OnVerticalScroll> |
||
29 | </Scripts> |
||
30 | </ScrollFrame> |
||
31 | <CheckButton name="$parent_BarBrowser_Button1" inherits="DAB_ScrollButtonTemplate" id="1"> |
||
32 | <Anchors> |
||
33 | <Anchor point="TOPLEFT" relativeTo="$parent_BarBrowser"> |
||
34 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
35 | </Anchor> |
||
36 | </Anchors> |
||
37 | </CheckButton> |
||
38 | <CheckButton name="$parent_BarBrowser_Button2" inherits="DAB_ScrollButtonTemplate" id="2"/> |
||
39 | <CheckButton name="$parent_BarBrowser_Button3" inherits="DAB_ScrollButtonTemplate" id="3"/> |
||
40 | <CheckButton name="$parent_BarBrowser_Button4" inherits="DAB_ScrollButtonTemplate" id="4"/> |
||
41 | <CheckButton name="$parent_BarBrowser_Button5" inherits="DAB_ScrollButtonTemplate" id="5"/> |
||
42 | <CheckButton name="$parent_BarBrowser_Button6" inherits="DAB_ScrollButtonTemplate" id="6"/> |
||
43 | <CheckButton name="$parent_BarBrowser_Button7" inherits="DAB_ScrollButtonTemplate" id="7"/> |
||
44 | <CheckButton name="$parent_BarBrowser_Button8" inherits="DAB_ScrollButtonTemplate" id="8"/> |
||
45 | <CheckButton name="$parent_BarBrowser_Button9" inherits="DAB_ScrollButtonTemplate" id="9"/> |
||
46 | <CheckButton name="$parent_BarBrowser_Button10" inherits="DAB_ScrollButtonTemplate" id="10"/> |
||
47 | <CheckButton name="$parent_BarBrowser_Button11" inherits="DAB_ScrollButtonTemplate" id="11"/> |
||
48 | <CheckButton name="$parent_BarBrowser_Button12" inherits="DAB_ScrollButtonTemplate" id="12"/> |
||
49 | <CheckButton name="$parent_BarBrowser_Button13" inherits="DAB_ScrollButtonTemplate" id="13"/> |
||
50 | <CheckButton name="$parent_BarBrowser_Button14" inherits="DAB_ScrollButtonTemplate" id="14"/> |
||
51 | <CheckButton name="$parent_BarBrowser_Button15" inherits="DAB_ScrollButtonTemplate" id="15"/> |
||
52 | |||
53 | <CheckButton name="$parent_Header" inherits="DL_TabButtonTemplate"> |
||
54 | <Size><AbsDimension x="370" y="20"/></Size> |
||
55 | <Anchors> |
||
56 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
57 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
58 | </Anchor> |
||
59 | </Anchors> |
||
60 | <Scripts> |
||
61 | <OnLoad> |
||
62 | DL_Init_TabButton(""); |
||
63 | getglobal(this:GetName().."_Background"):Hide(); |
||
64 | </OnLoad> |
||
65 | <OnEnter> |
||
66 | </OnEnter> |
||
67 | <OnLeave> |
||
68 | </OnLeave> |
||
69 | <OnClick> |
||
70 | </OnClick> |
||
71 | </Scripts> |
||
72 | </CheckButton> |
||
73 | |||
74 | <Button name="$parent_ChangeActions" inherits="DAB_MainMenuButton"> |
||
75 | <Anchors> |
||
76 | <Anchor point="TOP" relativeTo="$parent_BarBrowser_OuterBorder" relativePoint="BOTTOM"> |
||
77 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
78 | </Anchor> |
||
79 | </Anchors> |
||
80 | <Scripts> |
||
81 | <OnLoad> |
||
82 | this:SetText(DAB_TEXT.ChangeActions); |
||
83 | </OnLoad> |
||
84 | <OnClick> |
||
85 | DAB_HideAllOptions(); |
||
86 | DAB_Options_Header_Text:SetText(DAB_TEXT.ChangeActions); |
||
87 | DAB_ChangeActions:Show(); |
||
88 | DAB_ChangeActionsMenu_Update(); |
||
89 | </OnClick> |
||
90 | </Scripts> |
||
91 | </Button> |
||
92 | <Button name="$parent_NumButtons" inherits="DAB_MainMenuButton"> |
||
93 | <Anchors> |
||
94 | <Anchor point="TOP" relativeTo="$parent_ChangeActions" relativePoint="BOTTOM"/> |
||
95 | </Anchors> |
||
96 | <Scripts> |
||
97 | <OnLoad> |
||
98 | this:SetText(DAB_TEXT.NumButtonsPerBar); |
||
99 | </OnLoad> |
||
100 | <OnClick> |
||
101 | DAB_HideAllOptions(); |
||
102 | DAB_Options_Header_Text:SetText(DAB_TEXT.NumButtonsPerBar); |
||
103 | DAB_ButtonLayout:Show(); |
||
104 | </OnClick> |
||
105 | </Scripts> |
||
106 | </Button> |
||
107 | <Button name="$parent_Keybindings" inherits="DAB_MainMenuButton"> |
||
108 | <Anchors> |
||
109 | <Anchor point="TOP" relativeTo="$parent_NumButtons" relativePoint="BOTTOM"/> |
||
110 | </Anchors> |
||
111 | <Scripts> |
||
112 | <OnLoad> |
||
113 | this:SetText(DAB_TEXT.Keybindings); |
||
114 | </OnLoad> |
||
115 | <OnClick> |
||
116 | DAB_HideAllOptions(); |
||
117 | DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.Keybindings)); |
||
118 | DAB_KeybindingOptions:Show(); |
||
119 | </OnClick> |
||
120 | </Scripts> |
||
121 | </Button> |
||
122 | <Button name="$parent_EventScripts" inherits="DAB_MainMenuButton"> |
||
123 | <Anchors> |
||
124 | <Anchor point="TOP" relativeTo="$parent_Keybindings" relativePoint="BOTTOM"/> |
||
125 | </Anchors> |
||
126 | <Scripts> |
||
127 | <OnLoad> |
||
128 | this:SetText(DAB_TEXT.EventScripts); |
||
129 | </OnLoad> |
||
130 | <OnClick> |
||
131 | DAB_HideAllOptions(); |
||
132 | DAB_OnEventMacros:Show(); |
||
133 | DAB_Options_Header_Text:SetText(DAB_TEXT.OnEventScripts); |
||
134 | </OnClick> |
||
135 | </Scripts> |
||
136 | </Button> |
||
137 | <Button name="$parent_MainBarOptions" inherits="DAB_MainMenuButton"> |
||
138 | <Anchors> |
||
139 | <Anchor point="TOP" relativeTo="$parent_EventScripts" relativePoint="BOTTOM"/> |
||
140 | </Anchors> |
||
141 | <Scripts> |
||
142 | <OnLoad> |
||
143 | this:SetText(DAB_TEXT.MainBarOptions); |
||
144 | </OnLoad> |
||
145 | <OnClick> |
||
146 | DAB_HideAllOptions(); |
||
147 | DAB_MainBarOptions:Show(); |
||
148 | DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.MainBarOptions)); |
||
149 | </OnClick> |
||
150 | </Scripts> |
||
151 | </Button> |
||
152 | <Button name="$parent_MiscOptions" inherits="DAB_MainMenuButton"> |
||
153 | <Anchors> |
||
154 | <Anchor point="TOP" relativeTo="$parent_MainBarOptions" relativePoint="BOTTOM"/> |
||
155 | </Anchors> |
||
156 | <Scripts> |
||
157 | <OnLoad> |
||
158 | this:SetText(DAB_TEXT.MiscOptions); |
||
159 | </OnLoad> |
||
160 | <OnClick> |
||
161 | DAB_HideAllOptions(); |
||
162 | DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.MiscOptions)); |
||
163 | DAB_MiscOptions:Show(); |
||
164 | </OnClick> |
||
165 | </Scripts> |
||
166 | </Button> |
||
167 | |||
168 | <Button name="$parent_DraggingToggle" inherits="DAB_MainMenuButton"> |
||
169 | <Anchors> |
||
170 | <Anchor point="TOP" relativeTo="$parent_MiscOptions" relativePoint="BOTTOM"> |
||
171 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
172 | </Anchor> |
||
173 | </Anchors> |
||
174 | <Scripts> |
||
175 | <OnLoad> |
||
176 | this:SetText(DAB_TEXT.UnlockDragging); |
||
177 | </OnLoad> |
||
178 | <OnClick> |
||
179 | DAB_Toggle_Dragging(); |
||
180 | </OnClick> |
||
181 | </Scripts> |
||
182 | </Button> |
||
183 | <Button name="$parent_IDToggle" inherits="DAB_MainMenuButton"> |
||
184 | <Anchors> |
||
185 | <Anchor point="TOP" relativeTo="$parent_DraggingToggle" relativePoint="BOTTOM"/> |
||
186 | </Anchors> |
||
187 | <Scripts> |
||
188 | <OnLoad> |
||
189 | this:SetText(DAB_TEXT.ShowButtonIDs); |
||
190 | </OnLoad> |
||
191 | <OnClick> |
||
192 | DAB_Toggle_IDs(); |
||
193 | </OnClick> |
||
194 | </Scripts> |
||
195 | </Button> |
||
196 | <Button name="$parent_ActionIDToggle" inherits="DAB_MainMenuButton"> |
||
197 | <Anchors> |
||
198 | <Anchor point="TOP" relativeTo="$parent_IDToggle" relativePoint="BOTTOM"/> |
||
199 | </Anchors> |
||
200 | <Scripts> |
||
201 | <OnLoad> |
||
202 | this:SetText(DAB_TEXT.ShowActionIDs); |
||
203 | </OnLoad> |
||
204 | <OnClick> |
||
205 | DAB_Toggle_ActionIDs(); |
||
206 | </OnClick> |
||
207 | </Scripts> |
||
208 | </Button> |
||
209 | |||
210 | <Button inherits="DAB_MainMenuButton" text="DL_COPYTEXT"> |
||
211 | <Size><AbsDimension x="170" y="24"/></Size> |
||
212 | <Anchors> |
||
213 | <Anchor point="TOP" relativeTo="$parent_ActionIDToggle" relativePoint="BOTTOM"> |
||
214 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
215 | </Anchor> |
||
216 | </Anchors> |
||
217 | <Scripts> |
||
218 | <OnClick> |
||
219 | DAB_Copy_Settings(); |
||
220 | </OnClick> |
||
221 | </Scripts> |
||
222 | </Button> |
||
223 | <Button name="$parent_Paste" inherits="DAB_MainMenuButton" text="DL_PASTETEXT"> |
||
224 | <Size><AbsDimension x="170" y="24"/></Size> |
||
225 | <Anchors> |
||
226 | <Anchor point="TOP" relativeTo="$parent_ActionIDToggle" relativePoint="BOTTOM"> |
||
227 | <Offset><AbsDimension x="0" y="-35"/></Offset> |
||
228 | </Anchor> |
||
229 | </Anchors> |
||
230 | <Scripts> |
||
231 | <OnLoad> |
||
232 | this:Disable(); |
||
233 | </OnLoad> |
||
234 | <OnClick> |
||
235 | DAB_Paste_Settings(); |
||
236 | </OnClick> |
||
237 | </Scripts> |
||
238 | </Button> |
||
239 | </Frames> |
||
240 | <Scripts> |
||
241 | <OnClick> |
||
242 | DAB_DropMenu:Hide(); |
||
243 | DAB_ScrollMenu:Hide(); |
||
244 | DL_CleanUp_TempOptions(DAB_DropMenu); |
||
245 | DL_CleanUp_TempOptions(DAB_ScrollMenu); |
||
246 | </OnClick> |
||
247 | <OnShow> |
||
248 | DAB_Options_OnShow(); |
||
249 | </OnShow> |
||
250 | </Scripts> |
||
251 | </Button> |
||
252 | |||
253 | <Button name="DAB_ScrollMenu" inherits="DL_ScrollMenuTemplate" parent="DAB_Options"> |
||
254 | <Scripts> |
||
255 | <OnLoad> |
||
256 | this:SetBackdropColor(0, 0, 0); |
||
257 | this:SetBackdropBorderColor(1, 0, 0); |
||
258 | this.scrollMenu = true; |
||
259 | this.updateFunc = DAB_ScrollMenu_Update; |
||
260 | </OnLoad> |
||
261 | </Scripts> |
||
262 | </Button> |
||
263 | |||
264 | <Button name="DAB_DropMenu" inherits="DL_DropMenuTemplate" parent="DAB_Options"/> |
||
265 | |||
266 | <Frame name="DAB_OnEventMacros" parent="DAB_Options" hidden="true"> |
||
267 | <Size><AbsDimension x="10" y="10"/></Size> |
||
268 | <Anchors> |
||
269 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
270 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
271 | </Anchor> |
||
272 | <Anchor point="BOTTOMRIGHT"/> |
||
273 | </Anchors> |
||
274 | <Frames> |
||
275 | <Button name="$parent_Event" inherits="DiscordLib_MenuControlTemplate"> |
||
276 | <Size><AbsDimension x="170" y="22"/></Size> |
||
277 | <Anchors> |
||
278 | <Anchor point="TOP"> |
||
279 | <Offset><AbsDimension x="0" y="-30"/></Offset> |
||
280 | </Anchor> |
||
281 | </Anchors> |
||
282 | <Scripts> |
||
283 | <OnLoad> |
||
284 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
285 | this.menu = "DAB_ScrollMenu"; |
||
286 | this.table = "DAB_EVENTS"; |
||
287 | this.initFunc = DAB_Select_Event; |
||
288 | DL_Set_Label(DAB_TEXT.ChooseEvent); |
||
289 | </OnLoad> |
||
290 | </Scripts> |
||
291 | </Button> |
||
292 | <Button inherits="DAB_MainMenuButton"> |
||
293 | <Size><AbsDimension x="110" y="22"/></Size> |
||
294 | <Anchors> |
||
295 | <Anchor point="LEFT" relativeTo="$parent_Event" relativePoint="RIGHT"/> |
||
296 | </Anchors> |
||
297 | <Scripts> |
||
298 | <OnLoad> |
||
299 | this:SetText(DAB_TEXT.AddNew); |
||
300 | </OnLoad> |
||
301 | <OnClick> |
||
302 | DAB_NewEvent:Show(); |
||
303 | </OnClick> |
||
304 | </Scripts> |
||
305 | </Button> |
||
306 | <ScrollFrame name="$parent_EditBox" inherits="DL_MultiLineEditboxTemplate"> |
||
307 | <Size><AbsDimension x="365" y="490"/></Size> |
||
308 | <Anchors> |
||
309 | <Anchor point="TOPLEFT"> |
||
310 | <Offset><AbsDimension x="7" y="-90"/></Offset> |
||
311 | </Anchor> |
||
312 | </Anchors> |
||
313 | <Scripts> |
||
314 | <OnLoad> |
||
315 | this.textChanged = DAB_EventMacro_Update; |
||
316 | </OnLoad> |
||
317 | <OnShow> |
||
318 | DAB_EDITTING_MACRO = true; |
||
319 | </OnShow> |
||
320 | <OnHide> |
||
321 | DAB_EDITTING_MACRO = nil; |
||
322 | DAB_EventMacro_Compile(); |
||
323 | </OnHide> |
||
324 | </Scripts> |
||
325 | </ScrollFrame> |
||
326 | </Frames> |
||
327 | <Layers> |
||
328 | <Layer level="OVERLAY"> |
||
329 | <FontString name="$parent_Description" font="Fonts\ARIALN.TTF"> |
||
330 | <Color r="1" g="1" b="1"/> |
||
331 | <FontHeight> |
||
332 | <AbsValue val="12"/> |
||
333 | </FontHeight> |
||
334 | <Shadow> |
||
335 | <Offset> |
||
336 | <AbsDimension x="1" y="-1"/> |
||
337 | </Offset> |
||
338 | <Color r="0" g="0" b="0"/> |
||
339 | </Shadow> |
||
340 | <Anchors> |
||
341 | <Anchor point="TOP"> |
||
342 | <Offset><AbsDimension x="0" y="-55"/></Offset> |
||
343 | </Anchor> |
||
344 | </Anchors> |
||
345 | </FontString> |
||
346 | </Layer> |
||
347 | </Layers> |
||
348 | </Frame> |
||
349 | |||
350 | <Frame name="DAB_NewEvent" inherits="DiscordLib_DialogueBackdropTemplate" hidden="true" parent="DAB_OnEventMacros" frameStrata="DIALOG"> |
||
351 | <Size><AbsDimension x="325" y="130"/></Size> |
||
352 | <Anchors> |
||
353 | <Anchor point="CENTER"/> |
||
354 | </Anchors> |
||
355 | <Frames> |
||
356 | <EditBox name="$parent_Event" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG"> |
||
357 | <Size><AbsDimension x="250" y="25"/></Size> |
||
358 | <Scripts> |
||
359 | <OnLoad> |
||
360 | DL_Set_Label(DAB_TEXT.Event); |
||
361 | DL_Set_Anchor("", 15, -15, "TOPLEFT", "TOPLEFT"); |
||
362 | </OnLoad> |
||
363 | <OnEnterPressed> |
||
364 | this:ClearFocus(); |
||
365 | </OnEnterPressed> |
||
366 | <OnTabPressed> |
||
367 | DAB_NewEvent_Name:SetFocus(); |
||
368 | </OnTabPressed> |
||
369 | </Scripts> |
||
370 | </EditBox> |
||
371 | <EditBox name="$parent_Name" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG"> |
||
372 | <Size><AbsDimension x="250" y="25"/></Size> |
||
373 | <Scripts> |
||
374 | <OnLoad> |
||
375 | DL_Set_Label(DAB_TEXT.Name); |
||
376 | DL_Set_Anchor("", 15, -40, "TOPLEFT", "TOPLEFT"); |
||
377 | </OnLoad> |
||
378 | <OnEnterPressed> |
||
379 | this:ClearFocus(); |
||
380 | </OnEnterPressed> |
||
381 | <OnTabPressed> |
||
382 | DAB_NewEvent_Desc:SetFocus(); |
||
383 | </OnTabPressed> |
||
384 | </Scripts> |
||
385 | </EditBox> |
||
386 | <EditBox name="$parent_Desc" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG"> |
||
387 | <Size><AbsDimension x="250" y="25"/></Size> |
||
388 | <Scripts> |
||
389 | <OnLoad> |
||
390 | DL_Set_Label(DAB_TEXT.Desc); |
||
391 | DL_Set_Anchor("", 15, -65, "TOPLEFT", "TOPLEFT"); |
||
392 | </OnLoad> |
||
393 | <OnEnterPressed> |
||
394 | this:ClearFocus(); |
||
395 | </OnEnterPressed> |
||
396 | <OnTabPressed> |
||
397 | DAB_NewEvent_Event:SetFocus(); |
||
398 | </OnTabPressed> |
||
399 | </Scripts> |
||
400 | </EditBox> |
||
401 | <Button inherits="DAB_MainMenuButton"> |
||
402 | <Size><AbsDimension x="110" y="22"/></Size> |
||
403 | <Anchors> |
||
404 | <Anchor point="BOTTOM"> |
||
405 | <Offset><AbsDimension x="0" y="15"/></Offset> |
||
406 | </Anchor> |
||
407 | </Anchors> |
||
408 | <Scripts> |
||
409 | <OnLoad> |
||
410 | this:SetText(DAB_TEXT.AddEvent); |
||
411 | </OnLoad> |
||
412 | <OnClick> |
||
413 | DAB_Add_Event(); |
||
414 | </OnClick> |
||
415 | </Scripts> |
||
416 | </Button> |
||
417 | </Frames> |
||
418 | <Scripts> |
||
419 | <OnLoad> |
||
420 | this:SetBackdropColor(0,0,0); |
||
421 | this:SetBackdropBorderColor(1, 0, 0); |
||
422 | </OnLoad> |
||
423 | </Scripts> |
||
424 | </Frame> |
||
425 | |||
426 | <Frame name="DAB_MainBarOptions" parent="DAB_Options" hidden="true"> |
||
427 | <Size><AbsDimension x="10" y="10"/></Size> |
||
428 | <Anchors> |
||
429 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
430 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
431 | </Anchor> |
||
432 | <Anchor point="BOTTOMRIGHT"/> |
||
433 | </Anchors> |
||
434 | <Frames> |
||
435 | <CheckButton name="$parent_HideEverything" inherits="DAB_CheckBoxTemplate"> |
||
436 | <Anchors> |
||
437 | <Anchor point="TOPLEFT"> |
||
438 | <Offset><AbsDimension x="0" y="-30"/></Offset> |
||
439 | </Anchor> |
||
440 | </Anchors> |
||
441 | <Scripts> |
||
442 | <OnLoad> |
||
443 | this.index = "MainMenuBar"; |
||
444 | this.subindex = "hideEverything"; |
||
445 | DL_Set_Label(DAB_TEXT.HideEverything); |
||
446 | </OnLoad> |
||
447 | </Scripts> |
||
448 | </CheckButton> |
||
449 | <CheckButton name="$parent_ShowXP" inherits="DAB_CheckBoxTemplate"> |
||
450 | <Anchors> |
||
451 | <Anchor point="TOPLEFT" relativeTo="$parent_HideEverything" relativePoint="BOTTOMLEFT"> |
||
452 | <Offset><AbsDimension x="0" y="-10"/></Offset> |
||
453 | </Anchor> |
||
454 | </Anchors> |
||
455 | <Scripts> |
||
456 | <OnLoad> |
||
457 | this.index = "MainMenuBar"; |
||
458 | this.subindex = "showXP"; |
||
459 | DL_Set_Label(DAB_TEXT.ShowXP); |
||
460 | </OnLoad> |
||
461 | </Scripts> |
||
462 | </CheckButton> |
||
463 | <CheckButton name="$parent_HideXPBorder" inherits="DAB_CheckBoxTemplate"> |
||
464 | <Anchors> |
||
465 | <Anchor point="TOPLEFT" relativeTo="$parent_ShowXP" relativePoint="BOTTOMLEFT"/> |
||
466 | </Anchors> |
||
467 | <Scripts> |
||
468 | <OnLoad> |
||
469 | this.index = "MainMenuBar"; |
||
470 | this.subindex = "hideXPborder"; |
||
471 | DL_Set_Label(DAB_TEXT.XPHideBorder); |
||
472 | </OnLoad> |
||
473 | </Scripts> |
||
474 | </CheckButton> |
||
475 | <Button name="$parent_XPColor" inherits="DAB_ColorPickerTemplate"> |
||
476 | <Anchors> |
||
477 | <Anchor point="TOPLEFT" relativeTo="$parent_HideXPBorder" relativePoint="BOTTOMLEFT"/> |
||
478 | </Anchors> |
||
479 | <Scripts> |
||
480 | <OnLoad> |
||
481 | this.index = "MainMenuBar" |
||
482 | this.subindex = "xpcolor"; |
||
483 | DL_Set_Label(DAB_TEXT.XPColor); |
||
484 | </OnLoad> |
||
485 | </Scripts> |
||
486 | </Button> |
||
487 | <Button name="$parent_XPBorderColor" inherits="DAB_ColorPickerTemplate"> |
||
488 | <Anchors> |
||
489 | <Anchor point="TOPLEFT" relativeTo="$parent_XPColor" relativePoint="BOTTOMLEFT"/> |
||
490 | </Anchors> |
||
491 | <Scripts> |
||
492 | <OnLoad> |
||
493 | this.index = "MainMenuBar" |
||
494 | this.subindex = "xpbcolor"; |
||
495 | DL_Set_Label(DAB_TEXT.XPBorderColor); |
||
496 | </OnLoad> |
||
497 | </Scripts> |
||
498 | </Button> |
||
499 | <Slider name="$parent_XPScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200" valueStep="1"> |
||
500 | <Anchors> |
||
501 | <Anchor point="TOPLEFT" relativeTo="$parent_XPBorderColor" relativePoint="BOTTOMLEFT"> |
||
502 | <Offset><AbsDimension x="0" y="-20"/></Offset> |
||
503 | </Anchor> |
||
504 | </Anchors> |
||
505 | <Scripts> |
||
506 | <OnLoad> |
||
507 | this.index = "MainMenuBar"; |
||
508 | this.subindex = "xpscale"; |
||
509 | this.minlock = true; |
||
510 | this.scale = 100; |
||
511 | DL_Set_Label(DAB_TEXT.XPScale); |
||
512 | </OnLoad> |
||
513 | </Scripts> |
||
514 | </Slider> |
||
515 | <Slider name="$parent_XPAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100" valueStep="1"> |
||
516 | <Anchors> |
||
517 | <Anchor point="TOPLEFT" relativeTo="$parent_XPScale" relativePoint="BOTTOMLEFT"> |
||
518 | <Offset><AbsDimension x="0" y="-20"/></Offset> |
||
519 | </Anchor> |
||
520 | </Anchors> |
||
521 | <Scripts> |
||
522 | <OnLoad> |
||
523 | this.index = "MainMenuBar"; |
||
524 | this.subindex = "xpalpha"; |
||
525 | this.minlock = true; |
||
526 | this.maxlock = true; |
||
527 | this.scale = 100; |
||
528 | DL_Set_Label(DAB_TEXT.XPAlpha); |
||
529 | </OnLoad> |
||
530 | </Scripts> |
||
531 | </Slider> |
||
532 | |||
533 | <CheckButton name="$parent_ShowLatency" inherits="DAB_CheckBoxTemplate"> |
||
534 | <Anchors> |
||
535 | <Anchor point="TOPLEFT" relativeTo="$parent_XPAlpha" relativePoint="BOTTOMLEFT"> |
||
536 | <Offset><AbsDimension x="0" y="-35"/></Offset> |
||
537 | </Anchor> |
||
538 | </Anchors> |
||
539 | <Scripts> |
||
540 | <OnLoad> |
||
541 | this.index = "MainMenuBar"; |
||
542 | this.subindex = "showLatency"; |
||
543 | DL_Set_Label(DAB_TEXT.ShowLatency); |
||
544 | </OnLoad> |
||
545 | <OnClick> |
||
546 | DAB_CheckBox_OnClick(); |
||
547 | </OnClick> |
||
548 | </Scripts> |
||
549 | </CheckButton> |
||
550 | <Slider name="$parent_LatencyScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200" valueStep="1"> |
||
551 | <Anchors> |
||
552 | <Anchor point="TOPLEFT" relativeTo="$parent_ShowLatency" relativePoint="BOTTOMLEFT"> |
||
553 | <Offset><AbsDimension x="0" y="-20"/></Offset> |
||
554 | </Anchor> |
||
555 | </Anchors> |
||
556 | <Scripts> |
||
557 | <OnLoad> |
||
558 | this.index = "MainMenuBar"; |
||
559 | this.subindex = "latencyscale"; |
||
560 | this.minlock = true; |
||
561 | this.scale = 100; |
||
562 | DL_Set_Label(DAB_TEXT.LatencyScale); |
||
563 | </OnLoad> |
||
564 | </Scripts> |
||
565 | </Slider> |
||
566 | |||
567 | <CheckButton name="$parent_ShowKeyring" inherits="DAB_CheckBoxTemplate"> |
||
568 | <Anchors> |
||
569 | <Anchor point="TOPLEFT" relativeTo="$parent_LatencyScale" relativePoint="BOTTOMLEFT"> |
||
570 | <Offset><AbsDimension x="0" y="-55"/></Offset> |
||
571 | </Anchor> |
||
572 | </Anchors> |
||
573 | <Scripts> |
||
574 | <OnLoad> |
||
575 | this.index = "MainMenuBar"; |
||
576 | this.subindex = "showKeyring"; |
||
577 | DL_Set_Label(DAB_TEXT.KeyringControl); |
||
578 | </OnLoad> |
||
579 | <OnClick> |
||
580 | DAB_CheckBox_OnClick(); |
||
581 | </OnClick> |
||
582 | </Scripts> |
||
583 | </CheckButton> |
||
584 | <Slider name="$parent_KeyringScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200" valueStep="1"> |
||
585 | <Anchors> |
||
586 | <Anchor point="TOPLEFT" relativeTo="$parent_ShowKeyring" relativePoint="BOTTOMLEFT"> |
||
587 | <Offset><AbsDimension x="0" y="-20"/></Offset> |
||
588 | </Anchor> |
||
589 | </Anchors> |
||
590 | <Scripts> |
||
591 | <OnLoad> |
||
592 | this.index = "MainMenuBar"; |
||
593 | this.subindex = "keyringscale"; |
||
594 | this.minlock = true; |
||
595 | this.scale = 100; |
||
596 | DL_Set_Label(DAB_TEXT.KeyringScale); |
||
597 | </OnLoad> |
||
598 | </Scripts> |
||
599 | </Slider> |
||
600 | </Frames> |
||
601 | </Frame> |
||
602 | |||
603 | <Frame name="DAB_ScriptOptions" parent="DAB_Options" hidden="true"> |
||
604 | <Size><AbsDimension x="10" y="10"/></Size> |
||
605 | <Anchors> |
||
606 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
607 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
608 | </Anchor> |
||
609 | <Anchor point="BOTTOMRIGHT"/> |
||
610 | </Anchors> |
||
611 | <Frames> |
||
612 | <Button name="$parent_Script" inherits="DiscordLib_MenuControlTemplate"> |
||
613 | <Size><AbsDimension x="170" y="22"/></Size> |
||
614 | <Anchors> |
||
615 | <Anchor point="TOP"> |
||
616 | <Offset><AbsDimension x="0" y="-70"/></Offset> |
||
617 | </Anchor> |
||
618 | </Anchors> |
||
619 | <Scripts> |
||
620 | <OnLoad> |
||
621 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
622 | this.menu = "DAB_ScrollMenu"; |
||
623 | this.table = "DAB_SCRIPTS"; |
||
624 | this.initFunc = DAB_Select_Script; |
||
625 | DL_Set_Label(DAB_TEXT.ChooseScript); |
||
626 | </OnLoad> |
||
627 | </Scripts> |
||
628 | </Button> |
||
629 | <ScrollFrame name="$parent_EditBox" inherits="DL_MultiLineEditboxTemplate"> |
||
630 | <Size><AbsDimension x="365" y="450"/></Size> |
||
631 | <Anchors> |
||
632 | <Anchor point="TOPLEFT"> |
||
633 | <Offset><AbsDimension x="7" y="-160"/></Offset> |
||
634 | </Anchor> |
||
635 | </Anchors> |
||
636 | <Scripts> |
||
637 | <OnLoad> |
||
638 | this.textChanged = DAB_Scripts_Update; |
||
639 | </OnLoad> |
||
640 | <OnShow> |
||
641 | DAB_EDITTING_SCRIPT = true; |
||
642 | if (DAB_CURRENT_SCRIPT) then |
||
643 | DAB_Select_Script(DAB_CURRENT_SCRIPT); |
||
644 | else |
||
645 | DAB_ScriptOptions_EditBox_Text:SetText(""); |
||
646 | end |
||
647 | </OnShow> |
||
648 | <OnHide> |
||
649 | DAB_EDITTING_SCRIPT = nil; |
||
650 | DAB_Scripts_Compile(); |
||
651 | </OnHide> |
||
652 | </Scripts> |
||
653 | </ScrollFrame> |
||
654 | </Frames> |
||
655 | <Layers> |
||
656 | <Layer level="OVERLAY"> |
||
657 | <FontString name="$parent_Description" font="Fonts\ARIALN.TTF"> |
||
658 | <Color r="1" g="1" b="1"/> |
||
659 | <FontHeight> |
||
660 | <AbsValue val="12"/> |
||
661 | </FontHeight> |
||
662 | <Shadow> |
||
663 | <Offset> |
||
664 | <AbsDimension x="1" y="-1"/> |
||
665 | </Offset> |
||
666 | <Color r="0" g="0" b="0"/> |
||
667 | </Shadow> |
||
668 | <Anchors> |
||
669 | <Anchor point="TOP"> |
||
670 | <Offset><AbsDimension x="0" y="-95"/></Offset> |
||
671 | </Anchor> |
||
672 | </Anchors> |
||
673 | </FontString> |
||
674 | </Layer> |
||
675 | </Layers> |
||
676 | </Frame> |
||
677 | |||
678 | <Frame name="DAB_KeybindingOptions" parent="DAB_Options" hidden="true"> |
||
679 | <Size><AbsDimension x="10" y="10"/></Size> |
||
680 | <Anchors> |
||
681 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
682 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
683 | </Anchor> |
||
684 | <Anchor point="BOTTOMRIGHT"/> |
||
685 | </Anchors> |
||
686 | <Frames> |
||
687 | <ScrollFrame name="$parent_KeybindingBrowser" inherits="DL_ScrollFrameTemplate"> |
||
688 | <Size><AbsDimension x="370" y="505"/></Size> |
||
689 | <Anchors> |
||
690 | <Anchor point="TOPLEFT"> |
||
691 | <Offset><AbsDimension x="0" y="-50"/></Offset> |
||
692 | </Anchor> |
||
693 | </Anchors> |
||
694 | <Scripts> |
||
695 | <OnVerticalScroll> |
||
696 | FauxScrollFrame_OnVerticalScroll(50, DAB_KeybindingBrowser_Update); |
||
697 | </OnVerticalScroll> |
||
698 | <OnShow> |
||
699 | DAB_KeybindingBrowser_Update(); |
||
700 | </OnShow> |
||
701 | </Scripts> |
||
702 | <Layers> |
||
703 | <Layer level="OVERLAY"> |
||
704 | <FontString name="$parent_OptionsLabel" inherits="GameFontNormal"> |
||
705 | <Anchors> |
||
706 | <Anchor point="CENTER" relativePoint="TOPLEFT"> |
||
707 | <Offset><AbsDimension x="146" y="15"/></Offset> |
||
708 | </Anchor> |
||
709 | </Anchors> |
||
710 | </FontString> |
||
711 | <FontString name="$parent_Key1Label" inherits="GameFontNormal"> |
||
712 | <Anchors> |
||
713 | <Anchor point="CENTER" relativePoint="TOPLEFT"> |
||
714 | <Offset><AbsDimension x="274" y="15"/></Offset> |
||
715 | </Anchor> |
||
716 | </Anchors> |
||
717 | </FontString> |
||
718 | <FontString name="$parent_Key2Label" inherits="GameFontNormal"> |
||
719 | <Anchors> |
||
720 | <Anchor point="CENTER" relativePoint="TOPLEFT"> |
||
721 | <Offset><AbsDimension x="334" y="15"/></Offset> |
||
722 | </Anchor> |
||
723 | </Anchors> |
||
724 | </FontString> |
||
725 | </Layer> |
||
726 | </Layers> |
||
727 | <Scripts> |
||
728 | <OnKeyDown> |
||
729 | DAB_KeyBindingFrame_OnKeyDown(); |
||
730 | </OnKeyDown> |
||
731 | </Scripts> |
||
732 | </ScrollFrame> |
||
733 | <CheckButton name="$parent_KeybindingBrowser_Button1" inherits="DAB_KeybindingTemplate" id="1"> |
||
734 | <Anchors> |
||
735 | <Anchor point="TOPLEFT" relativeTo="$parent_KeybindingBrowser"> |
||
736 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
737 | </Anchor> |
||
738 | </Anchors> |
||
739 | </CheckButton> |
||
740 | <CheckButton name="$parent_KeybindingBrowser_Button2" inherits="DAB_KeybindingTemplate" id="2"/> |
||
741 | <CheckButton name="$parent_KeybindingBrowser_Button3" inherits="DAB_KeybindingTemplate" id="3"/> |
||
742 | <CheckButton name="$parent_KeybindingBrowser_Button4" inherits="DAB_KeybindingTemplate" id="4"/> |
||
743 | <CheckButton name="$parent_KeybindingBrowser_Button5" inherits="DAB_KeybindingTemplate" id="5"/> |
||
744 | <CheckButton name="$parent_KeybindingBrowser_Button6" inherits="DAB_KeybindingTemplate" id="6"/> |
||
745 | <CheckButton name="$parent_KeybindingBrowser_Button7" inherits="DAB_KeybindingTemplate" id="7"/> |
||
746 | <CheckButton name="$parent_KeybindingBrowser_Button8" inherits="DAB_KeybindingTemplate" id="8"/> |
||
747 | <CheckButton name="$parent_KeybindingBrowser_Button9" inherits="DAB_KeybindingTemplate" id="9"/> |
||
748 | <CheckButton name="$parent_KeybindingBrowser_Button10" inherits="DAB_KeybindingTemplate" id="10"/> |
||
749 | |||
750 | <Button inherits="DAB_MainMenuButton"> |
||
751 | <Anchors> |
||
752 | <Anchor point="BOTTOM" relativeTo="DAB_KeybindingOptions"> |
||
753 | <Offset><AbsDimension x="0" y="12.5"/></Offset> |
||
754 | </Anchor> |
||
755 | </Anchors> |
||
756 | <Scripts> |
||
757 | <OnLoad> |
||
758 | this:SetText(DAB_TEXT.AutoConfigure); |
||
759 | DAB_KeybindingOptions_KeybindingBrowser_Button10Border:Hide(); |
||
760 | </OnLoad> |
||
761 | <OnClick> |
||
762 | DAB_AutoConfigure_Keybindings(); |
||
763 | DAB_Update_Keybindings(); |
||
764 | DAB_KeybindingBrowser_Update(); |
||
765 | </OnClick> |
||
766 | </Scripts> |
||
767 | </Button> |
||
768 | </Frames> |
||
769 | </Frame> |
||
770 | |||
771 | <Frame name="DAB_MiscOptions" parent="DAB_Options" hidden="true"> |
||
772 | <Size><AbsDimension x="10" y="10"/></Size> |
||
773 | <Anchors> |
||
774 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
775 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
776 | </Anchor> |
||
777 | <Anchor point="BOTTOMRIGHT"/> |
||
778 | </Anchors> |
||
779 | <Frames> |
||
780 | <Button name="$parent_OptionsScale" inherits="DiscordLib_MenuControlTemplate"> |
||
781 | <Size><AbsDimension x="70" y="22"/></Size> |
||
782 | <Scripts> |
||
783 | <OnLoad> |
||
784 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
785 | this.menu = "DAB_DropMenu"; |
||
786 | this.table = "DL_OPTIONS_SCALES"; |
||
787 | this.initFunc = DAB_Set_OptionsScale; |
||
788 | DL_Set_Label(DAB_TEXT.OptionsScale); |
||
789 | DL_Set_Anchor("", 0, -30, "TOP", "TOP", 1); |
||
790 | </OnLoad> |
||
791 | </Scripts> |
||
792 | </Button> |
||
793 | <Slider name="$parent_UpdateSpeed" inherits="DAB_SliderTemplate" minValue="1" maxValue="60" valueStep="1"> |
||
794 | <Anchors> |
||
795 | <Anchor point="TOP"> |
||
796 | <Offset><AbsDimension x="-20" y="-75"/></Offset> |
||
797 | </Anchor> |
||
798 | </Anchors> |
||
799 | <Scripts> |
||
800 | <OnLoad> |
||
801 | this.index = "Misc"; |
||
802 | this.subindex = "UpdateSpeed"; |
||
803 | this.minlock = true; |
||
804 | this.maxlock = true; |
||
805 | DL_Set_Label(DAB_TEXT.UpdateSpeed); |
||
806 | </OnLoad> |
||
807 | </Scripts> |
||
808 | </Slider> |
||
809 | |||
810 | <EditBox name="$parent_NewProfile" inherits="DiscordLib_EditBoxTemplate"> |
||
811 | <Size><AbsDimension x="150" y="24"/></Size> |
||
812 | <Scripts> |
||
813 | <OnLoad> |
||
814 | DL_Set_Label(DAB_TEXT.NewProfile); |
||
815 | DL_Set_Anchor("", 0, -150, "TOPLEFT", "TOPLEFT"); |
||
816 | </OnLoad> |
||
817 | <OnEnterPressed> |
||
818 | DAB_New_Profile(this:GetText()); |
||
819 | </OnEnterPressed> |
||
820 | </Scripts> |
||
821 | </EditBox> |
||
822 | <Button inherits="DAB_MainMenuButton" text="DL_CREATETEXT"> |
||
823 | <Size><AbsDimension x="75" y="24"/></Size> |
||
824 | <Anchors> |
||
825 | <Anchor point="LEFT" relativeTo="$parent_NewProfile" relativePoint="RIGHT"> |
||
826 | <Offset><AbsDimension x="0" y="0"/></Offset> |
||
827 | </Anchor> |
||
828 | </Anchors> |
||
829 | <Scripts> |
||
830 | <OnClick> |
||
831 | DAB_New_Profile(DAB_MiscOptions_NewProfile:GetText()); |
||
832 | </OnClick> |
||
833 | </Scripts> |
||
834 | </Button> |
||
835 | |||
836 | <Button name="$parent_LoadProfile" inherits="DiscordLib_MenuControlTemplate"> |
||
837 | <Size><AbsDimension x="150" y="22"/></Size> |
||
838 | <Scripts> |
||
839 | <OnLoad> |
||
840 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
841 | this.menu = "DAB_DropMenu"; |
||
842 | this.table = "DAB_PROFILES"; |
||
843 | this.initFunc = function() end; |
||
844 | DL_Set_Label(DAB_TEXT.LoadProfile); |
||
845 | DL_Set_Anchor("", 0, -175, "TOPLEFT", "TOPLEFT"); |
||
846 | </OnLoad> |
||
847 | </Scripts> |
||
848 | </Button> |
||
849 | <Button name="$parent_Load" inherits="DAB_MainMenuButton" text="DL_LOADTEXT"> |
||
850 | <Size><AbsDimension x="75" y="24"/></Size> |
||
851 | <Anchors> |
||
852 | <Anchor point="LEFT" relativeTo="$parent_LoadProfile" relativePoint="RIGHT"/> |
||
853 | </Anchors> |
||
854 | <Scripts> |
||
855 | <OnClick> |
||
856 | DAB_Load_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText()); |
||
857 | </OnClick> |
||
858 | </Scripts> |
||
859 | </Button> |
||
860 | <Button inherits="DAB_MainMenuButton" text="DL_DELETETEXT"> |
||
861 | <Size><AbsDimension x="75" y="24"/></Size> |
||
862 | <Anchors> |
||
863 | <Anchor point="LEFT" relativeTo="$parent_Load" relativePoint="RIGHT"/> |
||
864 | </Anchors> |
||
865 | <Scripts> |
||
866 | <OnClick> |
||
867 | DAB_Delete_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText()); |
||
868 | </OnClick> |
||
869 | </Scripts> |
||
870 | </Button> |
||
871 | <Button inherits="DAB_MainMenuButton"> |
||
872 | <Size><AbsDimension x="100" y="24"/></Size> |
||
873 | <Anchors> |
||
874 | <Anchor point="TOPLEFT" relativeTo="$parent_Load" relativePoint="BOTTOMLEFT"/> |
||
875 | </Anchors> |
||
876 | <Scripts> |
||
877 | <OnLoad> |
||
878 | this:SetText(DAB_TEXT.SafeLoad); |
||
879 | </OnLoad> |
||
880 | <OnClick> |
||
881 | DAB_SafeLoad_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText()); |
||
882 | </OnClick> |
||
883 | </Scripts> |
||
884 | </Button> |
||
885 | |||
886 | <CheckButton name="$parent_ModifyTooltip" inherits="DAB_CheckBoxTemplate"> |
||
887 | <Anchors> |
||
888 | <Anchor point="TOPLEFT"> |
||
889 | <Offset><AbsDimension x="0" y="-230"/></Offset> |
||
890 | </Anchor> |
||
891 | </Anchors> |
||
892 | <Scripts> |
||
893 | <OnLoad> |
||
894 | this.index = "Misc"; |
||
895 | this.subindex = "ModifyTooltip"; |
||
896 | DL_Set_Label(DAB_TEXT.ModifyTooltip); |
||
897 | </OnLoad> |
||
898 | </Scripts> |
||
899 | </CheckButton> |
||
900 | <CheckButton name="$parent_AutoConfigure" inherits="DAB_CheckBoxTemplate"> |
||
901 | <Anchors> |
||
902 | <Anchor point="TOPLEFT" relativeTo="$parent_ModifyTooltip" relativePoint="BOTTOMLEFT"/> |
||
903 | </Anchors> |
||
904 | <Scripts> |
||
905 | <OnLoad> |
||
906 | this.index = "Misc"; |
||
907 | this.subindex = "AutoConfigureKB"; |
||
908 | DL_Set_Label(DAB_TEXT.AutoConfigureKB); |
||
909 | </OnLoad> |
||
910 | </Scripts> |
||
911 | </CheckButton> |
||
912 | <Button name="$parent_DragOverride" inherits="DiscordLib_MenuControlTemplate"> |
||
913 | <Size><AbsDimension x="100" y="22"/></Size> |
||
914 | <Scripts> |
||
915 | <OnLoad> |
||
916 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
917 | this.menu = "DAB_DropMenu"; |
||
918 | this.table = "DAB_MODIFIER_KEYS"; |
||
919 | this.index = "Misc"; |
||
920 | this.subindex = "DragLockOverride"; |
||
921 | DL_Set_Label(DAB_TEXT.OverrideDragLock); |
||
922 | DL_Set_Anchor("_AutoConfigure", 0, -10); |
||
923 | </OnLoad> |
||
924 | </Scripts> |
||
925 | </Button> |
||
926 | <Button name="$parent_ButtonOverride" inherits="DiscordLib_MenuControlTemplate"> |
||
927 | <Size><AbsDimension x="100" y="22"/></Size> |
||
928 | <Scripts> |
||
929 | <OnLoad> |
||
930 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
931 | this.menu = "DAB_DropMenu"; |
||
932 | this.table = "DAB_MODIFIER_KEYS"; |
||
933 | this.index = "Misc"; |
||
934 | this.subindex = "ButtonLockOverride"; |
||
935 | DL_Set_Label(DAB_TEXT.OverrideButtonLock); |
||
936 | DL_Set_Anchor("_AutoConfigure", 0, -35); |
||
937 | </OnLoad> |
||
938 | </Scripts> |
||
939 | </Button> |
||
940 | <Button name="$parent_ForceSelfCast" inherits="DiscordLib_MenuControlTemplate"> |
||
941 | <Size><AbsDimension x="100" y="22"/></Size> |
||
942 | <Scripts> |
||
943 | <OnLoad> |
||
944 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
945 | this.menu = "DAB_DropMenu"; |
||
946 | this.table = "DAB_MODIFIER_KEYS"; |
||
947 | this.index = "Misc"; |
||
948 | this.subindex = "SelfCast"; |
||
949 | DL_Set_Label(DAB_TEXT.ForceSelfCast); |
||
950 | DL_Set_Anchor("_AutoConfigure", 0, -60); |
||
951 | </OnLoad> |
||
952 | </Scripts> |
||
953 | </Button> |
||
954 | <Button name="$parent_CooldownFormat" inherits="DiscordLib_MenuControlTemplate"> |
||
955 | <Size><AbsDimension x="100" y="22"/></Size> |
||
956 | <Scripts> |
||
957 | <OnLoad> |
||
958 | this:SetBackdropColor(0.0, 0.0, 0.0); |
||
959 | this.menu = "DAB_DropMenu"; |
||
960 | this.table = "DAB_TIME_FORMAT"; |
||
961 | this.index = "Misc"; |
||
962 | this.subindex = "CDFormat"; |
||
963 | DL_Set_Label(DAB_TEXT.CDFormat); |
||
964 | DL_Set_Anchor("_AutoConfigure", 0, -90); |
||
965 | </OnLoad> |
||
966 | </Scripts> |
||
967 | </Button> |
||
968 | </Frames> |
||
969 | <Layers> |
||
970 | <Layer level="OVERLAY"> |
||
971 | <FontString name="$parent_CurrentProfile" inherits="GameFontNormal"> |
||
972 | <Anchors> |
||
973 | <Anchor point="TOPLEFT"> |
||
974 | <Offset><AbsDimension x="0" y="-135"/></Offset> |
||
975 | </Anchor> |
||
976 | </Anchors> |
||
977 | </FontString> |
||
978 | </Layer> |
||
979 | </Layers> |
||
980 | </Frame> |
||
981 | |||
982 | <Frame name="DAB_ChangeActionsTemplate" virtual="true"> |
||
983 | <Size><AbsDimension x="200" y="40"/></Size> |
||
984 | <Frames> |
||
985 | <Button name="$parent_Button"> |
||
986 | <Size><AbsDimension x="36" y="36"/></Size> |
||
987 | <Anchors> |
||
988 | <Anchor point="LEFT"> |
||
989 | <Offset><AbsDimension x="40" y="0"/></Offset> |
||
990 | </Anchor> |
||
991 | </Anchors> |
||
992 | <Layers> |
||
993 | <Layer level="ARTWORK"> |
||
994 | <Texture name="$parent_Icon"> |
||
995 | <Size><AbsDimension x="36" y="36"/></Size> |
||
996 | <Anchors> |
||
997 | <Anchor point="CENTER"/> |
||
998 | </Anchors> |
||
999 | </Texture> |
||
1000 | </Layer> |
||
1001 | </Layers> |
||
1002 | <Scripts> |
||
1003 | <OnLoad> |
||
1004 | this:RegisterForDrag("LeftButton"); |
||
1005 | this:RegisterEvent("ACTIONBAR_SLOT_CHANGED"); |
||
1006 | </OnLoad> |
||
1007 | <OnEvent> |
||
1008 | if (not this.action) then return; end |
||
1009 | if (HasAction(this.action)) then |
||
1010 | getglobal(this:GetName().."_Icon"):SetTexture(GetActionTexture(this.action)); |
||
1011 | else |
||
1012 | getglobal(this:GetName().."_Icon"):SetTexture("Interface\\AddOns\\DiscordLibrary\\EmptyButton"); |
||
1013 | end |
||
1014 | getglobal(this:GetParent():GetName().."_Text"):SetText(DAB_Get_ActionName(this.action)); |
||
1015 | </OnEvent> |
||
1016 | <OnDragStart> |
||
1017 | PickupAction(this.action); |
||
1018 | </OnDragStart> |
||
1019 | <OnReceiveDrag> |
||
1020 | PlaceAction(this.action); |
||
1021 | </OnReceiveDrag> |
||
1022 | <OnClick> |
||
1023 | PickupAction(this.action); |
||
1024 | </OnClick> |
||
1025 | <OnEnter> |
||
1026 | if ( GetCVar("UberTooltips") == "1" ) then |
||
1027 | GameTooltip_SetDefaultAnchor(GameTooltip, this); |
||
1028 | else |
||
1029 | GameTooltip:SetOwner(this, "ANCHOR_RIGHT"); |
||
1030 | end |
||
1031 | GameTooltip:SetAction(this.action); |
||
1032 | </OnEnter> |
||
1033 | <OnLeave> |
||
1034 | GameTooltip:Hide(); |
||
1035 | </OnLeave> |
||
1036 | </Scripts> |
||
1037 | </Button> |
||
1038 | </Frames> |
||
1039 | <Layers> |
||
1040 | <Layer level="OVERLAY"> |
||
1041 | <FontString name="$parent_ID" inherits="GameFontNormal"> |
||
1042 | <Color r="1" g="1" b="1"/> |
||
1043 | <Anchors> |
||
1044 | <Anchor point="LEFT"> |
||
1045 | <Offset><AbsDimension x="5" y="0"/></Offset> |
||
1046 | </Anchor> |
||
1047 | </Anchors> |
||
1048 | </FontString> |
||
1049 | <FontString name="$parent_Text" inherits="GameFontNormal"> |
||
1050 | <Anchors> |
||
1051 | <Anchor point="LEFT"> |
||
1052 | <Offset><AbsDimension x="90" y="0"/></Offset> |
||
1053 | </Anchor> |
||
1054 | </Anchors> |
||
1055 | </FontString> |
||
1056 | <Texture name="$parentBorder"> |
||
1057 | <Size><AbsDimension x="365" y="2"/></Size> |
||
1058 | <Color r=".4" g="0" b="0"/> |
||
1059 | <Anchors> |
||
1060 | <Anchor point="BOTTOMLEFT"> |
||
1061 | <Offset><AbsDimension x="-5" y="0"/></Offset> |
||
1062 | </Anchor> |
||
1063 | </Anchors> |
||
1064 | </Texture> |
||
1065 | </Layer> |
||
1066 | </Layers> |
||
1067 | </Frame> |
||
1068 | |||
1069 | <Frame name="DAB_ChangeActions" hidden="true" parent="DAB_Options" frameStrata="MEDIUM"> |
||
1070 | <Size><AbsDimension x="10" y="10"/></Size> |
||
1071 | <Anchors> |
||
1072 | <Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT"> |
||
1073 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
1074 | </Anchor> |
||
1075 | <Anchor point="BOTTOMRIGHT"/> |
||
1076 | </Anchors> |
||
1077 | <Frames> |
||
1078 | <ScrollFrame name="$parent_ScrollMenu" inherits="DL_ScrollFrameTemplate"> |
||
1079 | <Size><AbsDimension x="365" y="530"/></Size> |
||
1080 | <Anchors> |
||
1081 | <Anchor point="TOPLEFT"> |
||
1082 | <Offset><AbsDimension x="0" y="-60"/></Offset> |
||
1083 | </Anchor> |
||
1084 | </Anchors> |
||
1085 | <Scripts> |
||
1086 | <OnLoad> |
||
1087 | getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.ChangeActions); |
||
1088 | </OnLoad> |
||
1089 | <OnVerticalScroll> |
||
1090 | FauxScrollFrame_OnVerticalScroll(40, DAB_ChangeActionsMenu_Update); |
||
1091 | </OnVerticalScroll> |
||
1092 | <OnShow> |
||
1093 | DAB_ChangeActionsMenu_Update(); |
||
1094 | </OnShow> |
||
1095 | </Scripts> |
||
1096 | </ScrollFrame> |
||
1097 | <Frame name="$parent_ScrollMenu_Button1" inherits="DAB_ChangeActionsTemplate" id="1"> |
||
1098 | <Anchors> |
||
1099 | <Anchor point="TOPLEFT" relativeTo="$parent_ScrollMenu"> |
||
1100 | <Offset><AbsDimension x="5" y="-5"/></Offset> |
||
1101 | </Anchor> |
||
1102 | </Anchors> |
||
1103 | </Frame> |
||
1104 | <Frame name="$parent_ScrollMenu_Button2" inherits="DAB_ChangeActionsTemplate" id="2"/> |
||
1105 | <Frame name="$parent_ScrollMenu_Button3" inherits="DAB_ChangeActionsTemplate" id="3"/> |
||
1106 | <Frame name="$parent_ScrollMenu_Button4" inherits="DAB_ChangeActionsTemplate" id="4"/> |
||
1107 | <Frame name="$parent_ScrollMenu_Button5" inherits="DAB_ChangeActionsTemplate" id="5"/> |
||
1108 | <Frame name="$parent_ScrollMenu_Button6" inherits="DAB_ChangeActionsTemplate" id="6"/> |
||
1109 | <Frame name="$parent_ScrollMenu_Button7" inherits="DAB_ChangeActionsTemplate" id="7"/> |
||
1110 | <Frame name="$parent_ScrollMenu_Button8" inherits="DAB_ChangeActionsTemplate" id="8"/> |
||
1111 | <Frame name="$parent_ScrollMenu_Button9" inherits="DAB_ChangeActionsTemplate" id="9"/> |
||
1112 | <Frame name="$parent_ScrollMenu_Button10" inherits="DAB_ChangeActionsTemplate" id="10"/> |
||
1113 | <Frame name="$parent_ScrollMenu_Button11" inherits="DAB_ChangeActionsTemplate" id="11"/> |
||
1114 | <Frame name="$parent_ScrollMenu_Button12" inherits="DAB_ChangeActionsTemplate" id="12"/> |
||
1115 | <Frame name="$parent_ScrollMenu_Button13" inherits="DAB_ChangeActionsTemplate" id="13"/> |
||
1116 | </Frames> |
||
1117 | </Frame> |
||
1118 | |||
1119 | </Ui> |