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

<Frame name="DAB_BarOptionsHeader" parent="DAB_Options" inherits="DAB_TooltipBGTemplate" hidden="false">
	<Size><AbsDimension x="397" y="605"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_OptionsTitle" relativePoint="BOTTOMLEFT"/>
	</Anchors>
	<Frames>
		<Button name="$parent_BarButton" inherits="DAB_ButtonTemplate2">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="10" y="-10"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Bar);
					this:Disable();
				</OnLoad>
				<OnClick>
					DAB_BarOptions:Show();
					DAB_BackgroundOptions:Hide();
					DAB_ControlBoxOptions:Hide();
					DAB_LabelOptions:Hide();
					DAB_BarOptionsHeader_BarButton:Disable();
					DAB_BarOptionsHeader_BackgroundButton:Enable();
					DAB_BarOptionsHeader_ControlBoxButton:Enable();
					DAB_BarOptionsHeader_LabelButton:Enable();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_BackgroundButton" inherits="DAB_ButtonTemplate2">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_BarButton" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Background);
				</OnLoad>
				<OnClick>
					DAB_BarOptions:Hide();
					DAB_BackgroundOptions:Show();
					DAB_ControlBoxOptions:Hide();
					DAB_LabelOptions:Hide();
					DAB_BarOptionsHeader_BarButton:Enable();
					DAB_BarOptionsHeader_BackgroundButton:Disable();
					DAB_BarOptionsHeader_ControlBoxButton:Enable();
					DAB_BarOptionsHeader_LabelButton:Enable();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_ControlBoxButton" inherits="DAB_ButtonTemplate2">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_BackgroundButton" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.ControlBox);
				</OnLoad>
				<OnClick>
					DAB_BarOptions:Hide();
					DAB_BackgroundOptions:Hide();
					DAB_ControlBoxOptions:Show();
					DAB_LabelOptions:Hide();
					DAB_BarOptionsHeader_BarButton:Enable();
					DAB_BarOptionsHeader_BackgroundButton:Enable();
					DAB_BarOptionsHeader_ControlBoxButton:Disable();
					DAB_BarOptionsHeader_LabelButton:Enable();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_LabelButton" inherits="DAB_ButtonTemplate2">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_ControlBoxButton" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Label);
				</OnLoad>
				<OnClick>
					DAB_BarOptions:Hide();
					DAB_BackgroundOptions:Hide();
					DAB_ControlBoxOptions:Hide();
					DAB_LabelOptions:Show();
					DAB_BarOptionsHeader_BarButton:Enable();
					DAB_BarOptionsHeader_BackgroundButton:Enable();
					DAB_BarOptionsHeader_ControlBoxButton:Enable();
					DAB_BarOptionsHeader_LabelButton:Disable();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
	<Scripts>
		<OnLoad>
			this:SetBackdropColor(.2, .2, .2);			
		</OnLoad>
	</Scripts>
</Frame>

