<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="AlertFrames.lua"/>

<Frame name="AlertFrameTemplate" virtual="true">
	<Scripts>
		<OnEnter function="AlertFrame_StopOutAnimation"/>
		<OnLeave function="AlertFrame_ResumeOutAnimation"/>
		<OnHide function="AlertFrame_FixAnchors"/>
	</Scripts>
</Frame>

<Frame name="DungeonCompletionAlertFrameRewardTemplate" virtual="true">
	<Size>
		<AbsDimension x="36" y="36"/>
	</Size>
	<Layers>
		<Layer level="ARTWORK">
			<Texture name="$parentTexture" parentKey="texture">
				<Size>
					<AbsDimension x="27" y="27"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="-3" y="3"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentBorder" setAllPoints="true" file="Interface\LFGFrame\UI-LFG-ICON-REWARDRING">
				<TexCoords left="0" right="0.675" top="0" bottom="0.675"/>
			</Texture>
		</Layer>
	</Layers>
	<Scripts>
		<OnEnter function="DungeonCompletionAlertFrameReward_OnEnter"/>
		<OnLeave function="DungeonCompletionAlertFrameReward_OnLeave"/>
	</Scripts>
</Frame>
<Frame name="ChallengeModeAlertFrameRewardTemplate" virtual="true" inherits="DungeonCompletionAlertFrameRewardTemplate">
	<Scripts>
		<OnEnter function="ChallengeModeAlertFrameReward_OnEnter"/>
		<OnLeave function="ChallengeModeAlertFrameReward_OnLeave"/>
	</Scripts>
</Frame>

<Frame name="DungeonCompletionAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size>
		<AbsDimension x="336" y="80"/>
	</Size>
	<Anchors>
		<Anchor point="BOTTOM">
			<Offset>
				<AbsDimension x="0" y="128"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentDungeonTexture" parentKey="dungeonTexture">
				<Size x="45" y="45"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="13" y="13"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture file="Interface\LFGFrame\LFR-Texture" parentKey="raidArt">
				<Size x="310" y="72"/>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<TexCoords left="0.00195313" right="0.60742188" top="0.00390625" bottom="0.28515625"/>	
			</Texture>
			<Texture file="Interface\LFGFrame\UI-LFG-DUNGEONTOAST" parentKey="dungeonArt1">
				<Size x="70" y="72"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT"/>
				</Anchors>
				<TexCoords left="0" right="0.546875" top="0.28515" bottom="0.5664"/>
			</Texture>
			<Texture file="Interface\LFGFrame\UI-LFG-DUNGEONTOAST" parentKey="dungeonArt2">
				<Size x="15" y="72"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<TexCoords left="0.5546875" right="0.671875" top="0.28515" bottom="0.5664"/>
			</Texture>
			<Texture file="Interface\LFGFrame\UI-LFG-DUNGEONTOAST" parentKey="dungeonArt3">
				<Size x="127" y="72"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="69" y="0"/>
				</Anchors>
				<TexCoords left="0" right="0.9921875" top="0" bottom="0.28125"/>
			</Texture>
			<Texture file="Interface\LFGFrame\UI-LFG-DUNGEONTOAST" parentKey="dungeonArt4">
				<Size x="127" y="72"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-14" y="0"/>
				</Anchors>
				<TexCoords left="0" right="0.9921875" top="0.58203" bottom="0.86328"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<FontString inherits="GameFontWhiteTiny" text="DUNGEON_COMPLETED">
				<Size x="200" y="12"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="25" y="-29"/>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentInstanceName" inherits="GameFontNormal" parentKey="instanceName">
				<!--Size x="200" y="16"/-->
				<Anchors>
					<Anchor point="TOP">
						<Offset x="25" y="-44"/>
					</Anchor>
				</Anchors>
			</FontString>
			<Texture name="$parentHeroicIcon" file="Interface/LFGFrame/UI-LFG-ICON-HEROIC" parentKey="heroicIcon">
				<Size>
					<AbsDimension x="16" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentInstanceName" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-3" y="-3"/>
						</Offset>
					</Anchor>
				</Anchors>
				<TexCoords left="0.0" right="0.5" top="0" bottom="0.625"/>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="72"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="260" offsetY="0" duration="0.85" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<Frame name="$parentReward1" inherits="DungeonCompletionAlertFrameRewardTemplate"/>
		<Frame name="$parentGlowFrame" setAllPoints="true" enableMouse="false" parentKey="glowFrame">
			<Layers>
				<Layer level="OVERLAY">
					<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
						<Size>
							<AbsDimension x="415" y="171"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER">
								<Offset x="0" y="-5"/>
							</Anchor>
						</Anchors>
						<Animations>
							<AnimationGroup name="$parentAnimIn" parentKey="animIn">
								<Alpha change="1" duration="0.2" order="1"/>
								<Alpha change="-1" duration="0.5" order="2"/>
								<Scripts>
									<OnFinished>
										self:GetParent():Hide();
									</OnFinished>
								</Scripts>
							</AnimationGroup>
						</Animations>
						<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
					</Texture>
				</Layer>
			</Layers>
			<Scripts>
				<OnLoad function="RaiseFrameLevel"/>
			</Scripts>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad function="DungeonCompletionAlertFrame_OnLoad"/>
	</Scripts>
