<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="Blizzard_QuestObjectiveTracker.lua"/>
	
	<Frame name="QuestObjectiveAnimLineTemplate" inherits="ObjectiveTrackerLineTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Check" atlas="Tracker-Check" useAtlasSize="true" hidden="true">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-10" y="2"/>
					</Anchors>
				</Texture>			
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="CheckFlash" file="Interface\Scenarios\ScenarioIcon-Check" alphaMode="ADD" alpha="0">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Check"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim">
							<Alpha change="1.0" duration="0.067" order="1"/>
							<Scale scaleX="1.25" scaleY="1.25" duration="0.2" order="2"/>
							<Alpha change="-1.0" startDelay="0.167" duration="0.23" order="2"/>
						</AnimationGroup>
					</Animations>
				</Texture>
				<Texture parentKey="Glow" file="Interface\Scenarios\Objective-Lineglow" alpha="0" alphaMode="ADD">
					<Size x="80" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.Text" x="-2" y="0"/>
						<Anchor point="TOP" x="0" y="0"/>
						<Anchor point="BOTTOM" x="0" y="-4"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim">
							<Scale parentKey="ScaleGlow" startDelay="0.067" scaleX="2" scaleY="1" duration="0.433" order="1">
								<Origin point="LEFT"/>
							</Scale>
							<Alpha startDelay="0.067" change="1.0" duration="0.1" order="1"/>
							<Alpha startDelay="0.467" endDelay="0" change="-1.0" duration="0.267" order="1"/>
							<Scripts>
								<OnFinished>
									local line = self:GetParent():GetParent();
									QuestObjectiveTracker_FinishGlowAnim(line);
								</OnFinished>
							</Scripts>							
						</AnimationGroup>					
					</Animations>
				</Texture>
				<Texture parentKey="Sheen" file="Interface\Scenarios\Objective-Sheen" alpha="0">
					<Size x="32" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.Glow"/>
						<Anchor point="TOP" x="0" y="2"/>
						<Anchor point="BOTTOM" x="0" y="-14"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim">
							<Translation startDelay="0.067" offsetX="110" offsetY="0" duration="0.467" order="1"/>
							<Alpha startDelay="0.067" change="1.0" duration="0.133" order="1"/>
							<Alpha startDelay="0.2" change="-1.0" duration="0.133" order="1" smoothing="IN"/>						
						</AnimationGroup>
					</Animations>
				</Texture>
			</Layer>			
		</Layers>
		<Animations>
			<AnimationGroup parentKey="FadeOutAnim">
				<Alpha startDelay="1" change="-1.0" duration="0.1" order="1"/>
				<Scripts>
					<OnFinished>
						local line = self:GetParent();
						QuestObjectiveTracker_FinishFadeOutAnim(line);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
		</Animations>		
	</Frame>
	
	<Button name="QuestObjectiveItemButtonTemplate" virtual="true">
		<Size x="26" y="26"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="HotKey" inherits="NumberFontNormalSmallGray" justifyH="LEFT" text="RANGE_INDICATOR">
					<Size x="29" y="10"/>
					<Anchors>
						<Anchor point="TOPRIGHT" x="16" y="-2"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="icon"/>
				<FontString parentKey="Count" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-3" y="2"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Cooldown parentKey="Cooldown" inherits="CooldownFrameTemplate"/>
		</Frames>
		<Scripts>
			<OnLoad function="QuestObjectiveItem_OnLoad"/>
			<OnEvent function="QuestObjectiveItem_OnEvent"/>
			<OnUpdate function="QuestObjectiveItem_OnUpdate"/>
			<OnShow function="QuestObjectiveItem_OnShow"/>
			<OnHide function="QuestObjectiveItem_OnHide"/>
			<OnEnter function="QuestObjectiveItem_OnEnter"/>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick function="QuestObjectiveItem_OnClick"/>
		</Scripts>
		<NormalTexture parentKey="NormalTexture" file="Interface\Buttons\UI-Quickslot2">
			<Size x="42" y="42"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</NormalTexture>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>		
	</Button>
</Ui>