<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/
..\FrameXML\UI.xsd"> 

<Button name="DAB_Options" inherits="DiscordLib_OptionsTemplate" hidden="false">
	<Size><AbsDimension x="600" y="655"/></Size>
	<Frames>
		<Button name="$parent_CloseButton" inherits="DiscordLib_CloseButtonTemplate" frameStrata="HIGH">
			<Scripts>
				<OnClick>
					DAB_Options:Hide();
				</OnClick>
			</Scripts>
		</Button>

		<ScrollFrame name="$parent_BarBrowser" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="140" y="310"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="15" y="-40"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.ObjectOptions);
				</OnLoad>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(20, DAB_BarBrowser_Update);
				</OnVerticalScroll>
			</Scripts>
		</ScrollFrame>
		<CheckButton name="$parent_BarBrowser_Button1" inherits="DAB_ScrollButtonTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BarBrowser">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</CheckButton>
		<CheckButton name="$parent_BarBrowser_Button2" inherits="DAB_ScrollButtonTemplate" id="2"/>
		<CheckButton name="$parent_BarBrowser_Button3" inherits="DAB_ScrollButtonTemplate" id="3"/>
		<CheckButton name="$parent_BarBrowser_Button4" inherits="DAB_ScrollButtonTemplate" id="4"/>
		<CheckButton name="$parent_BarBrowser_Button5" inherits="DAB_ScrollButtonTemplate" id="5"/>
		<CheckButton name="$parent_BarBrowser_Button6" inherits="DAB_ScrollButtonTemplate" id="6"/>
		<CheckButton name="$parent_BarBrowser_Button7" inherits="DAB_ScrollButtonTemplate" id="7"/>
		<CheckButton name="$parent_BarBrowser_Button8" inherits="DAB_ScrollButtonTemplate" id="8"/>
		<CheckButton name="$parent_BarBrowser_Button9" inherits="DAB_ScrollButtonTemplate" id="9"/>
		<CheckButton name="$parent_BarBrowser_Button10" inherits="DAB_ScrollButtonTemplate" id="10"/>
		<CheckButton name="$parent_BarBrowser_Button11" inherits="DAB_ScrollButtonTemplate" id="11"/>
		<CheckButton name="$parent_BarBrowser_Button12" inherits="DAB_ScrollButtonTemplate" id="12"/>
		<CheckButton name="$parent_BarBrowser_Button13" inherits="DAB_ScrollButtonTemplate" id="13"/>
		<CheckButton name="$parent_BarBrowser_Button14" inherits="DAB_ScrollButtonTemplate" id="14"/>
		<CheckButton name="$parent_BarBrowser_Button15" inherits="DAB_ScrollButtonTemplate" id="15"/>

		<CheckButton name="$parent_Header" inherits="DL_TabButtonTemplate">
			<Size><AbsDimension x="370" y="20"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton("");
					getglobal(this:GetName().."_Background"):Hide();
				</OnLoad>
				<OnEnter>
				</OnEnter>
				<OnLeave>
				</OnLeave>
				<OnClick>
				</OnClick>
			</Scripts>
		</CheckButton>

		<Button name="$parent_ChangeActions" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_BarBrowser_OuterBorder" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.ChangeActions);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_Options_Header_Text:SetText(DAB_TEXT.ChangeActions);
					DAB_ChangeActions:Show();
					DAB_ChangeActionsMenu_Update();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NumButtons" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_ChangeActions" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.NumButtonsPerBar);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_Options_Header_Text:SetText(DAB_TEXT.NumButtonsPerBar);
					DAB_ButtonLayout:Show();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_Keybindings" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_NumButtons" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Keybindings);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.Keybindings));
					DAB_KeybindingOptions:Show();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_EventScripts" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_Keybindings" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.EventScripts);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_OnEventMacros:Show();
					DAB_Options_Header_Text:SetText(DAB_TEXT.OnEventScripts);
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_MainBarOptions" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_EventScripts" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.MainBarOptions);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_MainBarOptions:Show();
					DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.MainBarOptions));
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_MiscOptions" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_MainBarOptions" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.MiscOptions);
				</OnLoad>
				<OnClick>
					DAB_HideAllOptions();
					DAB_Options_Header_Text:SetText(string.upper(DAB_TEXT.MiscOptions));
					DAB_MiscOptions:Show();
				</OnClick>
			</Scripts>
		</Button>

		<Button name="$parent_DraggingToggle" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_MiscOptions" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-10"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.UnlockDragging);
				</OnLoad>
				<OnClick>
					DAB_Toggle_Dragging();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_IDToggle" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_DraggingToggle" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.ShowButtonIDs);
				</OnLoad>
				<OnClick>
					DAB_Toggle_IDs();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_ActionIDToggle" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_IDToggle" relativePoint="BOTTOM"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.ShowActionIDs);
				</OnLoad>
				<OnClick>
					DAB_Toggle_ActionIDs();
				</OnClick>
			</Scripts>
		</Button>

		<Button inherits="DAB_MainMenuButton" text="DL_COPYTEXT">
			<Size><AbsDimension x="170" y="24"/></Size>
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_ActionIDToggle" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-10"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Copy_Settings();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_Paste" inherits="DAB_MainMenuButton" text="DL_PASTETEXT">
			<Size><AbsDimension x="170" y="24"/></Size>
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_ActionIDToggle" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:Disable();
				</OnLoad>
				<OnClick>
					DAB_Paste_Settings();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
	<Scripts>
		<OnClick>
			DAB_DropMenu:Hide();
			DAB_ScrollMenu:Hide();
			DL_CleanUp_TempOptions(DAB_DropMenu);
			DL_CleanUp_TempOptions(DAB_ScrollMenu);
		</OnClick>
		<OnShow>
			DAB_Options_OnShow();
		</OnShow>
	</Scripts>