<Frame name="DAB_BarOptions" parent="DAB_BarOptionsHeader" hidden="false">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_BarOptionsHeader_BarButton" relativePoint="BOTTOMLEFT"/>
	</Anchors>
	<Frames>
		<CheckButton name="$parent_Hide" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "hide";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.Hide);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideEmpty" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Hide" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "hideempty";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.HideEmpty);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_CollapseEmpty" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideEmpty" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "collapse";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.CollapseEmpty);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideOnClick" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_CollapseEmpty" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "hideonclick";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.HideOnClick);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_AutoAttack" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideOnClick" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "AutoAttack";
					DAB_Set_Label(DAB_TEXT.AutoAttack);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowInCombat" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_AutoAttack" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "incombat";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowInCombat);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowOutOfCombat" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowInCombat" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "notincombat";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowOutOfCombat);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowForFriendly" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowOutOfCombat" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "friendlytarget";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowForFriendly);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowForHostile" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowForFriendly" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "hostiletarget";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowForHostile);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_OneTrue" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowForHostile" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "onetrue";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.OneTrue);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowOnMouseover" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_OneTrue" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "mouseoverbar";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowOnBarMouseover);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowWhileKeyIsPressed" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowOnMouseover" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "showonkeypress";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowWhileKeyIsPressed);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_RightClickBar" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "bar";
					this.subindex = "rightclick";
					DAB_Set_Label(DAB_TEXT.RightClickBar);
					DAB_Set_Anchor("_ShowWhileKeyIsPressed", 0, 2);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_MiddleClickBar" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "bar";
					this.subindex = "middleclick";
					DAB_Set_Label(DAB_TEXT.MiddleClickBar);
					DAB_Set_Anchor("_ShowWhileKeyIsPressed", 200, 2);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_DefaultTarget" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false" id="1">
			<Size><AbsDimension x="100" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.DefaultTarget);
					DAB_Set_Anchor("_ShowWhileKeyIsPressed", 0, -28);
					this.index = "bar";
					this.subindex = "target";
				</OnLoad>
			</Scripts>
		</EditBox>
		<CheckButton name="$parent_ForceTarget" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_DefaultTarget" relativePoint="RIGHT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "ForceTarget";
					DAB_Set_Label(DAB_TEXT.Force);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Slider name="$parent_ButtonSize" inherits="DAB_BarSliderTemplate" minValue="10" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowWhileKeyIsPressed" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-64"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "size"
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.ButtonSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_ButtonAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_ButtonSize" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "alpha"
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.ButtonAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_ButtonHSpacing" inherits="DAB_BarSliderTemplate" minValue="-10" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonSize" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "spacingh"
					this.minlock = true;
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ButtonSpacingH);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_ButtonVSpacing" inherits="DAB_BarSliderTemplate" minValue="-10" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "spacingv";
					this.minlock = true;
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ButtonSpacingV);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_ButtonRows" inherits="DAB_BarSliderTemplate" minValue="1" maxValue="12"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonHSpacing" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "rows"
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					DAB_Set_Label(DAB_TEXT.ButtonRows);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_CCHeight" inherits="DAB_BarSliderTemplate" minValue="5" maxValue="20"  valueStep=".5">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonVSpacing" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "ccfontsize"
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.CCFontSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_AnchorFrame" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORFRAMES;
					this.index = "bar";
					this.subindex = "attachframe";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorFrame);
					DAB_Set_Anchor("_ButtonRows", 0, -10);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorPoint" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "attachpoint";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorPoint);
					DAB_Set_Anchor("_ButtonRows", 0, -35);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorTo" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "attachto";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorTo);
					DAB_Set_Anchor("_ButtonRows", 0, -62);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_XOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_AnchorFrame" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "attachoffsetx"
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetX);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_YOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_XOffset" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "attachoffsety"
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetY);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_Forms" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="150" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = "forms"
					this.index = "bar"
					this.subindex = "form";
					DAB_Set_Label(DAB_TEXT.ShapeshiftForm);
					DAB_Set_Anchor("_ButtonRows", 0, -90);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_FormMethod" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="150" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_FORMMETHODS;
					this.index = "bar";
					this.subindex = "formmethod";
					DAB_Set_Label(DAB_TEXT.WhenIShapeshift);
					DAB_Set_Anchor("_ButtonRows", 20, -110);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CopyBarSettings" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "CopyBar";
					DAB_Set_Label(DAB_TEXT.CopyBarSettings);
					DAB_Set_Anchor("_ButtonRows", 0, -135);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CopyButton" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CopyBarSettings" relativePoint="RIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Copy);
				</OnLoad>
				<OnClick>
					DAB_Copy_BarSettings();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeUp" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="330" y="-120"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText("^");
				</OnLoad>
				<OnClick>
					DAB_Nudge_Up("bar");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeDown" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_NudgeUp" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText("v");
				</OnLoad>
				<OnClick>
					DAB_Nudge_Down("bar");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeLeft" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_NudgeUp" relativePoint="LEFT">
					<Offset><AbsDimension x="2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_ARROW_LEFT);
				</OnLoad>
				<OnClick>
					DAB_Nudge_Left("bar");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeRight" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_NudgeUp" relativePoint="RIGHT">
					<Offset><AbsDimension x="-2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_ARROW_RIGHT);
				</OnLoad>
				<OnClick>
					DAB_Nudge_Right("bar");
				</OnClick>
			</Scripts>
		</Button>
		<Frame name="$parent_NudgeLabel">
			<Size><AbsDimension x="10" y="20"/></Size>
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="$parent_NudgeUp" relativePoint="TOP"/>
			</Anchors>
			<Layers>
				<Layer level="ARTWORK">
					<FontString name="$parent_Label" inherits="GameFontNormal" text="DAB_NUDGE">
						<Color r=".8" g=".8" b="0"/>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
		</Frame>
	</Frames>
