<!-- 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 ( self.tooltipText ) then
					GameTooltip_AddNewbieTip(self,self.tooltipText, 1.0, 1.0, 1.0);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnLoad>
				self.OnValueChangedFunc = DCT_Opex_SliderOnValue
			</OnLoad>
		</Scripts>
	</Slider>

	<CheckButton name="DCT_OPEX_InheritsCheckBox" inherits="UICheckButtonTemplate" virtual="true">
		<Scripts>
                    <OnClick function="DCT_Opex_InheritsCheckBoxClick" />
			<OnEnter>
				GameTooltip_AddNewbieTip(self,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>
				self:ClearFocus();
			</OnShow>
			<OnEnterPressed>
				if self.EnterPressFunc then
					self.EnterPressFunc(self)
				end
				self:ClearFocus();
			</OnEnterPressed>
			<OnTextChanged>
				if self.TextChangedFunc then
					self.TextChangedFunc(self);
				end
			</OnTextChanged>
			<OnEscapePressed>
				self:ClearFocus();
			</OnEscapePressed>
		</Scripts>
		<FontString inherits="GameFontHighlight"/>
	</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>
						--self:SetBackdropBorderColor(0.4, 0.4, 0.4);
						self: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 function="DCT_Opex_FontEnDDC_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 function="DCT_Opex_FontChDDC_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 function="DCT_Opex_FontEffDDC_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>
						DCTEventOptionsExtra:Hide();
						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>
				--self:SetBackdropBorderColor(0.4, 0.4, 0.4);
				self: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>