</Button>

<Button name="DAB_ScrollMenu" inherits="DL_ScrollMenuTemplate" parent="DAB_Options">
	<Scripts>
		<OnLoad>
			this:SetBackdropColor(0, 0, 0);
			this:SetBackdropBorderColor(1, 0, 0);
			this.scrollMenu = true;
			this.updateFunc = DAB_ScrollMenu_Update;
		</OnLoad>
	</Scripts>
</Button>

<Button name="DAB_DropMenu" inherits="DL_DropMenuTemplate" parent="DAB_Options"/>

<Frame name="DAB_OnEventMacros" parent="DAB_Options" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<Button name="$parent_Event" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="170" y="22"/></Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_EVENTS";
					this.initFunc = DAB_Select_Event;
					DL_Set_Label(DAB_TEXT.ChooseEvent);
				</OnLoad>
			</Scripts>
		</Button>
		<Button inherits="DAB_MainMenuButton">
			<Size><AbsDimension x="110" y="22"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Event" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.AddNew);
				</OnLoad>
				<OnClick>
					DAB_NewEvent:Show();
				</OnClick>
			</Scripts>
		</Button>
		<ScrollFrame name="$parent_EditBox" inherits="DL_MultiLineEditboxTemplate">
			<Size><AbsDimension x="365" y="490"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="7" y="-90"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.textChanged = DAB_EventMacro_Update;
				</OnLoad>
				<OnShow>
					DAB_EDITTING_MACRO = true;
				</OnShow>
				<OnHide>
					DAB_EDITTING_MACRO = nil;
					DAB_EventMacro_Compile();
				</OnHide>
			</Scripts>
		</ScrollFrame>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_Description" font="Fonts\ARIALN.TTF">
				<Color r="1" g="1" b="1"/>
				<FontHeight>
					<AbsValue val="12"/>
				</FontHeight>
				<Shadow>
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
					<Color r="0" g="0" b="0"/>
				</Shadow>
				<Anchors>
					<Anchor point="TOP">
						<Offset><AbsDimension x="0" y="-55"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_NewEvent" inherits="DiscordLib_DialogueBackdropTemplate" hidden="true" parent="DAB_OnEventMacros" frameStrata="DIALOG">
	<Size><AbsDimension x="325" y="130"/></Size>
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
	<Frames>
		<EditBox name="$parent_Event" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG">
			<Size><AbsDimension x="250" y="25"/></Size>
			<Scripts>
				<OnLoad>
					DL_Set_Label(DAB_TEXT.Event);
					DL_Set_Anchor("", 15, -15, "TOPLEFT", "TOPLEFT");
				</OnLoad>
				<OnEnterPressed>
					this:ClearFocus();
				</OnEnterPressed>
				<OnTabPressed>
					DAB_NewEvent_Name:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_Name" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG">
			<Size><AbsDimension x="250" y="25"/></Size>
			<Scripts>
				<OnLoad>
					DL_Set_Label(DAB_TEXT.Name);
					DL_Set_Anchor("", 15, -40, "TOPLEFT", "TOPLEFT");
				</OnLoad>
				<OnEnterPressed>
					this:ClearFocus();
				</OnEnterPressed>
				<OnTabPressed>
					DAB_NewEvent_Desc:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_Desc" inherits="DiscordLib_EditBoxTemplate" frameStrata="DIALOG">
			<Size><AbsDimension x="250" y="25"/></Size>
			<Scripts>
				<OnLoad>
					DL_Set_Label(DAB_TEXT.Desc);
					DL_Set_Anchor("", 15, -65, "TOPLEFT", "TOPLEFT");
				</OnLoad>
				<OnEnterPressed>
					this:ClearFocus();
				</OnEnterPressed>
				<OnTabPressed>
					DAB_NewEvent_Event:SetFocus();
				</OnTabPressed>
			</Scripts>
		</EditBox>
		<Button inherits="DAB_MainMenuButton">
			<Size><AbsDimension x="110" y="22"/></Size>
			<Anchors>
				<Anchor point="BOTTOM">
					<Offset><AbsDimension x="0" y="15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.AddEvent);
				</OnLoad>
				<OnClick>
					DAB_Add_Event();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
	<Scripts>
		<OnLoad>
			this:SetBackdropColor(0,0,0);
			this:SetBackdropBorderColor(1, 0, 0);
		</OnLoad>
	</Scripts>