</Frame>

<Button name="AchievementAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size>
		<AbsDimension x="300" y="88"/>
	</Size>
	<Anchors>
		<Anchor point="BOTTOM">
			<Offset>
				<AbsDimension x="0" y="128"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Alert-Background">
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<TexCoords left="0" right=".605" top="0" bottom=".703"/>
			</Texture>
			<FontString name="$parentUnlocked" inherits="GameFontBlackTiny" text="ACHIEVEMENT_UNLOCKED">
				<Size x="200" y="12"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="7" y="-23"/>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentName" inherits="GameFontHighlight" text="For the Alliance!">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="72" y="36"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-60" y="36"/>
					</Anchor>
				</Anchors>
				<Size x="240" y="16"/>
			</FontString>
			<FontString name="$parentGuildName" inherits="GameFontNormal" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="50" y="-10"/>
					</Anchor>
					<Anchor point="TOPRIGHT">
						<Offset x="-50" y="-10"/>
					</Anchor>
				</Anchors>
				<Size x="0" y="16"/>
			</FontString>
		</Layer>
		<Layer level="BACKGROUND" textureSubLevel="1">
			<Texture name="$parentGuildBanner" file="Interface\AchievementFrame\UI-Achievement-Guild" hidden="true">
				<Size x="64" y="64"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-13" y="-29"/>
				</Anchors>
				<TexCoords left="0.76171875" right="0.88671875" top="0.00195313" bottom="0.12695313"/>	
			</Texture>
			<Texture name="$parentOldAchievement" file="Interface\AchievementFrame\UI-Achievement-Borders" hidden="true">
				<Size x="193" y="19"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="93" y="-34"/>
				</Anchors>
				<TexCoords left="0.185546875" right="0.623046875" top="0.65625" bottom="0.734375"/>	
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture name="$parentGuildBorder" file="Interface\AchievementFrame\UI-Achievement-Guild" hidden="true">
				<Size x="64" y="64"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-13" y="-29"/>
				</Anchors>
				<TexCoords left="0.63281250" right="0.75781250" top="0.00195313" bottom="0.12695313"/>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size>
					<AbsDimension x="400" y="171"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
			</Texture>
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="72"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="8"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="240" offsetY="0" duration="0.85" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>		
	</Layers>
	<Frames>
		<Frame name="$parentIcon">
			<Size>
				<AbsDimension x="124" y="124"/>
			</Size>
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="-26" y="16"/>
					</Offset>
				</Anchor>
			</Anchors>		
			<Layers>
				<Layer level="BORDER">
					<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="-1" y="1"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="116" y="116"/>
						</Size>
					</Texture>
				</Layer>
				<Layer level="ARTWORK">
					<Texture name="$parentTexture">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="0" y="3"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="50" y="50"/>
						</Size>
					</Texture>
				</Layer>
				<Layer level="OVERLAY">
					<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="-1" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="72" y="72"/>
						</Size>
						<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
					</Texture>
				</Layer>
			</Layers>
		</Frame>
		<Frame name="$parentShield">
			<Size>
				<AbsDimension x="64" y="64"/>
			</Size>
			<Anchors>
				<Anchor point="TOPRIGHT">
					<Offset>
						<AbsDimension x="-10" y="-13"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">
					<Texture name="$parentIcon" file="Interface\AchievementFrame\UI-Achievement-Shields">
						<Size>
							<AbsDimension x="52" y="48"/>
						</Size>
						<Anchors>
							<Anchor point="TOPRIGHT">
								<Offset>
									<AbsDimension x="1" y="-6"/>
								</Offset>
							</Anchor>
						</Anchors>
						<TexCoords left="0" right=".5" top="0" bottom=".45"/>
					</Texture>
				</Layer>
				<Layer level="OVERLAY">
					<FontString name="$parentPoints" inherits="GameFontNormal">
						<Anchors>
							<Anchor point="CENTER">
								<Offset>
									<AbsDimension x="7" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Size>
							<AbsDimension x="64" y="64"/>
						</Size>
					</FontString>
				</Layer>
			</Layers>				
			<Scripts>
				<OnLoad>
					AchievementShield_OnLoad(self);
				</OnLoad>
			</Scripts>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			AchievementAlertFrame_OnLoad(self);
		</OnLoad>
		<OnClick>
			AchievementAlertFrame_OnClick(self, button, down);
		</OnClick>
		<OnHide>
			AlertFrame_FixAnchors();
			AchievementAlertFrame_FireDelayedAlerts();
		</OnHide>
	</Scripts>
