<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="localization.lua"/>
	<Script file="SpellTimer.lua"/>
	<Slider name="SpellTimerOptionSliderTemplate" orientation="HORIZONTAL" virtual="true" enableMouse="true">
		<Size>
			<AbsDimension x="60" y="17"/>
		</Size>
		<HitRectInsets>
			<AbsInset left="0" right="0" top="-10" bottom="-10"/>
		</HitRectInsets>
		<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="8"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="5" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
		</ThumbTexture>
	</Slider>
	<Frame name="SpellTimerSpellFrameTemplate" frameStrat="MEDIUM" parent="UIParent" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="180" y="32"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="ChatFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="180" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="35" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentIcon">
				<Size>
					<AbsDimension x="30" y="30"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentTexture"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnEnter>
						SpellTimerFrame_OnEnter();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
					<OnHide>
						if (this.moving) then
							SpellTimerMainFrame:StopMovingOrSizing();
							this.moving = nil;
						end
					</OnHide>
				</Scripts>
			</Button>
			<StatusBar name="$parentBar" drawLayer="BORDER">
				<Size>
					<AbsDimension x="128" y="13"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="35" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture setAllPoints="true">
							<Color r="0" g="0" b="0" a="0.5"/>
						</Texture>		
					</Layer>
					<Layer level="OVERLAY">
						<Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
							<Size>
								<AbsDimension x="16" y="24"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
								</Anchor>
							</Anchors>
						</Texture>
						<Texture name="$parentFlash" file="Interface\CastingBar\UI-CastingBar-Flash" alphaMode="ADD">
							<Size>
								<AbsDimension x="170" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOP">
									<Offset>
										<AbsDimension x="0" y="10"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parentBorder">
						<Size>
							<AbsDimension x="132" y="24"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="-3" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<HitRectInsets>
							<AbsInset left="0" right="0" top="7" bottom="7"/>
						</HitRectInsets>
						<NormalTexture name="$parentNormal" file="Interface\PaperDollInfoFrame\UI-Character-Skills-BarBorder"/>
						<HighlightTexture name="$parentHighlight" file="Interface\PaperDollInfoFrame\UI-Character-Skills-BarBorderHighlight"/>
					</Button>
				</Frames>
				<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
				<BarColor r="1.0" g="0.7" b="0.0"/>
			</StatusBar>
		</Frames>
		<Scripts>
			<OnUpdate>
				SpellTimerFrame_OnUpdate(arg1);
			</OnUpdate>
		</Scripts>
	</Frame>
	<Frame name="SpellTimerMainFrame" frameStrata="MEDIUM" movable="true" enableMouse="false" parent="UIParent" clampedToScreen="true" hidden="false">
		<Size>
			<AbsDimension x="1" y="1"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="-346" y="453"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>			
			<OnLoad>
				SpellTimerMainFrame_OnLoad();
			</OnLoad>
			<OnShow>
				this:SetBackdropColor(0.0, 0.0, 0.0);
			</OnShow>
			<OnMouseDown>
				this:StartMoving();
			</OnMouseDown>
			<OnMouseUp>
				this:StopMovingOrSizing();
			</OnMouseUp>
		</Scripts>
	</Frame>
	<Button name="SpellTimerUnitFrameTemplate" frameStrata="MEDIUM" movable="true" clampedToScreen="true" enableMouse="true" parent="UIParent" hidden="false" virtual="true">
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="4" right="4" top="4" bottom="4"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentHeader" inherits="ChatFontNormal" text="xxx">
					<Anchors>
						<Anchor point="TOP" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetBackdropBorderColor(0.5, 0.5, 0.5, 0.4);
				this:SetBackdropColor(0.0, 0.0, 0.0, 0.5);
			</OnLoad>
			<OnEnter>
				SpellTimerUnitFrame_OnEnter();
			</OnEnter>
			<OnLeave>
				SpellTimerUnitFrame_OnLeave();
			</OnLeave>
			<OnMouseDown>
				if (IsShiftKeyDown()) then
					SpellTimerMainFrame:StartMoving();
				end
			</OnMouseDown>
			<OnMouseUp>
				SpellTimerMainFrame:StopMovingOrSizing();
			</OnMouseUp>
			<OnHide>
				SpellTimerMainFrame:StopMovingOrSizing();
			</OnHide>
		</Scripts>
	</Button>
	<Frame name="SpellTimerOptionTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="224" y="20"/>
		</Size>
		<Frames>
			<CheckButton name="$parentCheckbox" inherits="ModOptionCheckButtonTemplate" hidden="false">
				<Size>
					<AbsDimension x="110" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="3" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						SpellTimerOptionFrameCheckbox_OnClick(this:GetParent():GetID());
					</OnClick>
				</Scripts>
			</CheckButton>
			<Slider name="$parentSlider" inherits="SpellTimerOptionSliderTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentCheckbox" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="5" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText("5");
						this:SetMinMaxValues(0, 5);
						this:SetValueStep(0.5);
						this.tooltipText = SPELL_TIMER_TEXT_OPTION_SLIDER;
					</OnLoad>
					<OnValueChanged>
						SpellTimerOptionFrameSlider_OnChange(this:GetParent():GetID());
					</OnValueChanged>
				</Scripts>
			</Slider>
		</Frames>
	</Frame>
	<Frame name="SpellTimerOptionFrame" toplevel="true" hidden="true">
		<Size>
			<AbsDimension x="256" y="256"/>
		</Size>
		<Frames>
			<Frame>
				<Size>
					<AbsDimension x="256" y="256"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Frames>					
					<Frame name="$parentSpellOption1" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="SpellTimerOptionFrame">							
								<Offset>
									<AbsDimension x="15" y="-30"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption2" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption3" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption4" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption5" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption6" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption7" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<Frame name="$parentSpellOption8" inherits="SpellTimerOptionTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="$parentSpellOption7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Frame>
					<CheckButton name="SpellTimerOptionShowProgress" inherits="ModOptionCheckButtonTemplate" hidden="false">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parentSpellOption8" relativePoint="BOTTOMLEFT">
								<Offset>
									<AbsDimension x="-15" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								SpellTimerOptionShowProgress_OnClick();
							</OnClick>
							<OnShow>
								SpellTimerOptionShowProgress_OnShow();
							</OnShow>
						</Scripts>
					</CheckButton>
					<CheckButton name="SpellTimerOptionShowName" inherits="ModOptionCheckButtonTemplate" hidden="false">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="SpellTimerOptionShowProgress" relativePoint="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="-25"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								SpellTimerOptionShowName_OnClick();
							</OnClick>
							<OnShow>
								SpellTimerOptionShowName_OnShow();
							</OnShow>
						</Scripts>
					</CheckButton>
					<ScrollFrame name="SpellTimerScrollFrame" inherits="FauxScrollFrameTemplate">
						<Size>
							<AbsDimension x="32" y="160"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeTo="SpellTimerOptionFrame">
								<Offset>
									<AbsDimension x="-30" y="-30"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(20, SpellTimerList_Update);
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>
				SpellTimerOptionFrame_OnShow();
			</OnShow>
		</Scripts>
	</Frame>

	<GameTooltip name="SpellTimerTooltip" parent="UIParent" hidden="false" frameStrata="TOOLTIP" inherits="GameTooltipTemplate">
		<Scripts>
			<OnLoad>
				this:SetOwner(UIParent, "ANCHOR_NONE");
			</OnLoad>
		</Scripts>
	</GameTooltip>
	<!--
	<GameTooltip name="SpellTimerHelpTooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate"/>
	-->
</Ui>