</Frame>

<Frame name="DAB_MainBarOptions" parent="DAB_Options" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<CheckButton name="$parent_HideEverything" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "hideEverything";
					DL_Set_Label(DAB_TEXT.HideEverything);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowXP" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideEverything" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-10"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "showXP";
					DL_Set_Label(DAB_TEXT.ShowXP);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideXPBorder" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowXP" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "hideXPborder";
					DL_Set_Label(DAB_TEXT.XPHideBorder);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_XPColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideXPBorder" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar"
					this.subindex = "xpcolor";
					DL_Set_Label(DAB_TEXT.XPColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_XPBorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_XPColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar"
					this.subindex = "xpbcolor";
					DL_Set_Label(DAB_TEXT.XPBorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_XPScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_XPBorderColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "xpscale";
					this.minlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.XPScale);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_XPAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_XPScale" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "xpalpha";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.XPAlpha);
				</OnLoad>
			</Scripts>
		</Slider>

		<CheckButton name="$parent_ShowLatency" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_XPAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "showLatency";
					DL_Set_Label(DAB_TEXT.ShowLatency);
				</OnLoad>
				<OnClick>
					DAB_CheckBox_OnClick();
				</OnClick>
			</Scripts>
		</CheckButton>
		<Slider name="$parent_LatencyScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowLatency" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "latencyscale";
					this.minlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.LatencyScale);
				</OnLoad>
			</Scripts>
		</Slider>

		<CheckButton name="$parent_ShowKeyring" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_LatencyScale" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-55"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "showKeyring";
					DL_Set_Label(DAB_TEXT.KeyringControl);
				</OnLoad>
				<OnClick>
					DAB_CheckBox_OnClick();
				</OnClick>
			</Scripts>
		</CheckButton>
		<Slider name="$parent_KeyringScale" inherits="DAB_SliderTemplate" minValue="1" maxValue="200"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowKeyring" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "MainMenuBar";
					this.subindex = "keyringscale";
					this.minlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.KeyringScale);
				</OnLoad>
			</Scripts>
		</Slider>
	</Frames>
</Frame>