</Button>

<Button name="CriteriaAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size x="256" y="52"/>
	<Anchors>
		<Anchor point="BOTTOM" x="0" y="0"/>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentBackground" file="Interface\AchievementFrame\UI-Achievement-Alert-Background-Mini">
				<Anchors>
					<Anchor point="LEFT" x="23" y="0"/>
				</Anchors>
			</Texture>
			<FontString name="$parentUnlocked" inherits="GameFontBlackTiny" text="ACHIEVEMENT_PROGRESSED">
				<Size x="200" y="0"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="23" y="-14"/>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentName" inherits="GameFontHighlight" text="For the Alliance!">
				<Size x="200" y="16"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="23" y="-26"/>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size x="257" y="52"/>
				<Anchors>
					<Anchor point="CENTER" x="23" y="0"/>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
			</Texture>
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size x="67" y="52"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="23" y="0"/>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="210" offsetY="0" duration="0.85" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>		
	</Layers>
	<Frames>
		<Frame name="$parentIcon">
			<Size x="116" y="116"/>
			<Anchors>
				<Anchor point="LEFT" x="-44" y="0"/>
			</Anchors>		
			<Layers>
				<Layer level="BORDER">
					<Texture name="$parentBling" file="Interface\AchievementFrame\UI-Achievement-Bling" hidden="true">
						<Anchors>
							<Anchor point="CENTER" x="-1" y="1"/>
						</Anchors>
						<Size x="116" y="116"/>
					</Texture>
				</Layer>
				<Layer level="ARTWORK">
					<Texture name="$parentTexture">
						<Anchors>
							<Anchor point="CENTER" x="0" y="3"/>
						</Anchors>
						<Size x="50" y="50"/>
					</Texture>
				</Layer>
				<Layer level="OVERLAY">
					<Texture name="$parentOverlay" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
						<Anchors>
							<Anchor point="CENTER" x="-1" y="2"/>
						</Anchors>
						<Size x="72" y="72"/>
						<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
					</Texture>
				</Layer>
			</Layers>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad function="AchievementAlertFrame_OnLoad"/>
		<OnClick function="AchievementAlertFrame_OnClick"/>
	</Scripts>
