<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">

<CheckButton name="DAB_BarTabButtonTemplate" inherits="DL_TabButtonTemplate" virtual="true">
	<Size><AbsDimension x="130" y="20"/></Size>
</CheckButton>

<Frame name="DAB_BarOptions" hidden="false" 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>
		<CheckButton name="$parent_BarAppearanceTab" inherits="DAB_BarTabButtonTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-22"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.BarAppearance, "DAB_BAR_OPTIONS", DAB_Select_BarOptions, 1);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_BarControlTab" inherits="DAB_BarTabButtonTemplate" id="2">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_BarAppearanceTab" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-2"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.BarControl, "DAB_BAR_OPTIONS", DAB_Select_BarOptions);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ButtonAppearanceTab" inherits="DAB_BarTabButtonTemplate" id="3">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_BarAppearanceTab" relativePoint="RIGHT">
					<Offset><AbsDimension x="2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.ButtonAppearance, "DAB_BAR_OPTIONS", DAB_Select_BarOptions);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ButtonControlTab" inherits="DAB_BarTabButtonTemplate" id="4">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_ButtonAppearanceTab" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-2"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.ButtonControl, "DAB_BAR_OPTIONS", DAB_Select_BarOptions);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_LabelTab" inherits="DAB_BarTabButtonTemplate" id="5">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_ButtonAppearanceTab" relativePoint="RIGHT">
					<Offset><AbsDimension x="2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.Label, "DAB_BAR_OPTIONS", DAB_Select_BarOptions);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ScriptsTab" inherits="DAB_BarTabButtonTemplate" id="6">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_LabelTab" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-2"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_Init_TabButton(DAB_TEXT.Scripts, "DAB_BAR_OPTIONS", DAB_Select_BarOptions);
				</OnLoad>
			</Scripts>
		</CheckButton>
	</Frames>
	<Scripts>
		<OnLoad>
			this:EnableMouseWheel(1);
		</OnLoad>
		<OnMouseWheel>
			DAB_BarOptions_OnMouseWheel(arg1);
		</OnMouseWheel>
	</Scripts>
</Frame>

