<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/..\FrameXML\UI.xsd">
	<Script file="localization.lua"/>
	<Script file="TitanRoguePowder.lua"/>
	<Frame parent="UIParent">
		<Frames>
			<Button name="TitanPanelRoguePowderButton" inherits="TitanPanelComboTemplate" frameStrata="FULLSCREEN" toplevel="true">
				<Scripts>
					<OnLoad>
						TitanPanelRoguePowderButton_OnLoad();
						TitanPanelButton_OnLoad();
					</OnLoad>
					<OnEvent>
						TitanPanelRoguePowderButton_OnEvent();
					</OnEvent>
					<OnClick>
                        TitanPanelRoguePowderButton_OnClick(arg1);
                        TitanPanelButton_OnClick(arg1);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
	<CheckButton name="TitanPanelRoguePowder_SettingsOptionButtonTemplate" inherits="UICheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset bottom="0" left="0" right="-100" top="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>
					TitanPanelRoguePowder_SettingsOptionButton_OnClick(this:GetID());
					if ( this:GetChecked() ) then
						PlaySound("igMainMenuOptionCheckBoxOff");
					else
						PlaySound("igMainMenuOptionCheckBoxOn");
					end
			</OnClick>
			<OnEnter>
				TitanPanelRoguePowder_SettingsOptionButton_OnEnter(this);
			</OnEnter>
			<OnLeave>
				TitanPanelRoguePowder_SettingsOptionButton_OnLeave();
			</OnLeave>
		</Scripts>
	</CheckButton>
    <Slider name="TitanPanelRoguePowder_SettingsSliderTemplate" inherits="OptionsSliderTemplate" virtual="true">
		<Size>
			<AbsDimension x="250" y="20"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText1" inherits="GameFontNormalSmall">
					<Color r="1.0" g="1.0" b="1.0"/>
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentText2" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				TitanPanelRoguePowder_SettingsOptionButton_OnEnter(this);
			</OnEnter>
			<OnLeave>
				TitanPanelRoguePowder_SettingsOptionButton_OnLeave();
			</OnLeave>
		</Scripts>
	</Slider>
    <Frame name="TitanPanelRoguePowder_SettingsFrame" enableMouse="true" frameStrata="FULLSCREEN" hidden="true" movable="true" parent="UIParent" toplevel="true">
		<Size>
			<AbsDimension x="325" y="220"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="325" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parent_HeaderText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton id="1" inherits="TitanPanelRoguePowder_SettingsOptionButtonTemplate" name="$parent_Option1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton id="2" inherits="TitanPanelRoguePowder_SettingsOptionButtonTemplate" name="$parent_Option2">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_Option1">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton id="3" inherits="TitanPanelRoguePowder_SettingsOptionButtonTemplate" name="$parent_Option3">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent_Option2">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Button name="$parent_Reset" inherits="GameMenuButtonTemplate" text="TITAN_ROGUE_SETTINGS_CLOSE">
				<Size>
					<AbsDimension x="150" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="25"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TitanPanelRoguePowder_SettingsClose();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
</Ui>