<!-- MikeyHealthBar V0.1 -->
<!-- Options Pane Definition -->

<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/"> 
	
	<Slider name="DCTSliderTemplateExtra" frameStrata="MEDIUM" inherits="DCTSliderIncludeEditBoxTemplate" virtual="true">
		<Scripts>			
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip_AddNewbieTip(this,this.tooltipText, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnLoad>
				this.OnValueChangedFunc = DCT_Opex_SliderOnValue
			</OnLoad>
		</Scripts>
	</Slider >
	
	<CheckButton name="DCT_OPEX_InheritsCheckBox" inherits="UICheckButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				DCT_Opex_InheritsCheckBoxClick()
			</OnClick>
			<OnEnter>
				GameTooltip_AddNewbieTip(this,DCT_TEXT_OPEX_CHECK_TIP, 1.0, 1.0, 1.0);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</CheckButton>

	<EditBox name="DCTEditBoxTemplate" autoFocus ="false" frameStrata="HIGH" historyLines="0" inherits="InputBoxTemplate" virtual="true">
		<Size>
			<AbsDimension x="270" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentLabel" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="-7" y="-1" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>	
			</Layer>			
		</Layers>
		<Scripts>
			<OnShow>
				this:ClearFocus();
			</OnShow>
			<OnEnterPressed>
				if this.EnterPressFunc then
					this:EnterPressFunc(this:GetText())
				end
				this:ClearFocus();
			</OnEnterPressed>
			<OnTextChanged>
				if this.TextChangedFunc then
					this.TextChangedFunc(this:GetText());
				end
			</OnTextChanged >
			<OnEscapePressed>
				this:ClearFocus();
			</OnEscapePressed>
		</Scripts>
		<FontString inherits="GameFontHighlight" bytes="256"/>
	</EditBox>
	
	<Button name="DCTUIDropDownMenuTemplate" inherits="UIDropDownMenuTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="15" y="3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>			
	</Button>
	
	
	<!-- MAIN OPTION FRAME -->
	<Frame name="DCTEventOptionsExtra" toplevel="true" frameStrata="MEDIUM" enableMouse="true" hidden="true" parent="UIParent" inherits="DCT_OptionFrameBoxTemplate">
		<Size>
			<AbsDimension x="385" y="520"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>

		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormal" text="DCT_MAIN_OPTION">
					<Anchors>
						<Anchor point="TOP" relativeTo="DCTEventOptionsExtra">
							<Offset>
								<AbsDimension x="0" y="-3" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHelp1" inherits="GameFontNormal"/>
				<FontString name="$parentHelp2" inherits="GameFontNormal"/>
				<FontString name="$parentHelp3" inherits="GameFontNormal"/>
				<FontString name="$parentHelp4" inherits="GameFontNormal"/>
				<FontString name="$parentHelp5" inherits="GameFontNormal"/>
				<FontString name="$parentHelp6" inherits="GameFontNormal"/>
				<FontString name="$parentHelp7" inherits="GameFontNormal"/>
				<FontString name="$parentHelp8" inherits="GameFontNormal"/>
				<FontString name="$parentHelp9" inherits="GameFontNormal"/>
				<FontString name="$parentHelp10" inherits="GameFontNormal"/>
			</Layer>			
		</Layers>
		
		<Frames>
			<Frame name="DCTPreviewBG" inherits="DCT_OptionFrameBoxTemplate">
				<Size>
					<AbsDimension x="300" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="DCTEventOptionsExtra" relativePoint="TOP">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						--this:SetBackdropBorderColor(0.4, 0.4, 0.4);
						this:SetBackdropColor(0.15, 0.15, 0.15);
					</OnLoad>
				</Scripts>
			</Frame>
			<EditBox name="DCTEventShowEdit1" inherits="DCTEditBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-65" />
						</Offset>
					</Anchor>
				</Anchors>
			</EditBox>
			<EditBox name="DCTEventShowEdit2" inherits="DCTEditBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-110" />
						</Offset>
					</Anchor>
				</Anchors>
			</EditBox>
			<EditBox name="DCTEventSoundEdit" inherits="DCTEditBoxTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="180" y="-255" />
						</Offset>
					</Anchor>
				</Anchors>
			</EditBox>
			
			<Frame name="$parent_ColorPickerEx1" inherits="DCT_ColorPickerExTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parent_ColorPickerEx2" inherits="DCT_ColorPickerExTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="120" y="-25" />
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Slider name="$ParentSlider_per" inherits="DCTSliderTemplateExtra">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-255"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</Slider>
			
			<Button name="$ParentFontEnDDC" inherits="DCTUIDropDownMenuTemplate">				
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentSlider_per" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="45" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>	
				<Scripts>
					<OnShow>
						DCT_Opex_FontEnDDC_OnShow();
					</OnShow>
				</Scripts>
			</Button>
			<Button name="$ParentFontChDDC" inherits="DCTUIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontEnDDC" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>	
				<Scripts>
					<OnShow>
						DCT_Opex_FontChDDC_OnShow();
					</OnShow>
				</Scripts>
			</Button>
			<Button name="$ParentFontEffDDC" inherits="DCTUIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontChDDC" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>	
				<Scripts>
					<OnShow>
						DCT_Opex_FontEffDDC_OnShow();
					</OnShow>
				</Scripts>
			</Button>
			<Slider name="$ParentSlider_fSizeEn" inherits="DCTSliderTemplateExtra">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontEffDDC" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-50" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</Slider>
			<Slider name="$ParentSlider_fSizeCh" inherits="DCTSliderTemplateExtra">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentSlider_fSizeEn" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="0" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</Slider>
			<CheckButton name="DCTOPEXICB_fEn" inherits="DCT_OPEX_InheritsCheckBox">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontEnDDC" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</CheckButton>
			<CheckButton name="DCTOPEXICB_fCh" inherits="DCT_OPEX_InheritsCheckBox">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontChDDC" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</CheckButton>
			<CheckButton name="DCTOPEXICB_fEff" inherits="DCT_OPEX_InheritsCheckBox">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentFontEffDDC" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</CheckButton>
			<CheckButton name="DCTOPEXICB_fSizeEn" inherits="DCT_OPEX_InheritsCheckBox">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentSlider_fSizeEn" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="160" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</CheckButton>
			<CheckButton name="DCTOPEXICB_fSizeCh" inherits="DCT_OPEX_InheritsCheckBox">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$ParentSlider_fSizeCh" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="160" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>	
			</CheckButton>
	
			<Button name="$parent_Close" inherits="GameMenuButtonTemplate" text="CLOSE">
				<Size>
					<AbsDimension x="50" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(DCTEventOptionsExtra)
						if dct_opex_preview1 then DCT_Ani_ObjClear(dct_opex_preview1);end
						if dct_opex_preview2 then DCT_Ani_ObjClear(dct_opex_preview2);end
					</OnClick>
				</Scripts>
			</Button>
			
		</Frames>

		<Scripts>
			<OnLoad>
				--this:SetBackdropBorderColor(0.4, 0.4, 0.4);
				this:SetBackdropColor(0.15, 0.15, 0.15);
			</OnLoad>
			<OnShow>
				DCT_Opex_OnShow()
				DCT_Options:Hide()
			</OnShow>
			<OnHide>
				DCT_Options:SetAlpha(1)
				DCT_Options:EnableMouse(true)
				DCT_Options:Show()
			</OnHide>
		</Scripts>
	</Frame>
</Ui>