</Button>

<Button name="GuildChallengeAlertFrame" parent="UIParent" hidden="true" frameStrata="DIALOG" inherits="AlertFrameTemplate">
	<Size>
		<AbsDimension x="270" y="75"/>
	</Size>
	<Anchors>
		<Anchor point="BOTTOM">
			<Offset>
				<AbsDimension x="0" y="128"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture name="$parentEmblemBackground" file="Interface\GuildFrame\GuildChallenges">
				<Size x="37" y="36"/>
				<Anchors>
					<Anchor point="LEFT" x="14" y="0"/>
				</Anchors>
				<TexCoords left="0.06054688" right="0.13281250" top="0.00390625" bottom="0.14453125"/>
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture file="Interface\GuildFrame\GuildChallenges">
				<Size x="270" y="67"/>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<TexCoords left="0.13671875" right="0.66406250" top="0.00390625" bottom="0.26562500"/>
			</Texture>
			<Texture name="$parentEmblemBorder" file="Interface\GuildFrame\GuildChallenges">
				<Size x="37" y="36"/>
				<Anchors>
					<Anchor point="LEFT" x="14" y="0"/>
				</Anchors>
				<TexCoords left="0.06054688" right="0.13281250" top="0.15234375" bottom="0.29296875"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<Texture name="$parentEmblemIcon">
				<Size x="35" y="35"/>
				<Anchors>
					<Anchor point="LEFT" x="15" y="0"/>
				</Anchors>
			</Texture>
			<FontString inherits="GameFontNormal" text="GUILD_CHALLENGE_LABEL">
				<Anchors>
					<Anchor point="LEFT">
						<Offset x="66" y="11"/>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentType" inherits="GameFontWhiteTiny" parentKey="type">
				<Anchors>
					<Anchor point="LEFT">
						<Offset x="72" y="-12"/>
					</Anchor>
				</Anchors>
			</FontString>
			<FontString name="$parentCount" inherits="GameFontNormal">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-18" y="20"/>
					</Anchor>
				</Anchors>
			</FontString>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size>
					<AbsDimension x="350" y="151"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
			</Texture>
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="8"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="200" offsetY="0" duration="0.71" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
	<Scripts>
		<OnClick function="GuildChallengeAlertFrame_OnClick"/>
	</Scripts>
</Button>