</Frame>

<Frame name="DAB_BackgroundOptions" parent="DAB_BarOptionsHeader" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_BarOptionsHeader_BarButton" relativePoint="BOTTOMLEFT"/>
	</Anchors>
	<Frames>
		<Button name="$parent_Style" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BACKGROUNDSTYLES;
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "style";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BackgroundStyle);
					DAB_Set_Anchor("", 20, -10);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_Color" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="20" y="-45"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "color";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BackgroundColor);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_Texture" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false">
			<Size><AbsDimension x="130" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.BackgroundTexture);
					DAB_Set_Anchor("_Color", 0, -5);
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "texture";
					this.func = DAB_Bar_Initialize;
				</OnLoad>
			</Scripts>
		</EditBox>
		<Slider name="$parent_Alpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Color" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-40"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "alpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BackgroundAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Padding" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Alpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "padding";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BackgroundPadding);
				</OnLoad>
			</Scripts>
		</Slider>

		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Padding" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "bordercolor";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<EditBox name="$parent_BorderTexture" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false">
			<Size><AbsDimension x="130" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.BorderTexture);
					DAB_Set_Anchor("_BorderColor", 0, -5);
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "bordertexture";
					this.func = DAB_Bar_Initialize;
				</OnLoad>
			</Scripts>
		</EditBox>
		<Slider name="$parent_BorderAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-40"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "background";
					this.subindex2 = "borderalpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>

		<Button name="$parent_ButtonBorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "buttonbordercolor";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ButtonBorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_ButtonBorderAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonBorderColor" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-15"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "buttonborderalpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.ButtonBorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_ButtonBorderPadding" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ButtonBorderAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "buttonborderpadding";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ButtonBorderPadding);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_CopyBGSettings" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "CopyBar";
					DAB_Set_Label(DAB_TEXT.CopyBGSettings);
					DAB_Set_Anchor("_ButtonBorderPadding", 0, -30);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CopyButton" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CopyBGSettings" relativePoint="RIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Copy);
				</OnLoad>
				<OnClick>
					DAB_Copy_BackgroundSettings();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
</Frame>

