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

	<!-- ##################################################################################################################################### -->
	<!-- # EXTRA BUTTONS CONFIG                                                                                                              # -->
	<!-- ##################################################################################################################################### -->

        <!-- ===== The Extra Section frame =============================================================================================== -->
	<Frame name="CHH_ExtraSectionFrameTemplate" inherits="CHH_FrameBoxTemplate" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentNameText" inherits="GameFontNormal" justifyV="CENTER" justifyH="RIGHT" text="CHHT_EXTRA_LABEL">
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="-150" y="-40" />
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-65" />
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
				<FontString name="$parentShowMyText" inherits="GameFontNormal" justifyV="CENTER" justifyH="RIGHT" text="CHHT_EXTRA_SHOW_COOLDOWN">
					<Anchors>
						<Anchor point="TOPRIGHT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="-150" y="-65" />
							</Offset>
						</Anchor>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="10" y="-90" />
							</Offset>
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName()..'TitleText'):SetText( CHHT_EXTRA_OPTIONS );
				this:SetBackdropBorderColor(0.4, 0.4, 0.4);
				this:SetBackdropColor(0.15, 0.15, 0.15);
			</OnLoad>
		</Scripts>
		<Frames>
			<EditBox name="$parentNameEditText" letters="200">
				<Size>
					<AbsDimension x="120" y="32"></AbsDimension>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentNameText" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="35" y="0"></AbsDimension>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
							<Size>
								<AbsDimension x="75" y="32"></AbsDimension>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="-10" y="0"></AbsDimension>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.2" top="0" bottom="1.0"></TexCoords>
						</Texture>
						<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
							<Size>
								<AbsDimension x="75" y="32"></AbsDimension>
							</Size>
							<Anchors>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="10" y="0"></AbsDimension>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.7" right="1.0" top="0" bottom="1.0"></TexCoords>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnterPressed>
						CHH_ExtraEditBox( this );
					</OnEnterPressed>
					<OnTextChanged>
						CHH_ExtraEditBox( this );
					</OnTextChanged>
				</Scripts>
				<FontString inherits="GameFontNormal">
					<Color r="1" g="1" b="1" />
				</FontString>
			</EditBox>
			<Frame name="$parentShow" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentShowMyText" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<CheckButton name="$parentHidden" inherits="OptionsCheckButtonTemplate" checked="true">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOP">
						<Offset>
							<AbsDimension x="80" y="-60" />
						</Offset>
						
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentName" inherits="GameFontNormal" text="CHHT_EXTRA_HIDE_BUTTON">
		                 			<Anchors>
		                    				<Anchor point="LEFT" relativePoint="RIGHT" />
       							</Anchors>
							<Color r="1" g="1" b="1" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						CHH_ExtraHiddenClicked( this );
					</OnClick>
				</Scripts>
			</CheckButton>
			<Button name="$parentPage1Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE2">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 1 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage2Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE3">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 2 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage3Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE4">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-50"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 3 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage4Button" inherits="OptionsButtonTemplate" text="CHHT_LABEL_DEFAULTS">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-70"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraRestoreDefaults();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

        <!-- ===== The Extra General frame ==================================================================================================== -->
	<Frame name="CHH_ExtraGeneralFrameTemplate" inherits="CHH_FrameBoxTemplate" virtual="true">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="10" y="-10"/>
				</Offset>
			</Anchor>
			<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="-10" y="40"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName()..'TitleText'):SetText( CHHT_EXTRA_OPTIONS );
				this:SetBackdropBorderColor(0.4, 0.4, 0.4);
				this:SetBackdropColor(0.15, 0.15, 0.15);
			</OnLoad>
		</Scripts>
		<Frames>
			<Frame name="$parent1" inherits="CHH_ExtraSectionFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-40"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-140"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parent2" inherits="CHH_ExtraSectionFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-150"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-250"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parent3" inherits="CHH_ExtraSectionFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-260"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-360"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parent4" inherits="CHH_ExtraSectionFrameTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-370"/>
						</Offset>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-470"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>
	</Frame>

        <!-- ===== The Extra config ================================================================================== -->
	<Frame name="CHH_ExtraTemplate" hidden="true" virtual="true">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
			<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
		</Anchors>
		<Frames>
			<Frame name="$parentGeneral" inherits="CHH_ExtraGeneralFrameTemplate" hidden="true" />
			<Frame name="$parentAction" inherits="CHH_ActionFrameTemplate" hidden="true" />

			<Button name="$parentPage1Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE1">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="20" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraInit();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage2Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE2">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentPage1Button" relativePoint="RIGHT" />
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 1 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage3Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE3">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentPage2Button" relativePoint="RIGHT" />
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 2 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPage4Button" inherits="OptionsButtonTemplate" text="CHHT_EXTRA_PAGE4">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentPage3Button" relativePoint="RIGHT" />
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ExtraSpellAssign( 3 );
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentResetButton" inherits="OptionsButtonTemplate" text="Defaults">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						CHH_ResetDefaults();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

</Ui>
