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

	<!-- ##################################################################################################################################### -->
	<!-- # TOTEM SETS                                                                                                                        # -->
	<!-- ##################################################################################################################################### -->

	<Frame name="CHH_TotemSetTemplate" inherits="CHH_FrameBoxTemplate" virtual="true">
		<Size>
			<AbsDimension x="210" y="200"></AbsDimension>
		</Size>
		<Scripts>
			<OnLoad>
				getglobal(this:GetName()..'TitleText'):SetText( 'Totem Set');
				this:SetBackdropBorderColor(0.4, 0.4, 0.4);
				this:SetBackdropColor(0.15, 0.15, 0.15);
			</OnLoad>
		</Scripts>
		<Frames>
			<Frame name="$parentSpell1" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSpell2" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-65"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSpell3" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-90"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSpell4" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-115"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Slider name="$parentResetTime" inherits="OptionsSliderTemplate">
				<Size>
					<AbsDimension x="160" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="25" y="-160"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText("Reset time (5 sec)");
						getglobal(this:GetName().."High"):SetText("20 sec");
						getglobal(this:GetName().."Low"):SetText("none");
						this:SetMinMaxValues(0,20);
						this:SetValueStep(1);
					</OnLoad>
					<OnValueChanged>
						CHH_TotemSliderClicked();
					</OnValueChanged>
				</Scripts>
			</Slider>
		</Frames>
	</Frame>

	<!-- ##################################################################################################################################### -->
	<!-- # TOTEM SETS TAB                                                                                                                    # -->
	<!-- ##################################################################################################################################### -->

	<Frame name="CHH_TotemTemplate" hidden="true" virtual="true">
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" />
			<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" />
		</Anchors>
		<Frames>
			<Frame name="$parentSet1" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSet2" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSet1" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSet3" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSet2" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSet4" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSet1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSet5" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSet4" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parentSet6" inherits="CHH_TotemSetTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentSet5" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>

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