<Frame name="DAB_ControlBoxOptions" parent="DAB_BarOptionsHeader" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_BarOptionsHeader_BarButton" relativePoint="BOTTOMLEFT"/>
	</Anchors>
	<Frames>
		<EditBox name="$parent_Text" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false">
			<Size><AbsDimension x="300" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.Text);
					DAB_Set_Anchor("", 0, -5);
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "text";
					this.func = DAB_ControlBox_Initialize;
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_TextColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "textcolor";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.TextColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BackgroundColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "bgcolor";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.BackgroundColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BackgroundColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "bordercolor";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.BorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_Hide" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "hide";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.Hide);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowBarOnClick" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Hide" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "baronclick";
					DAB_Set_Label(DAB_TEXT.ShowBarOnClick);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_HideOtherBars" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowBarOnClick" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "hideotherbars";
					DAB_Set_Label(DAB_TEXT.HideOtherBars);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowBarOnMouseover" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_HideOtherBars" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "mouseovershowbar";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowBarOnMouseover);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_RecolorOnMouseover" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowBarOnMouseover" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "recolor";
					DAB_Set_Label("");
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_MouseoverBGColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_RecolorOnMouseover" relativePoint="RIGHT">
					<Offset><AbsDimension x="5" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "mouseovercolor";
					DAB_Set_Label(DAB_TEXT.MouseoverBGColor);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_RecolorTextOnMouseover" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_RecolorOnMouseover" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "textrecolor";
					DAB_Set_Label("");
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Button name="$parent_MouseoverTextColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_RecolorTextOnMouseover" relativePoint="RIGHT">
					<Offset><AbsDimension x="5" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "textmouseovercolor";
					DAB_Set_Label(DAB_TEXT.MouseoverTextColor);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_ShowTopBorder" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_RecolorTextOnMouseover" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-5"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "top";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowTopBorder);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowBottomBorder" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowTopBorder" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "bottom";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowBottomBorder);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowLeftBorder" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowTopBorder" relativePoint="TOPLEFT">
					<Offset><AbsDimension x="200" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "left";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowLeftBorder);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<CheckButton name="$parent_ShowRightBorder" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowLeftBorder" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "right";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.ShowRightBorder);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<EditBox name="$parent_MacroOnClick" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false">
			<Size><AbsDimension x="150" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.MacroOnClick);
					DAB_Set_Anchor("_ShowBottomBorder", 0, -5);
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "macroonclick";
				</OnLoad>
			</Scripts>
		</EditBox>
		<Slider name="$parent_Height" inherits="DAB_BarSliderTemplate" minValue="10" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_ShowBottomBorder" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-40"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "height";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.Height);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_Width" inherits="DAB_BarSliderTemplate" minValue="10" maxValue="200"  valueStep="1">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_Height" relativePoint="RIGHT">
					<Offset><AbsDimension x="70" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "width";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.Width);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_TextAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Height" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "alpha";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.TextAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_TextSize" inherits="DAB_BarSliderTemplate" minValue="1" maxValue="20"  valueStep=".25">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Width" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "fontheight";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.TextSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BackgroundAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "bgalpha";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BackgroundAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BorderAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextSize" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox"
					this.subindex2 = "borderalpha";
					this.func = DAB_ControlBox_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_AnchorFrame" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORFRAMES;
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "attachframe";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorFrame);
					DAB_Set_Anchor("_BackgroundAlpha", 0, -20);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorPoint" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "attachpoint";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorPoint);
					DAB_Set_Anchor("_BackgroundAlpha", 0, -45);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorTo" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "attachto";
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorTo);
					DAB_Set_Anchor("_BackgroundAlpha", 0, -70);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_XOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_AnchorFrame" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "attachoffsetx"
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetX);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_YOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_XOffset" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "controlbox";
					this.subindex2 = "attachoffsety"
					this.func = DAB_ControlBox_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetY);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_CopyBoxSettings" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "CopyBar";
					DAB_Set_Label(DAB_TEXT.CopyControlBoxSettings);
					DAB_Set_Anchor("_BackgroundAlpha", 0, -95);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CopyButton" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CopyBoxSettings" relativePoint="RIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Copy);
				</OnLoad>
				<OnClick>
					DAB_Copy_ControlBoxSettings();
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeUp" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="330" y="-120"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText("^");
				</OnLoad>
				<OnClick>
					DAB_Nudge_Up("controlbox");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeDown" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_NudgeUp" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="4"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText("v");
				</OnLoad>
				<OnClick>
					DAB_Nudge_Down("controlbox");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeLeft" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="$parent_NudgeUp" relativePoint="LEFT">
					<Offset><AbsDimension x="2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_ARROW_LEFT);
				</OnLoad>
				<OnClick>
					DAB_Nudge_Left("controlbox");
				</OnClick>
			</Scripts>
		</Button>
		<Button name="$parent_NudgeRight" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="24" y="24"/></Size>
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_NudgeUp" relativePoint="RIGHT">
					<Offset><AbsDimension x="-2" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_ARROW_RIGHT);
				</OnLoad>
				<OnClick>
					DAB_Nudge_Right("controlbox");
				</OnClick>
			</Scripts>
		</Button>
		<Frame name="$parent_NudgeLabel">
			<Size><AbsDimension x="10" y="20"/></Size>
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="$parent_NudgeUp" relativePoint="TOP"/>
			</Anchors>
			<Layers>
				<Layer level="ARTWORK">
					<FontString name="$parent_Label" inherits="GameFontNormal" text="DAB_NUDGE">
						<Color r=".8" g=".8" b="0"/>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
		</Frame>
	</Frames>
</Frame>