<Frame name="DAB_BarOptions_BarAppearance" hidden="false" parent="DAB_BarOptions" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT">
			<Offset><AbsDimension x="0" y="-70"/></Offset>
		</Anchor>
	</Anchors>
	<Frames>
		<CheckButton name="$parent_Hide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "hide";
					DL_Set_Label(DAB_TEXT.Hide);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideOnClick" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Hide" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "hideonclick";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.HideOnClick);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideEmpty" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideOnClick" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "hideEmpty";
					DL_Set_Label(DAB_TEXT.HideEmpty);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_DisableTooltips" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideEmpty" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "disableTooltips";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.DisableTooltip);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_Collapse" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_DisableTooltips" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "collapse";
					DL_Set_Label(DAB_TEXT.CollapseHidden);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_CooldownCount" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="190" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "cooldownCount";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.ShowCooldownCount);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideGlobalCooldown" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CooldownCount" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="20" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "hideGlobalCD";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.HideGlobalCooldownCount);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_AutoAttack" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CooldownCount" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-19"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "autoAttack";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.AutoAttack);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_PetAutoAttack" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_AutoAttack" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "petAutoAttack";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.PetAutoAttack);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_LockButtons" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_PetAutoAttack" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "buttonsLocked";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.LockButtons);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_DisableMousewheel" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_LockButtons" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "disableMW";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.DisableMousewheel);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_SkipPages" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="120" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "skipPages";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.SkipPages);
					DL_Set_Anchor("_DisableMousewheel", 0, 0);
				</OnLoad>
			</Scripts>
		</EditBox>

		<Slider name="$parent_Size" inherits="DAB_SliderTemplate" minValue="1" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Collapse" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "size";
					this.minlock = true;
					this.settingType = "ButtonSize";
					DL_Set_Label(DAB_TEXT.ButtonSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Alpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Size" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "alpha";
					this.settingType = "ButtonAlpha";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.ButtonAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Rows" inherits="DAB_SliderTemplate" minValue="1" maxValue="12"  valueStep="1">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Alpha" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "rows";
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.Rows);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_HSpacing" inherits="DAB_SliderTemplate" minValue="-20" maxValue="100"  valueStep=".5">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Alpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "hspacing";
					DL_Set_Label(DAB_TEXT.SpacingH);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_VSpacing" inherits="DAB_SliderTemplate" minValue="-20" maxValue="100"  valueStep=".5">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_HSpacing" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "vspacing";
					DL_Set_Label(DAB_TEXT.SpacingV);
				</OnLoad>
			</Scripts>
		</Slider>
		
		<Frame name="$parent_AnchorFrame" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_ANCHOR_FRAMES";
					this.editFunc = DAB_AnchorFrameEditBox_OnEnterPressed;
					this.index = "Anchor";
					this.subindex = "frame";
					this.settingType = "Location";
					DL_Set_Label(DAB_TEXT.AnchorFrame);
					DL_Set_Anchor("_HSpacing", 2, -10);
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_AnchorPoint" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_ANCHORS";
					this.index = "Anchor";
					this.subindex = "point";
					this.settingType = "Location";
					DL_Set_Label(DAB_TEXT.AnchorPoint);
					DL_Set_Anchor("_HSpacing", 0, -32);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorTo" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_ANCHORS";
					this.index = "Anchor";
					this.subindex = "to";
					this.settingType = "Location";
					DL_Set_Label(DAB_TEXT.AnchorTo);
					DL_Set_Anchor("_HSpacing", 0, -54);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeUp" inherits="DAB_NudgeTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="299" y="-230"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_NudgeButton_OnLoad();
					this.updateFrame = "DAB_BarOptions_BarAppearance_YOffset";
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeDown" inherits="DAB_NudgeTemplate" id="2">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_NudgeUp" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_NudgeButton_OnLoad();
					this.updateFrame = "DAB_BarOptions_BarAppearance_YOffset";
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeLeft" inherits="DAB_NudgeTemplate" id="3">
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_NudgeUp" relativePoint="LEFT">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_NudgeButton_OnLoad();
					this.updateFrame = "DAB_BarOptions_BarAppearance_XOffset";
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeRight" inherits="DAB_NudgeTemplate" id="4">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_NudgeUp" relativePoint="RIGHT">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					DL_NudgeButton_OnLoad();
					this.updateFrame = "DAB_BarOptions_BarAppearance_XOffset";
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_XOffset" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="70" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_NudgeDown" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-5"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Anchor";
					this.subindex = "x";
					this.number = true;
					this.settingType = "Location";
					DL_Set_Label("X:");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_YOffset" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="70" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Anchor";
					this.subindex = "y";
					this.number = true;
					DL_Set_Label("Y:");
					this.settingType = "Location";
					DL_Set_Anchor("_NudgeDown", 0, -5, "TOPLEFT", "BOTTOM");
				</OnLoad>
			</Scripts>
		</EditBox>

		<Button name="$parent_PresetBackdrops" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_BACKDROPS";
					this.initFunc = DAB_Load_PresetBackdrop;
					DL_Set_Label(DAB_TEXT.PresetBackdrops);
					DL_Set_Anchor("", 225, -300, "TOPLEFT", "TOPLEFT", 1);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_HideBackdrop" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-320"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "hide";
					this.settingType = "Backdrop";
					DL_Set_Label(DAB_TEXT.HideBackdrop);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_BGColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideBackdrop" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background"
					this.subindex = "color";
					this.settingType = "BGColor";
					DL_Set_Label(DAB_TEXT.BackgroundColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BGColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background"
					this.subindex = "bcolor";
					this.settingType = "BorderColor";
					DL_Set_Label(DAB_TEXT.BorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_BGAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "alpha";
					this.settingType = "BGAlpha";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.BackgroundAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BorderAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BGAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "balpha";
					this.settingType = "BorderAlpha";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.BorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Frame name="$parent_BGTexture" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="225" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "Background";
					this.subindex = "texture";
					this.settingType = "Backdrop";
					DL_Set_Label(DAB_TEXT.BackgroundTexture);
					DL_Set_Anchor("_BorderAlpha", 0, -5);
				</OnLoad>
			</Scripts>
		</Frame>
		<Frame name="$parent_BorderTexture" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="225" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "Background";
					this.subindex = "btexture";
					this.settingType = "Backdrop";
					DL_Set_Label(DAB_TEXT.BorderTexture);
					DL_Set_Anchor("_BorderAlpha", 0, -28);
				</OnLoad>
			</Scripts>
		</Frame>
		<CheckButton name="$parent_TileOpt" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_HideBackdrop" relativePoint="RIGHT">
					<Offset><AbsDimension x="160" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "tile";
					this.settingType = "Backdrop";
					DL_Set_Label(DAB_TEXT.Tile);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_TileSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "tileSize";
					this.number = true;
					DL_Set_Label(DAB_TEXT.TileSize);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileOpt", 0, 0);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_EdgeSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "edgeSize";
					this.number = true;
					DL_Set_Label(DAB_TEXT.EdgeSize);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileSize", 0, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetLeft" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "left";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Left);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileOpt", 2, -33);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetRight" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "right";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Right);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileOpt", 1, -52);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetTop" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "top";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Top);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileOpt", 100, -33);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetBottom" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "bottom";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Bottom);
					this.settingType = "Backdrop";
					DL_Set_Anchor("_TileOpt", 100, -52);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadLeft" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "leftpadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Left);
					this.settingType = "BackdropPadding";
					DL_Set_Anchor("_TileOpt", 2, -87);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadRight" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "rightpadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Right);
					this.settingType = "BackdropPadding";
					DL_Set_Anchor("_TileOpt", 1, -106);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadTop" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "toppadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Top);
					this.settingType = "BackdropPadding";
					DL_Set_Anchor("_TileOpt", 100, -87);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadBottom" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Background";
					this.subindex = "bottompadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Bottom);
					this.settingType = "BackdropPadding";
					DL_Set_Anchor("_TileOpt", 100, -106);
				</OnLoad>
			</Scripts>
		</EditBox>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_InsetsLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="186" y="-367"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_PaddingLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="186" y="-418"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_BarOptions_ButtonAppearance" hidden="true" parent="DAB_BarOptions" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT">
			<Offset><AbsDimension x="0" y="-70"/></Offset>
		</Anchor>
	</Anchors>
	<Frames>
		<CheckButton name="$parent_DisableMouse" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "disableMouse";
					DL_Set_Label(DAB_TEXT.DisableMouseOnBar);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ExpandHidden" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_DisableMouse" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "expandHidden";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.ExpandHidden);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Frame name="$parent_CBGroup" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="50" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_GROUPS";
					this.editFunc = DAB_GroupEditBox_OnEnterPressed;
					this.index = "cbgroup";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.ControlBoxGroup);
					DL_Set_Anchor("", 0, -35);
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_RightClick" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="50" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_NUMBERS";
					this.index = "rightClick";
					this.addoptions = { {text="No Action", value=-1}, {text="Self-cast", value=-2} };
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.RightClickBar);
					DL_Set_Anchor("", 0, -60);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_MiddleClick" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="50" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_NUMBERS";
					this.index = "middleClick";
					this.addoptions = { {text="No Action", value=-1}, {text="Self-cast", value=-2} };
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.MiddleClickBar);
					DL_Set_Anchor("", 170, -60);
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_Target" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "target";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.DefaultTarget);
					DL_Set_Anchor("", 0, -85);
				</OnLoad>
			</Scripts>
		</Frame>
		<CheckButton name="$parent_ForceTarget" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Target" relativePoint="RIGHT">
					<Offset><AbsDimension x="20" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "forceTarget";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Force);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_FrameStrata" 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 = "DL_FRAMESTRATAS";
					this.index = "frameStrata";
					DL_Set_Label(DAB_TEXT.FrameStrata);
					DL_Set_Anchor("", 0, -110);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_RangeColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-155"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "rangecolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.OutOfRange);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_RangeRecolor" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_RECOLOR";
					this.index = "rangerecolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Recolor);
					DL_Set_Anchor("_RangeColor", 150, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ManaColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_RangeColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "manacolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.NotEnoughMana);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ManaRecolor" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_RECOLOR";
					this.index = "manarecolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Recolor);
					DL_Set_Anchor("_ManaColor", 150, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_UnusableColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ManaColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "unusablecolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.ActionUnusable);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_UnusableRecolor" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_RECOLOR";
					this.index = "unusablerecolor";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Recolor);
					DL_Set_Anchor("_UnusableColor", 150, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_TrimEdges" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-235"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "trimEdges";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.TrimEdges);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_ButtonBGColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TrimEdges" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="3"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "buttonbgcolor"
					this.settingType = "ButtonTextures";
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_ButtonBG" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "buttonbg";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.ButtonBackground);
					DL_Set_Anchor("_ButtonBGColor", 3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_CheckedColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonBGColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "checkedcolor"
					this.settingType = "ButtonTextures";
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_Checked" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "checked";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.Checked);
					DL_Set_Anchor("_CheckedColor", 3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_HighlightColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CheckedColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "highlightcolor"
					this.settingType = "ButtonTextures";
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_Highlight" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "highlight";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.Highlight);
					DL_Set_Anchor("_HighlightColor", 3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_EquippedColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HighlightColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "ecolor";
					this.settingType = "ButtonTextures";
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_Equipped" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "ButtonBorder";
					this.subindex = "etexture";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.Equipped);
					DL_Set_Anchor("_EquippedColor", 3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_EquippedColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "color";
					this.settingType = "ButtonTextures";
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_Border" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "ButtonBorder";
					this.subindex = "texture";
					this.settingType = "ButtonTextures";
					DL_Set_Label(DAB_TEXT.Border);
					DL_Set_Anchor("_BorderColor", 3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Slider name="$parent_BorderAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TrimEdges" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-125"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "alpha";
					this.settingType = "ButtonTextures";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.ButtonBorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<EditBox name="$parent_PadLeft" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "leftpadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Left);
					this.settingType = "ButtonTextures";
					DL_Set_Anchor("_BorderAlpha", 70, 0, "TOPLEFT", "TOPRIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadRight" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "rightpadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Right);
					this.settingType = "ButtonTextures";
					DL_Set_Anchor("_BorderAlpha", 70, -23, "TOPLEFT", "TOPRIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadTop" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "toppadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Top);
					this.settingType = "ButtonTextures";
					DL_Set_Anchor("_BorderAlpha", 165, 0, "TOPLEFT", "TOPRIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_PadBottom" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "ButtonBorder";
					this.subindex = "bottompadding";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Bottom);
					this.settingType = "ButtonTextures";
					DL_Set_Anchor("_BorderAlpha", 165, -23, "TOPLEFT", "TOPRIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<CheckButton name="$parent_KBHide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-25"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Keybinding";
					this.subindex = "hide";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_KBColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_KBHide" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Keybinding";
					this.subindex = "color";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_KBSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="40" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_KBColor" relativePoint="RIGHT">
					<Offset><AbsDimension x="3" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Keybinding";
					this.subindex = "size";
					this.number = true;
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_KBFont" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="150" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_FONTS_LIST";
					this.editFunc = DAB_FontEditBox_OnEnterPressed;
					this.index = "Keybinding";
					this.subindex = "font";
					this.settingType = "ButtonText";
					DL_Set_Label(DAB_TEXT.Keybinding);
					DL_Set_Anchor("_KBSize", -3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_CCColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_KBColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Cooldown";
					this.subindex = "color";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_CCHide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="RIGHT" relativeTo="$parent_CCColor" relativePoint="LEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Cooldown";
					this.subindex = "hide";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_CCSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="40" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CCColor" relativePoint="RIGHT">
					<Offset><AbsDimension x="3" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Cooldown";
					this.subindex = "size";
					this.number = true;
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_CCFont" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="150" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_FONTS_LIST";
					this.editFunc = DAB_FontEditBox_OnEnterPressed;
					this.index = "Cooldown";
					this.subindex = "font";
					this.settingType = "ButtonText";
					DL_Set_Label(DAB_TEXT.CooldownCount);
					DL_Set_Anchor("_CCSize", -3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_CntColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CCColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Count";
					this.subindex = "color";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_CntHide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="RIGHT" relativeTo="$parent_CntColor" relativePoint="LEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Count";
					this.subindex = "hide";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_CntSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="40" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CntColor" relativePoint="RIGHT">
					<Offset><AbsDimension x="3" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Count";
					this.subindex = "size";
					this.number = true;
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_CntFont" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="150" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_FONTS_LIST";
					this.editFunc = DAB_FontEditBox_OnEnterPressed;
					this.index = "Count";
					this.subindex = "font";
					this.settingType = "ButtonText";
					DL_Set_Label(DAB_TEXT.Count);
					DL_Set_Anchor("_CntSize", -3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
		<Button name="$parent_MNColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CntColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Macro";
					this.subindex = "color";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_MNHide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="RIGHT" relativeTo="$parent_MNColor" relativePoint="LEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Macro";
					this.subindex = "hide";
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_MNSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="40" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_MNColor" relativePoint="RIGHT">
					<Offset><AbsDimension x="3" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Macro";
					this.subindex = "size";
					this.number = true;
					this.settingType = "ButtonText";
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_MNFont" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="150" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_FONTS_LIST";
					this.editFunc = DAB_FontEditBox_OnEnterPressed;
					this.index = "Macro";
					this.subindex = "font";
					this.settingType = "ButtonText";
					DL_Set_Label(DAB_TEXT.MacroName);
					DL_Set_Anchor("_MNSize", -3, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Frame>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_PaddingLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="199" y="-372"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_TextLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-417"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_ColorLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-142"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_TextureLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-225"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_BarOptions_BarControl" hidden="true" parent="DAB_BarOptions" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT">
			<Offset><AbsDimension x="0" y="-70"/></Offset>
		</Anchor>
	</Anchors>
	<Frames>
		<ScrollFrame name="$parent_ConditionMenu" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="370" y="210"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.Conditions);
					this.responsemenu = "DAB_BAR_RESPONSES";
				</OnLoad>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(40, DAB_ConditionMenu_Update);
				</OnVerticalScroll>
			</Scripts>
		</ScrollFrame>
		<CheckButton name="$parent_ConditionMenu_Button1" inherits="DAB_ConditionButtonTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</CheckButton>
		<CheckButton name="$parent_ConditionMenu_Button2" inherits="DAB_ConditionButtonTemplate" id="2"/>
		<CheckButton name="$parent_ConditionMenu_Button3" inherits="DAB_ConditionButtonTemplate" id="3"/>
		<CheckButton name="$parent_ConditionMenu_Button4" inherits="DAB_ConditionButtonTemplate" id="4"/>
		<CheckButton name="$parent_ConditionMenu_Button5" inherits="DAB_ConditionButtonTemplate" id="5"/>

		<Button inherits="DAB_MainMenuButton" text="DL_COPYTEXT" frameStrata="DIALOG">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="TOPLEFT">
					<Offset><AbsDimension x="0" y="26"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Copy_ControlSettings();
				</OnClick>
			</Scripts>
		</Button>
		<Button inherits="DAB_MainMenuButton" text="DL_PASTETEXT" frameStrata="DIALOG">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_ConditionMenu" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="27" y="26"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Paste_ControlSettings();
				</OnClick>
			</Scripts>
		</Button>

		<Button name="$parent_Condition" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_CONDITIONS_MENU";
					this.initFunc = DAB_Select_Condition;
					DL_Set_Label(DAB_TEXT.ChooseCondition);
					DL_Set_Anchor("_ConditionMenu", 0, -10);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ActionID" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_ACTIONS";
					this.index = "CONDITION";
					this.subindex = "action";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Action);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_IgnoreGlobal" inherits="DAB_CheckBoxTemplate" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-77"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "ignoreGlobal";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.IgnoreGlobal);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Frame name="$parent_Unit" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "unit";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Frame>
		<Frame name="$parent_Unit2" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "unit2";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</Frame>
		<EditBox name="$parent_Buff" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "buff";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.BuffName);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_Text" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "text";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Text);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_Comparison" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="50" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_COMPARE_MENU";
					this.index = "CONDITION";
					this.subindex = "compare";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Comparison);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_Number" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "number";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Number);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_Forms" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_FORMS";
					this.index = "CONDITION";
					this.subindex = "form";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Form);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Targets" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_TARGET_PARAMS";
					this.index = "CONDITION";
					this.subindex = "target";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Type);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Bars" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_NUMBERS";
					this.index = "CONDITION";
					this.subindex = "bar";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Bar);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>

		<Button name="$parent_Response" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_BAR_RESPONSES";
					this.initFunc = DAB_Select_Response;
					DL_Set_Label(DAB_TEXT.ChooseResponse);
					DL_Set_Anchor("_ConditionMenu", 0, -130);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Page" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="60" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_BAR_PAGES";
					this.index = "CONDITION";
					this.subindex = "page";
					DL_Set_Label(DAB_TEXT.Page);
					DL_Set_Anchor("_ConditionMenu", 0, -170);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Page2" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="60" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_BAR_PAGES";
					this.index = "CONDITION";
					this.subindex = "page2";
					DL_Set_Label(DAB_TEXT.Page2);
					DL_Set_Anchor("_ConditionMenu", 0, -195);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_Alpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-190"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "alpha";
					this.settingType = 0;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.Alpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Amount" inherits="DAB_SliderTemplate" minValue="1" maxValue="100"  valueStep="1" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-190"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "amount";
					this.settingType = 0;
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.Amount);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_Color" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-170"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION"
					this.subindex = "color";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Color);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_ResponseText" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "rtext";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Text);
					DL_Set_Anchor("_ConditionMenu", 0, -195);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_ResponseNumber" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "rnumber";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Number);
					DL_Set_Anchor("_ConditionMenu", 0, -170);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_ResponseActionID" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_ACTIONS";
					this.index = "CONDITION";
					this.subindex = "raction";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Action);
					DL_Set_Anchor("_ConditionMenu", 0, -160);
				</OnLoad>
			</Scripts>
		</Button>
		<Frame name="$parent_ResponseUnit" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "runit";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -185);
				</OnLoad>
			</Scripts>
		</Frame>
		<EditBox name="$parent_ResponseX" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "rx";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label("X:");
					DL_Set_Anchor("_ConditionMenu", 0, -170);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_ResponseY" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "ry";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label("Y:");
					DL_Set_Anchor("_ConditionMenu", 0, -195);
				</OnLoad>
			</Scripts>
		</EditBox>

		<EditBox name="$parent_Overrides" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="230" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "overrides";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Overrides);
					DL_Set_Anchor("_ConditionMenu", 0, -225);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_AddCondition" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="DAB_BarOptions" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.AddCondition);
				</OnLoad>
				<OnClick>
					DAB_Add_Condition();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_ParamLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-270"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_ResponseLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-389"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="DAB_BarOptions_Label" hidden="true" parent="DAB_BarOptions" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT">
			<Offset><AbsDimension x="0" y="-70"/></Offset>
		</Anchor>
	</Anchors>
	<Frames>
		<EditBox name="$parent_Text" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="230" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "text";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.Text);
					DL_Set_Anchor("", 0, 0, "TOPLEFT", "TOPLEFT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_Font" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="230" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_FONTS_LIST";
					this.editFunc = DAB_FontEditBox_OnEnterPressed;
					this.index = "Label";
					this.subindex = "font";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.Font);
					DL_Set_Anchor("", 0, -25, "TOPLEFT", "TOPLEFT");
				</OnLoad>
			</Scripts>
		</Frame>
		<CheckButton name="$parent_Hide" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-50"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "hide";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.Hide);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_Color" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Hide" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label"
					this.subindex = "color";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.Color);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_JustifyH" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_JUSTIFY_H";
					this.index = "Label";
					this.subindex = "justifyH";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.JustifyH);
					DL_Set_Anchor("_Hide", 100, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_JustifyV" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_JUSTIFY_V";
					this.index = "Label";
					this.subindex = "justifyV";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.JustifyV);
					DL_Set_Anchor("_Color", 100, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_Height" inherits="DAB_SliderTemplate" minValue="1" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Color" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "height";
					this.settingType = "Label";
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.Height);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Width" inherits="DAB_SliderTemplate" minValue="1" maxValue="300"  valueStep="1">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Height" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "width";
					this.settingType = "Label";
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.Width);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Alpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Height" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-25"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "alpha";
					this.settingType = "Label";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.Alpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_FontSize" inherits="DAB_SliderTemplate" minValue="1" maxValue="30"  valueStep=".5">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Alpha" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "fontsize";
					this.settingType = "Label";
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.FontSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_AnchorPoint" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_ANCHORS";
					this.index = "Label";
					this.subindex = "attachpoint";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.AnchorPoint);
					DL_Set_Anchor("_Alpha", 0, -25);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorTo" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_ANCHORS";
					this.index = "Label";
					this.subindex = "attachto";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.AnchorTo);
					DL_Set_Anchor("_Alpha", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_XOffset" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="70" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "x";
					this.number = true;
					this.settingType = "Label";
					DL_Set_Label("X:");
					DL_Set_Anchor("_Alpha", 230, -23);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_YOffset" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="70" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "y";
					this.number = true;
					DL_Set_Label("Y:");
					this.settingType = "Label";
					DL_Set_Anchor("_Alpha", 230, -47);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_PresetBackdrops" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_BACKDROPS";
					this.initFunc = DAB_Load_PresetBackdrop;
					DL_Set_Label(DAB_TEXT.PresetBackdrops);
					DL_Set_Anchor("", 225, -265, "TOPLEFT", "TOPLEFT", 1);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BGColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-290"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label"
					this.subindex = "bgcolor";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.BackgroundColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BGColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label"
					this.subindex = "bordcolor";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.BorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_BGAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "bgalpha";
					this.settingType = "Label";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.BackgroundAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BorderAlpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BGAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "bordalpha";
					this.settingType = "Label";
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.BorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Frame name="$parent_BGTexture" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="225" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "Label";
					this.subindex = "texture";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.BackgroundTexture);
					DL_Set_Anchor("_BorderAlpha", 0, -5);
				</OnLoad>
			</Scripts>
		</Frame>
		<Frame name="$parent_BorderTexture" inherits="DiscordLib_EditMenuControlTemplate">
			<Size><AbsDimension x="225" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_TEXTURES_LIST";
					this.editFunc = DAB_TextureEditBox_OnEnterPressed;
					this.index = "Label";
					this.subindex = "btexture";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.BorderTexture);
					DL_Set_Anchor("_BorderAlpha", 0, -28);
				</OnLoad>
			</Scripts>
		</Frame>
		<CheckButton name="$parent_TileOpt" inherits="DAB_CheckBoxTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_BGColor" relativePoint="RIGHT">
					<Offset><AbsDimension x="160" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "tile";
					this.settingType = "Label";
					DL_Set_Label(DAB_TEXT.Tile);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_TileSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "tileSize";
					this.number = true;
					DL_Set_Label(DAB_TEXT.TileSize);
					this.settingType = "Label";
					DL_Set_Anchor("_TileOpt", 0, 0);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_EdgeSize" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "edgeSize";
					this.number = true;
					DL_Set_Label(DAB_TEXT.EdgeSize);
					this.settingType = "Label";
					DL_Set_Anchor("_TileSize", 0, 0, "LEFT", "RIGHT");
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetLeft" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "left";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Left);
					this.settingType = "Label";
					DL_Set_Anchor("_TileOpt", 2, -33);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetRight" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "right";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Right);
					this.settingType = "Label";
					DL_Set_Anchor("_TileOpt", 1, -52);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetTop" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "top";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Top);
					this.settingType = "Label";
					DL_Set_Anchor("_TileOpt", 100, -33);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_InsetBottom" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "Label";
					this.subindex = "bottom";
					this.number = true;
					DL_Set_Label(DAB_TEXT.Bottom);
					this.settingType = "Label";
					DL_Set_Anchor("_TileOpt", 100, -52);
				</OnLoad>
			</Scripts>
		</EditBox>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_InsetsLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="186" y="-337"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<CheckButton name="DAB_BarButtonTemplate" virtual="true">
	<Size><AbsDimension x="360" y="20"/></Size>
	<HighlightTexture name = "$parentHighlight" alphaMode="ADD" file="Interface\QuestFrame\UI-QuestTitleHighlight"/>
	<CheckedTexture name = "$parentChecked" alphaMode="ADD" file="Interface\AddOns\DiscordLibrary\PlainBackdrop"/>
	<Layers>
		<Layer level="OVERLAY">
			<Texture name="$parent_Icon">
				<Size><AbsDimension x="20" y="20"/></Size>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
			</Texture>
			<FontString name="$parent_Button" font="Fonts\ARIALN.TTF" justifyH="LEFT" justifyV="CENTER">
				<Size><AbsDimension x="75" y="20"/></Size>
				<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="LEFT">
						<Offset><AbsDimension x="20" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_ActionID" font="Fonts\ARIALN.TTF" justifyH="LEFT" justifyV="CENTER">
				<Size><AbsDimension x="75" y="20"/></Size>
				<Color r="0" g="1" b="0"/>
				<FontHeight>
					<AbsValue val="12"/>
				</FontHeight>
				<Shadow>
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
					<Color r="0" g="0" b="0"/>
				</Shadow>
				<Anchors>
					<Anchor point="LEFT">
						<Offset><AbsDimension x="95" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_Action" font="Fonts\ARIALN.TTF" justifyH="LEFT" justifyV="CENTER">
				<Size><AbsDimension x="190" y="20"/></Size>
				<Color r="1" g=".2" b=".2"/>
				<FontHeight>
					<AbsValue val="12"/>
				</FontHeight>
				<Shadow>
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
					<Color r="0" g="0" b="0"/>
				</Shadow>
				<Anchors>
					<Anchor point="LEFT">
						<Offset><AbsDimension x="170" y="0"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</CheckButton>