<Button name="ChallengeModeAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size x="311" y="78"/>
	<Anchors>
		<Anchor point="BOTTOM" x="0" y="128"/>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture file="Interface\Challenges\challenges-main" setAllPoints="true">
				<TexCoords left="0.00097656" right="0.30468750" top="0.52148438" bottom="0.67382813"/>
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture name="$parentDungeonTexture" parentKey="dungeonTexture">
				<Size x="45" y="45"/>
				<Anchors>
					<Anchor point="LEFT" x="19" y="0"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="BORDER" textureSubLevel="1">
			<Texture name="$parentBorder" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
				<Size x="72" y="72"/>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parentDungeonTexture" x="0" y="0"/>
				</Anchors>
				<TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<FontString inherits="GameFontWhiteTiny" text="CHALLENGE_MODE_COMPLETED">
				<Size x="200" y="12"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="20" y="-22"/>
					</Anchor>
				</Anchors>
				<Color r="0.973" g="0.937" b="0.580"/>
			</FontString>
			<FontString name="$parentTime" inherits="GameFontHighlight" parentKey="time">
				<!--Size x="200" y="16"/-->
				<Anchors>
					<Anchor point="TOP">
						<Offset x="20" y="-40"/>
					</Anchor>
				</Anchors>
			</FontString>
			<Texture name="$parentMedalIcon" file="Interface\Challenges\challenges-silver" parentKey="medalIcon">
				<Size>
					<AbsDimension x="52" y="52"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentDungeonTexture" relativePoint="RIGHT" x="-21" y="-8"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="72"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="260" offsetY="0" duration="0.85" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<Frame name="$parentReward1" inherits="ChallengeModeAlertFrameRewardTemplate" parentKey="reward1"/>
		<Frame name="$parentGlowFrame" setAllPoints="true" enableMouse="false" parentKey="glowFrame">
			<Layers>
				<Layer level="OVERLAY">
					<Texture name="$parentGlow" file="Interface\Scenarios\ScenariosParts" alphaMode="ADD" hidden="true" parentKey="glow">
						<Size>
							<AbsDimension x="327" y="94"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" x="0" y="0"/>
						</Anchors>
						<Animations>
							<AnimationGroup name="$parentAnimIn" parentKey="animIn">
								<Alpha change="1" duration="0.2" order="1"/>
								<Alpha change="-1" duration="0.5" order="2"/>
								<Scripts>
									<OnFinished>
										self:GetParent():Hide();
									</OnFinished>
								</Scripts>
							</AnimationGroup>
						</Animations>
						<TexCoords left="0.00195313" right="0.64062500" top="0.07421875" bottom="0.25781250"/>
					</Texture>
				</Layer>
			</Layers>
			<Scripts>
				<OnLoad function="RaiseFrameLevel"/>
			</Scripts>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			self.glow = self.glowFrame.glow;
		</OnLoad>
		<OnClick>
			PVEFrame_ToggleFrame("ChallengesFrame", self.mapID);
		</OnClick>
	</Scripts>
</Button>

<Button name="ScenarioAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size x="311" y="78"/>
	<Anchors>
		<Anchor point="BOTTOM" x="0" y="128"/>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND" textureSubLevel="-1">
			<Texture file="Interface\Scenarios\ScenariosParts">
				<Size x="47" y="52"/>
				<Anchors>
					<Anchor point="LEFT" x="15" y="0"/>
				</Anchors>
				<TexCoords left="0.00195313" right="0.09375000" top="0.70703125" bottom="0.80859375"/>
			</Texture>
		</Layer>
		<Layer level="BACKGROUND">
			<Texture name="$parentDungeonTexture" parentKey="dungeonTexture">
				<Size x="45" y="45"/>
				<Anchors>
					<Anchor point="LEFT" x="17" y="0"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture file="Interface\Scenarios\ScenariosParts" setAllPoints="true">
				<TexCoords left="0.00195313" right="0.60937500" top="0.26171875" bottom="0.41406250"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<FontString inherits="GameFontWhiteTiny" text="SCENARIO_COMPLETED">
				<Size x="200" y="12"/>
				<Anchors>
					<Anchor point="TOP">
						<Offset x="20" y="-22"/>
					</Anchor>
				</Anchors>
				<Color r="0.973" g="0.937" b="0.580"/>
			</FontString>
			<FontString inherits="GameFontHighlight" parentKey="dungeonName">
				<Size x="200" y="0"/>
				<Anchors>
					<Anchor point="CENTER" relativePoint="TOP" x="20" y="-46"/>
				</Anchors>
			</FontString>
			<Texture parentKey="BonusStar" file="Interface\Scenarios\ScenariosParts" hidden="true">
				<Size x="36" y="44"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-18" y="-5"/>
				</Anchors>
				<TexCoords left="0.09765625" right="0.16796875" top="0.70703125" bottom="0.79296875"/>	
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="72"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="260" offsetY="0" duration="0.85" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<Frame name="$parentReward1" inherits="DungeonCompletionAlertFrameRewardTemplate" parentKey="reward1"/>
		<Frame name="$parentGlowFrame" setAllPoints="true" enableMouse="false" parentKey="glowFrame">
			<Layers>
				<Layer level="OVERLAY">
					<Texture name="$parentGlow" file="Interface\Scenarios\ScenariosParts" alphaMode="ADD" hidden="true" parentKey="glow">
						<Size>
							<AbsDimension x="327" y="94"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" x="0" y="0"/>
						</Anchors>
						<Animations>
							<AnimationGroup name="$parentAnimIn" parentKey="animIn">
								<Alpha change="1" duration="0.2" order="1"/>
								<Alpha change="-1" duration="0.5" order="2"/>
								<Scripts>
									<OnFinished>
										self:GetParent():Hide();
									</OnFinished>
								</Scripts>
							</AnimationGroup>
						</Animations>
						<TexCoords left="0.00195313" right="0.64062500" top="0.07421875" bottom="0.25781250"/>
					</Texture>
				</Layer>
			</Layers>
			<Scripts>
				<OnLoad function="RaiseFrameLevel"/>
			</Scripts>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			self.glow = self.glowFrame.glow;
		</OnLoad>
	</Scripts>