<Frame name="DAB_ScriptOptions" parent="DAB_Options" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<Button name="$parent_Script" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="170" y="22"/></Size>
			<Anchors>
				<Anchor point="TOP">
					<Offset><AbsDimension x="0" y="-70"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_SCRIPTS";
					this.initFunc = DAB_Select_Script;
					DL_Set_Label(DAB_TEXT.ChooseScript);
				</OnLoad>
			</Scripts>
		</Button>
		<ScrollFrame name="$parent_EditBox" inherits="DL_MultiLineEditboxTemplate">
			<Size><AbsDimension x="365" y="450"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="7" y="-160"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.textChanged = DAB_Scripts_Update;
				</OnLoad>
				<OnShow>
					DAB_EDITTING_SCRIPT = true;
					if (DAB_CURRENT_SCRIPT) then
						DAB_Select_Script(DAB_CURRENT_SCRIPT);
					else
						DAB_ScriptOptions_EditBox_Text:SetText("");
					end
				</OnShow>
				<OnHide>
					DAB_EDITTING_SCRIPT = nil;
					DAB_Scripts_Compile();
				</OnHide>
			</Scripts>
		</ScrollFrame>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_Description" font="Fonts\ARIALN.TTF">
				<Color r="1" g="1" b="1"/>
				<FontHeight>
					<AbsValue val="12"/>
				</FontHeight>
				<Shadow>
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
					<Color r="0" g="0" b="0"/>
				</Shadow>
				<Anchors>
					<Anchor point="TOP">
						<Offset><AbsDimension x="0" y="-95"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_KeybindingOptions" parent="DAB_Options" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<ScrollFrame name="$parent_KeybindingBrowser" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="370" y="505"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-50"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(50, DAB_KeybindingBrowser_Update);
				</OnVerticalScroll>
				<OnShow>
					DAB_KeybindingBrowser_Update();
				</OnShow>
			</Scripts>
			<Layers>
				<Layer level="OVERLAY">
					<FontString name="$parent_OptionsLabel" inherits="GameFontNormal">
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT">
								<Offset><AbsDimension x="146" y="15"/></Offset>
							</Anchor>
						</Anchors>
					</FontString>
					<FontString name="$parent_Key1Label" inherits="GameFontNormal">
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT">
								<Offset><AbsDimension x="274" y="15"/></Offset>
							</Anchor>
						</Anchors>
					</FontString>
					<FontString name="$parent_Key2Label" inherits="GameFontNormal">
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT">
								<Offset><AbsDimension x="334" y="15"/></Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Scripts>
				<OnKeyDown>
					DAB_KeyBindingFrame_OnKeyDown();
				</OnKeyDown> 
			</Scripts>
		</ScrollFrame>
		<CheckButton name="$parent_KeybindingBrowser_Button1" inherits="DAB_KeybindingTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_KeybindingBrowser">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</CheckButton>
		<CheckButton name="$parent_KeybindingBrowser_Button2" inherits="DAB_KeybindingTemplate" id="2"/>
		<CheckButton name="$parent_KeybindingBrowser_Button3" inherits="DAB_KeybindingTemplate" id="3"/>
		<CheckButton name="$parent_KeybindingBrowser_Button4" inherits="DAB_KeybindingTemplate" id="4"/>
		<CheckButton name="$parent_KeybindingBrowser_Button5" inherits="DAB_KeybindingTemplate" id="5"/>
		<CheckButton name="$parent_KeybindingBrowser_Button6" inherits="DAB_KeybindingTemplate" id="6"/>
		<CheckButton name="$parent_KeybindingBrowser_Button7" inherits="DAB_KeybindingTemplate" id="7"/>
		<CheckButton name="$parent_KeybindingBrowser_Button8" inherits="DAB_KeybindingTemplate" id="8"/>
		<CheckButton name="$parent_KeybindingBrowser_Button9" inherits="DAB_KeybindingTemplate" id="9"/>
		<CheckButton name="$parent_KeybindingBrowser_Button10" inherits="DAB_KeybindingTemplate" id="10"/>

		<Button inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="DAB_KeybindingOptions">
					<Offset><AbsDimension x="0" y="12.5"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.AutoConfigure);
					DAB_KeybindingOptions_KeybindingBrowser_Button10Border:Hide();
				</OnLoad>
				<OnClick>
					DAB_AutoConfigure_Keybindings();
					DAB_Update_Keybindings();
					DAB_KeybindingBrowser_Update();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
</Frame>