<Frame name="DAB_LabelOptions" parent="DAB_BarOptionsHeader" hidden="true">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="DAB_BarOptionsHeader_BarButton" relativePoint="BOTTOMLEFT"/>
	</Anchors>
	<Frames>
		<EditBox name="$parent_Text" inherits="DAB_EditBoxTemplate" letters="1000" autoFocus="false">
			<Size><AbsDimension x="300" y="16"/></Size>
			<Scripts>
				<OnLoad>
					DAB_Set_Label(DAB_TEXT.Text);
					DAB_Set_Anchor("", 0, -5);
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "text";
					this.func = DAB_Bar_Initialize;
				</OnLoad>
			</Scripts>
		</EditBox>
		<Button name="$parent_TextColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="0" y="-35"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "color";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.TextColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BackgroundColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "bgcolor";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BackgroundColor);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_BorderColor" inherits="DAB_ColorPickerTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BackgroundColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "bordercolor";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.BorderColor);
				</OnLoad>
			</Scripts>
		</Button>
		<CheckButton name="$parent_Hide" inherits="DAB_CheckboxTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BorderColor" relativePoint="BOTTOMLEFT"/>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "hidelabel";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.Hide);
				</OnLoad>
			</Scripts>
		</CheckButton>
		<Slider name="$parent_TextSize" inherits="DAB_BarSliderTemplate" minValue="1" maxValue="20"  valueStep=".25">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Hide" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-10"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label"
					this.subindex2 = "textsize";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					DAB_Set_Label(DAB_TEXT.TextSize);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_TextAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextSize" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label"
					this.subindex2 = "alpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.TextAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BackgroundAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_TextAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label"
					this.subindex2 = "bgalpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BackgroundAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_BorderAlpha" inherits="DAB_BarSliderTemplate" minValue="0" maxValue="100"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_BackgroundAlpha" relativePoint="BOTTOMLEFT">
					<Offset><AbsDimension x="0" y="-30"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label"
					this.subindex2 = "borderalpha";
					this.func = DAB_Bar_Initialize;
					this.minlock = true;
					this.maxlock = true;
					this.scale = 100;
					DAB_Set_Label(DAB_TEXT.BorderAlpha);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_AnchorPoint" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "attachpoint";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorPoint);
					DAB_Set_Anchor("_BorderAlpha", 0, -30);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_AnchorTo" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="100" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_ANCHORS;
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "attachto";
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.AnchorTo);
					DAB_Set_Anchor("_BorderAlpha", 0, -55);
				</OnLoad>
			</Scripts>
		</Button>
		<Slider name="$parent_XOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_AnchorPoint" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "attachoffsetx"
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetX);
				</OnLoad>
			</Scripts>
		</Slider>
		<Slider name="$parent_YOffset" inherits="DAB_BarSliderTemplate" minValue="-50" maxValue="50"  valueStep="1">
			<Anchors>
				<Anchor point="TOP" relativeTo="$parent_XOffset" relativePoint="BOTTOM">
					<Offset><AbsDimension x="0" y="-20"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this.index = "bar";
					this.subindex = "label";
					this.subindex2 = "attachoffsety"
					this.func = DAB_Bar_Initialize;
					DAB_Set_Label(DAB_TEXT.OffsetY);
				</OnLoad>
			</Scripts>
		</Slider>
		<Button name="$parent_CopyLabelSettings" inherits="DAB_MenuControlTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Scripts>
				<OnLoad>
					this:SetBackdropColor(0.0, 0.0, 0.0);
					this.menu = DAB_MENU_BARNUMS;
					this.index = "CopyBar";
					DAB_Set_Label(DAB_TEXT.CopyLabelSettings);
					DAB_Set_Anchor("_BorderAlpha", 0, -105);
				</OnLoad>
			</Scripts>
		</Button>
		<Button name="$parent_CopyButton" inherits="DAB_ButtonTemplate">
			<Size><AbsDimension x="50" y="24"/></Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent_CopyLabelSettings" relativePoint="RIGHT">
					<Offset><AbsDimension x="10" y="0"/></Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnLoad>
					this:SetText(DAB_TEXT.Copy);
				</OnLoad>
				<OnClick>
					DAB_Copy_LabelSettings();
				</OnClick>
			</Scripts>
		</Button>
	</Frames>
</Frame>

</Ui>