</Button>

<Button name="MoneyWonAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size x="249" y="71"/>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<!--PerPlayerLoot-Gold-->
			<Texture parentKey="Background" file="Interface\LootFrame\LootToast" setAllPoints="true">
				<TexCoords left="0.56347656" right="0.80664063" top="0.28906250" bottom="0.56640625"/>	
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture parentKey="Icon" file="Interface\Icons\INV_Misc_Coin_02">
				<Size x="38" y="38"/>
				<Anchors>
					<Anchor point="LEFT" x="16" y="0"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<!--ItemBorder-Gold-->
			<Texture parentKey="IconBorder" file="Interface\LootFrame\LootToast">
				<Size x="45" y="45"/>
				<Anchors>
					<Anchor point="CENTER" relativeKey="$parent.Icon" relativePoint="CENTER" x="0" y="0"/>
				</Anchors>
				<TexCoords left="0.73242188" right="0.78906250" top="0.57421875" bottom="0.80078125"/>	
			</Texture>
			<FontString parentKey="Label" inherits="GameFontNormal" justifyH="LEFT" text="YOU_WON_LABEL">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.IconBorder" relativePoint="TOPRIGHT" x="7" y="-1"/>
				</Anchors>
			</FontString>
			<FontString parentKey="Amount" inherits="GameFontHighlightLarge" justifyH="LEFT">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeKey="$parent.IconBorder" relativePoint="BOTTOMRIGHT" x="10" y="7"/>
				</Anchors>
			</FontString>
		</Layer>
	</Layers>
</Button>