<Frame name="DAB_MiscOptions" parent="DAB_Options" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<Button name="$parent_OptionsScale" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="70" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_OPTIONS_SCALES";
					this.initFunc = DAB_Set_OptionsScale;
					DL_Set_Label(DAB_TEXT.OptionsScale);
					DL_Set_Anchor("", 0, -30, "TOP", "TOP", 1);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_UpdateSpeed" inherits="DAB_SliderTemplate" minValue="1" maxValue="60"  valueStep="1">
			<Anchors>
				<Anchor point="TOP">
					<Offset><AbsDimension x="-20" y="-75"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Misc";
					this.subindex = "UpdateSpeed";
					this.minlock = true;
					this.maxlock = true;
					DL_Set_Label(DAB_TEXT.UpdateSpeed);
				</OnLoad>
			</Scripts>
		</Slider>

		<EditBox name="$parent_NewProfile" inherits="DiscordLib_EditBoxTemplate">
			<Size><AbsDimension x="150" y="24"/></Size>
			<Scripts>
				<OnLoad>
					DL_Set_Label(DAB_TEXT.NewProfile);
					DL_Set_Anchor("", 0, -150, "TOPLEFT", "TOPLEFT");
				</OnLoad>
				<OnEnterPressed>
					DAB_New_Profile(this:GetText());
				</OnEnterPressed>
			</Scripts>
		</EditBox>
		<Button inherits="DAB_MainMenuButton" text="DL_CREATETEXT">
			<Size><AbsDimension x="75" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_NewProfile" relativePoint="RIGHT">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_New_Profile(DAB_MiscOptions_NewProfile:GetText());
				</OnClick>
			</Scripts>
		</Button>

		<Button name="$parent_LoadProfile" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="150" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_PROFILES";
					this.initFunc = function() end;
					DL_Set_Label(DAB_TEXT.LoadProfile);
					DL_Set_Anchor("", 0, -175, "TOPLEFT", "TOPLEFT");
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Load" inherits="DAB_MainMenuButton" text="DL_LOADTEXT">
			<Size><AbsDimension x="75" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_LoadProfile" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Load_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText());
				</OnClick>
			</Scripts>
		</Button>
		<Button inherits="DAB_MainMenuButton" text="DL_DELETETEXT">
			<Size><AbsDimension x="75" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Load" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Delete_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText());
				</OnClick>
			</Scripts>
		</Button>
		<Button inherits="DAB_MainMenuButton">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Load" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.SafeLoad);
				</OnLoad>
				<OnClick>
					DAB_SafeLoad_Profile(DAB_MiscOptions_LoadProfile_Setting:GetText());
				</OnClick>
			</Scripts>
		</Button>

		<CheckButton name="$parent_ModifyTooltip" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-230"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Misc";
					this.subindex = "ModifyTooltip";
					DL_Set_Label(DAB_TEXT.ModifyTooltip);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_AutoConfigure" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ModifyTooltip" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Misc";
					this.subindex = "AutoConfigureKB";
					DL_Set_Label(DAB_TEXT.AutoConfigureKB);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_DragOverride" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_MODIFIER_KEYS";
					this.index = "Misc";
					this.subindex = "DragLockOverride";
					DL_Set_Label(DAB_TEXT.OverrideDragLock);
					DL_Set_Anchor("_AutoConfigure", 0, -10);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ButtonOverride" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_MODIFIER_KEYS";
					this.index = "Misc";
					this.subindex = "ButtonLockOverride";
					DL_Set_Label(DAB_TEXT.OverrideButtonLock);
					DL_Set_Anchor("_AutoConfigure", 0, -35);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ForceSelfCast" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_MODIFIER_KEYS";
					this.index = "Misc";
					this.subindex = "SelfCast";
					DL_Set_Label(DAB_TEXT.ForceSelfCast);
					DL_Set_Anchor("_AutoConfigure", 0, -60);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CooldownFormat" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_TIME_FORMAT";
					this.index = "Misc";
					this.subindex = "CDFormat";
					DL_Set_Label(DAB_TEXT.CDFormat);
					DL_Set_Anchor("_AutoConfigure", 0, -90);
				</OnLoad>
			</Scripts>
		</Button>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_CurrentProfile" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-135"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_ChangeActionsTemplate" virtual="true">
	<Size><AbsDimension x="200" y="40"/></Size>
	<Frames>
		<Button name="$parent_Button">
			<Size><AbsDimension x="36" y="36"/></Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset><AbsDimension x="40" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="ARTWORK">
					<Texture name="$parent_Icon">
						<Size><AbsDimension x="36" y="36"/></Size>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
					</Texture>
				</Layer>
			</Layers>
			<Scripts>
				<OnLoad>
					this:RegisterForDrag("LeftButton");
					this:RegisterEvent("ACTIONBAR_SLOT_CHANGED");
				</OnLoad>
				<OnEvent>
					if (not this.action) then return; end
					if (HasAction(this.action)) then
						getglobal(this:GetName().."_Icon"):SetTexture(GetActionTexture(this.action));
					else
						getglobal(this:GetName().."_Icon"):SetTexture("Interface\\AddOns\\DiscordLibrary\\EmptyButton");
					end
					getglobal(this:GetParent():GetName().."_Text"):SetText(DAB_Get_ActionName(this.action));
				</OnEvent>
				<OnDragStart>
					PickupAction(this.action);
				</OnDragStart>
				<OnReceiveDrag>
					PlaceAction(this.action);
				</OnReceiveDrag>
				<OnClick>
					PickupAction(this.action);
				</OnClick>
				<OnEnter>
					if ( GetCVar("UberTooltips") == "1" ) then
						GameTooltip_SetDefaultAnchor(GameTooltip, this);
					else
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					end
					GameTooltip:SetAction(this.action);
				</OnEnter>
				<OnLeave>
					GameTooltip:Hide();
				</OnLeave>
			</Scripts>
		</Button>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_ID" inherits="GameFontNormal">
				<Color r="1" g="1" b="1"/>
				<Anchors>
					<Anchor point="LEFT">
						<Offset><AbsDimension x="5" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_Text" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="LEFT">
						<Offset><AbsDimension x="90" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<Texture name="$parentBorder">
				<Size><AbsDimension x="365" y="2"/></Size>
				<Color r=".4" g="0" b="0"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset><AbsDimension x="-5" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</Texture>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_ChangeActions" hidden="true" parent="DAB_Options" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_Options_BarBrowser_OuterBorder" relativePoint="TOPRIGHT">
			<Offset><AbsDimension x="5" y="-5"/></Offset>
		</Anchor>
		<Anchor point="BOTTOMRIGHT"/>
	</Anchors>
	<Frames>
		<ScrollFrame name="$parent_ScrollMenu" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="365" y="530"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-60"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.ChangeActions);
				</OnLoad>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(40, DAB_ChangeActionsMenu_Update);
				</OnVerticalScroll>
				<OnShow>
					DAB_ChangeActionsMenu_Update();
				</OnShow>
			</Scripts>
		</ScrollFrame>
		<Frame name="$parent_ScrollMenu_Button1" inherits="DAB_ChangeActionsTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ScrollMenu">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</Frame>
		<Frame name="$parent_ScrollMenu_Button2" inherits="DAB_ChangeActionsTemplate" id="2"/>
		<Frame name="$parent_ScrollMenu_Button3" inherits="DAB_ChangeActionsTemplate" id="3"/>
		<Frame name="$parent_ScrollMenu_Button4" inherits="DAB_ChangeActionsTemplate" id="4"/>
		<Frame name="$parent_ScrollMenu_Button5" inherits="DAB_ChangeActionsTemplate" id="5"/>
		<Frame name="$parent_ScrollMenu_Button6" inherits="DAB_ChangeActionsTemplate" id="6"/>
		<Frame name="$parent_ScrollMenu_Button7" inherits="DAB_ChangeActionsTemplate" id="7"/>
		<Frame name="$parent_ScrollMenu_Button8" inherits="DAB_ChangeActionsTemplate" id="8"/>
		<Frame name="$parent_ScrollMenu_Button9" inherits="DAB_ChangeActionsTemplate" id="9"/>
		<Frame name="$parent_ScrollMenu_Button10" inherits="DAB_ChangeActionsTemplate" id="10"/>
		<Frame name="$parent_ScrollMenu_Button11" inherits="DAB_ChangeActionsTemplate" id="11"/>
		<Frame name="$parent_ScrollMenu_Button12" inherits="DAB_ChangeActionsTemplate" id="12"/>
		<Frame name="$parent_ScrollMenu_Button13" inherits="DAB_ChangeActionsTemplate" id="13"/>
	</Frames>
</Frame>

</Ui>