<Frame name="DAB_BarOptions_ButtonControl" hidden="true" parent="DAB_BarOptions" frameStrata="MEDIUM">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT">
			<Offset><AbsDimension x="0" y="-70"/></Offset>
		</Anchor>
	</Anchors>
	<Frames>
		<ScrollFrame name="$parent_ButtonsMenu" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="370" y="90"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-25"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.ChooseAction);
				</OnLoad>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(20, DAB_BarButtonsMenu_Update);
				</OnVerticalScroll>
			</Scripts>
		</ScrollFrame>
		<CheckButton name="$parent_ButtonsMenu_Button1" inherits="DAB_BarButtonTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonsMenu">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</CheckButton>
		<CheckButton name="$parent_ButtonsMenu_Button2" inherits="DAB_BarButtonTemplate" id="2"/>
		<CheckButton name="$parent_ButtonsMenu_Button3" inherits="DAB_BarButtonTemplate" id="3"/>
		<CheckButton name="$parent_ButtonsMenu_Button4" inherits="DAB_BarButtonTemplate" id="4"/>

		<ScrollFrame name="$parent_ConditionMenu" inherits="DL_ScrollFrameTemplate">
			<Size><AbsDimension x="370" y="90"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-150"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					getglobal(this:GetName().."_OuterBorder_Header"):SetText(DAB_TEXT.Conditions);
					this.responsemenu = "DAB_BUTTONBAR_RESPONSES";
				</OnLoad>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(40, DAB_ConditionMenu_Update);
				</OnVerticalScroll>
			</Scripts>
		</ScrollFrame>
		<CheckButton name="$parent_ConditionMenu_Button1" inherits="DAB_ConditionButtonTemplate" id="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu">
					<Offset><AbsDimension x="5" y="-5"/></Offset>
				</Anchor>
			</Anchors>
		</CheckButton>
		<CheckButton name="$parent_ConditionMenu_Button2" inherits="DAB_ConditionButtonTemplate" id="2">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_ConditionMenu_Button1" relativePoint="BOTTOM"/>
			</Anchors>
		</CheckButton>

		<Button inherits="DAB_MainMenuButton" text="DL_COPYTEXT" frameStrata="DIALOG">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="TOPLEFT">
					<Offset><AbsDimension x="0" y="26"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Copy_ControlSettings();
				</OnClick>
			</Scripts>
		</Button>
		<Button inherits="DAB_MainMenuButton" text="DL_PASTETEXT" frameStrata="DIALOG">
			<Size><AbsDimension x="100" y="22"/></Size>
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_ConditionMenu" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="27" y="26"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					DAB_Paste_ControlSettings();
				</OnClick>
			</Scripts>
		</Button>

		<Button name="$parent_Condition" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_CONDITIONS_MENU";
					this.initFunc = DAB_Select_Condition;
					DL_Set_Label(DAB_TEXT.ChooseCondition);
					DL_Set_Anchor("_ConditionMenu", 0, -10);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ActionID" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_ACTIONS";
					this.index = "CONDITION";
					this.subindex = "action";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Action);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Bars" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DAB_NUMBERS";
					this.index = "CONDITION";
					this.subindex = "bar";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Bar);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_IgnoreGlobal" inherits="DAB_CheckBoxTemplate" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-77"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "ignoreGlobal";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.IgnoreGlobal);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Frame name="$parent_Unit" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "unit";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Frame>
		<Frame name="$parent_Unit2" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "unit2";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</Frame>
		<EditBox name="$parent_Buff" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "buff";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.BuffName);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_Text" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "text";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Text);
					DL_Set_Anchor("_ConditionMenu", 0, -75);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_Comparison" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="50" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_COMPARE_MENU";
					this.index = "CONDITION";
					this.subindex = "compare";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Comparison);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_Number" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "number";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Number);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_Forms" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_FORMS";
					this.index = "CONDITION";
					this.subindex = "form";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Form);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Targets" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_DropMenu";
					this.table = "DL_TARGET_PARAMS";
					this.index = "CONDITION";
					this.subindex = "target";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Type);
					DL_Set_Anchor("_ConditionMenu", 0, -50);
				</OnLoad>
			</Scripts>
		</Button>

		<Button name="$parent_Response" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_BUTTONBAR_RESPONSES";
					this.initFunc = DAB_Select_Response;
					DL_Set_Label(DAB_TEXT.ChooseResponse);
					DL_Set_Anchor("_ConditionMenu", 0, -130);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_ResponseActionID" inherits="DiscordLib_MenuControlTemplate" hidden="true">
			<Size><AbsDimension x="200" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_ACTIONS";
					this.index = "CONDITION";
					this.subindex = "raction";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Action);
					DL_Set_Anchor("_ConditionMenu", 0, -160);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Page" inherits="DiscordLib_MenuControlTemplate">
			<Size><AbsDimension x="60" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DAB_BAR_PAGES";
					this.index = "CONDITION";
					this.subindex = "page";
					DL_Set_Label(DAB_TEXT.Page);
					DL_Set_Anchor("_ConditionMenu", 0, -170);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_Alpha" inherits="DAB_SliderTemplate" minValue="0" maxValue="100"  valueStep="1" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-190"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "alpha";
					this.settingType = 0;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DL_Set_Label(DAB_TEXT.Alpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Amount" inherits="DAB_SliderTemplate" minValue="1" maxValue="100"  valueStep="1" hidden="true">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-190"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "amount";
					this.settingType = 0;
					this.minlock = true;
					DL_Set_Label(DAB_TEXT.Amount);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_Color" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ConditionMenu" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-170"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION"
					this.subindex = "color";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Color);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_ResponseText" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="200" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "rtext";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Text);
					DL_Set_Anchor("_ConditionMenu", 0, -195);
				</OnLoad>
			</Scripts>
		</EditBox>
		<EditBox name="$parent_ResponseNumber" inherits="DAB_EditBoxTemplate" hidden="true">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "rnumber";
					this.number = true;
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Number);
					DL_Set_Anchor("_ConditionMenu", 0, -170);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Frame name="$parent_ResponseUnit" inherits="DiscordLib_EditMenuControlTemplate" hidden="true">
			<Size><AbsDimension x="125" y="22"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "DAB_ScrollMenu";
					this.table = "DL_UNITS_LIST";
					this.editFunc = DAB_UnitEditBox_OnEnterPressed;
					this.index = "CONDITION";
					this.subindex = "runit";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Unit);
					DL_Set_Anchor("_ConditionMenu", 0, -185);
				</OnLoad>
			</Scripts>
		</Frame>

		<EditBox name="$parent_Overrides" inherits="DAB_EditBoxTemplate">
			<Size><AbsDimension x="230" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this.index = "CONDITION";
					this.subindex = "overrides";
					this.settingType = 0;
					DL_Set_Label(DAB_TEXT.Overrides);
					DL_Set_Anchor("_ConditionMenu", 0, -225);
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_AddCondition" inherits="DAB_MainMenuButton">
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="DAB_BarOptions" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.AddCondition);
				</OnLoad>
				<OnClick>
					DAB_Add_Condition();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parent_ParamLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-270"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parent_ResponseLabel" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset><AbsDimension x="0" y="-389"/></Offset>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Frame>

</Ui>