<Button name="LootWonAlertFrameTemplate" parent="UIParent" hidden="true" frameStrata="DIALOG" virtual="true" inherits="AlertFrameTemplate">
	<Size x="276" y="96"/>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture parentKey="Background" file="Interface\LootFrame\LootToast">
				<Size x="276" y="96"/>
				<Anchor>
					<Anchor point="CENTER"/>
				</Anchor>
				<TexCoords left="0.28222656" right="0.55175781" top="0.57812500" bottom="0.95312500"/>	
			</Texture>
		</Layer>
		<Layer level="BORDER">
			<Texture parentKey="Icon">
				<Size x="52" y="52"/>
				<Anchors>
					<Anchor point="LEFT" x="23" y="-2"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<Texture parentKey="IconBorder" file="Interface\LootFrame\LootToast">
				<Size x="60" y="60"/>
				<Anchors>
					<Anchor point="CENTER" relativeKey="$parent.Icon" relativePoint="CENTER" x="0" y="0"/>
				</Anchors>
			</Texture>
			<FontString parentKey="Label" inherits="GameFontNormal" justifyH="LEFT" text="YOU_WON_LABEL">
				<Size x="167" y="16"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Icon" relativePoint="TOPRIGHT" x="7" y="5"/>
				</Anchors>
			</FontString>
			<FontString parentKey="ItemName" inherits="GameFontNormalMed3" justifyH="LEFT" justifyV="MIDDLE">
				<Size x="167" y="33"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-25" y="23"/>
				</Anchors>
			</FontString>
			<Texture parentKey="RollTypeIcon" file="Interface\Buttons\UI-GroupLoot-Dice-Up">
				<Size x="22" y="22"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-20" y="-18"/>
				</Anchors>
			</Texture>
			<FontString parentKey="RollValue" inherits="GameFontGreen" justifyH="RIGHT">
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.RollTypeIcon" relativePoint="LEFT" x="-3" y="2"/>
				</Anchors>
			</FontString>
		</Layer>
		<Layer level="ARTWORK" textureSubLevel="1">
			<Texture parentKey="SpecIcon">
				<Size x="24" y="24"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="8" y="-7"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="ARTWORK" textureSubLevel="2">
			<Texture parentKey="SpecRing" file="Interface/Minimap/MiniMap-TrackingBorder">
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="0"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<!--LootWin-Glow-->
			<Texture name="$parentGlow" file="Interface\LootFrame\LootToast" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size>
					<AbsDimension x="286" y="109"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.00097656" right="0.28027344" top="0.00390625" bottom="0.42968750"/>	
			</Texture>
			<!--LootWin-Sheen-->
			<Texture name="$parentShine" file="Interface\LootFrame\LootToast" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="171" y="75"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="-10" y="12"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.1" order="1"/>
						<Translation offsetX="165" offsetY="0" duration="0.425" order="2"/>
						<Alpha startDelay="0.175" change="-1" duration="0.25" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.56347656" right="0.73046875" top="0.57421875" bottom="0.86718750"/>	
			</Texture>
		</Layer>		
	</Layers>
	<Scripts>
		<OnEnter>
			AlertFrame_StopOutAnimation(self);
			GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
			GameTooltip:SetHyperlink(self.hyperlink);
			GameTooltip:Show();
		</OnEnter>
		<OnLeave>
			AlertFrame_ResumeOutAnimation(self);
			GameTooltip:Hide();
		</OnLeave>
	</Scripts>
</Button>

<Button name="DungeonCompletionAlertFrame1" inherits="DungeonCompletionAlertFrameTemplate"/>

<Button name="ChallengeModeAlertFrame1" inherits="ChallengeModeAlertFrameTemplate"/>

<Button name="ScenarioAlertFrame1" inherits="ScenarioAlertFrameTemplate"/>

<Button name="LootWonAlertFrame1" inherits="LootWonAlertFrameTemplate">
	<Scripts>
		<OnLoad>
			table.insert(LOOT_WON_ALERT_FRAMES, self);
		</OnLoad>
	</Scripts>
</Button>

<Button name="MoneyWonAlertFrame1" inherits="MoneyWonAlertFrameTemplate">
	<Scripts>
		<OnLoad>
			table.insert(MONEY_WON_ALERT_FRAMES, self);
		</OnLoad>
	</Scripts>
</Button>

<Button name="DigsiteCompleteToastFrame" parent="UIParent" hidden="true" frameStrata="DIALOG" inherits="AlertFrameTemplate">
	<Size x="241" y="81"/>
	<Anchors>
		<Anchor point="BOTTOM" x="0" y="170"/>
	</Anchors>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture file="Interface\Archeology\ArcheologyToast">
				<Size x="241" y="81"/>	
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<TexCoords left="0.00390625" right="0.94531250" top="0.37500000" bottom="0.69140625"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<FontString parentKey="DigsiteType" inherits="GameFontWhite">
				<Anchors>
					<Anchor point="CENTER" x="28" y="-8"/>
				</Anchors>
			</FontString>
			<FontString parentKey="Title" inherits="GameFontWhiteSmall" text="ARCHAEOLOGY_DIGSITE_COMPLETE_TOAST_FRAME_TITLE">
				<Anchors>
					<Anchor point="CENTER" x="28" y="13"/>
				</Anchors>
			</FontString>
			<Texture parentKey="DigsiteTypeTexture">
				<Size x="90" y="90"/>
				<Anchors>
					<Anchor point="LEFT" relativeTo="DigsiteCompleteToastFrame" x="13" y="-14"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size>
					<AbsDimension x="300" y="162"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
			</Texture>
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size x="67" y="80"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="200" offsetY="0" duration="0.71" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
	<Scripts>
		<OnEnter>
			--Overiding the alertFrame onEnter so the DigsiteCompleteToastFrame animates out even if the player hovers their mouse over it.
		</OnEnter>
	</Scripts>
</Button>

<Button name="StorePurchaseAlertFrame" parent="UIParent" hidden="true" frameStrata="FULLSCREEN_DIALOG" frameLevel="63" inherits="AlertFrameTemplate">
	<Size x="294" y="84"/>
	<Animations>
		<AnimationGroup name="$parentAnimIn" parentKey="animIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup name="$parentWaitAndAnimOut" parentKey="waitAndAnimOut">
			<Alpha startDelay="4.05" change="-1" duration="1.5" parentKey="animOut">
				<Scripts>
					<OnFinished>
						self:GetRegionParent():Hide();
					</OnFinished>
				</Scripts>
			</Alpha>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<!--inherits="store-toast"-->
			<Texture parentKey="Background" file="Interface\Store\Store-Main">
				<TexCoords left="0.50878906" right="0.79589844" top="0.54199219" bottom="0.62402344"/>
			</Texture>
		</Layer>
		<Layer level="ARTWORK">
			<Texture parentKey="Icon">
				<Size x="44" y="44"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent" relativePoint="LEFT" x="21" y="0"/>
				</Anchors>
			</Texture>
			<FontString parentKey="Title" inherits="GameFontNormalLarge" text="BLIZZARD_STORE_PURCHASE_COMPLETE" justifyV="MIDDLE">
				<Size x="200" y="24"/>
				<Anchors>
					<Anchor point="TOP" relativeKey="$parent" relativePoint="TOP" x="30" y="-15"/>
				</Anchors>
			</FontString>
			<FontString parentKey="Description" inherits="GameFontHighlight" text="BLIZZARD_STORE_PURCHASE_COMPLETE_DESC">
				<Anchors>
					<Anchor point="BOTTOM" relativeKey="$parent" relativePoint="BOTTOM" x="30" y="23"/>
				</Anchors>
			</FontString>
		</Layer>
		<Layer level="OVERLAY">
			<Texture name="$parentGlow" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="glow">
				<Size>
					<AbsDimension x="375" y="175"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0" right="0.78125" top="0" bottom="0.66796875"/>
			</Texture>
			<Texture name="$parentShine" file="Interface\AchievementFrame\UI-Achievement-Alert-Glow" alphaMode="ADD" hidden="true" parentKey="shine">
				<Size>
					<AbsDimension x="67" y="85"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Animations>
					<AnimationGroup name="$parentAnimIn" parentKey="animIn">
						<Alpha change="1" duration="0.2" order="1"/>
						<Translation offsetX="200" offsetY="0" duration="0.71" order="2"/>
						<Alpha startDelay="0.35" change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():Hide();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<TexCoords left="0.78125" right="0.912109375" top="0" bottom="0.28125"/>
			</Texture>
		</Layer>
	</Layers>
</Button>

<Frame name="AlertFrame" parent="UIParent" hidden="true">
	<Size x="10" y="10"/>
	<Anchors>
		<Anchor point="BOTTOM" x="0" y="128"/>
	</Anchors>
	<Scripts>
		<OnLoad function="AlertFrame_OnLoad"/>
		<OnEvent function="AlertFrame_OnEvent"/>
	</Scripts>
</Frame>

</Ui>