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

<Frame name="ArcheologyDigsiteProgressBar" parent="UIParent" hidden="true">
	<Size x="240" y="24"/>
	<Anchors>
		<Anchor point="BOTTOM" relativeTo="CastingBarFrame" relativePoint="Top" x="0" y="10"/>
	</Anchors>
	<Animations>
		<AnimationGroup parentKey="AnimIn">
			<Alpha change="-1" duration="0" order="1"/>
			<Alpha change="1" duration="0.2" order="2"/>
		</AnimationGroup>
		<AnimationGroup parentKey="AnimOut">
			<Alpha change="-1" duration="0.2" order="1"/>
			<Scripts>
				<OnFinished>
					self:GetParent():Hide();
				</OnFinished>
			</Scripts>
		</AnimationGroup>
		<AnimationGroup parentKey="AnimOutAndTriggerToast">
			<Alpha startDelay="1.3" change="-1" duration="0.2" order="1"/>
			<Scripts>
				<OnFinished>
					DigsiteCompleteToastFrame_ShowAlert(self:GetParent().researchFieldID);
					self:GetParent():Hide();
				</OnFinished>
			</Scripts>
		</AnimationGroup>
	</Animations>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture parentKey="Shadow" file="Interface\Archeology\ArcheologyToast" virtual="true">
				<Size x="212" y="52"/>
				<Color r="0" g="0" b="0"/>
				<TexCoords left="0.00390625" right="0.83203125" top="0.16406250" bottom="0.36718750"/>	
				<Anchors>
					<Anchor point="CENTER" x="0" y="1"/>
				</Anchors>
			</Texture>
		</Layer>
		<Layer level="BACKGROUND" textureSubLevel="1">
			<Texture parentKey="BarBackground" file="Interface\Archeology\ArcheologyToast" virtual="true">
				<Size x="188" y="9"/>	
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<TexCoords left="0.00390625" right="0.73828125" top="0.00390625" bottom="0.03906250"/>
			</Texture>
		</Layer>
		<!-- The BORDER layer level is used by the FillBar -->
		<Layer level="ARTWORK">
			<Texture parentKey="BarBorderAndOverlay" file="Interface\Archeology\ArcheologyToast">
				<Size x="196" y="17"/>	
				<TexCoords left="0.00390625" right="0.76953125" top="0.08984375" bottom="0.15625000"/>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
			</Texture>
			<FontString parentKey="BarTitle" inherits="GameFontWhiteSmall" text="ARCHAEOLOGY_DIGSITE_PROGRESS_BAR_TITLE">
				<Anchors>
					<Anchor point="CENTER" x="0" y="12"/>
				</Anchors>
			</FontString>
		</Layer>
		<Layer level="OVERLAY">
			<Texture parentKey="Flash" file="Interface\Archeology\ArcheologyToast" alphaMode="ADD" hidden="true" virtual="true">
				<Size x="210" y="23"/>	
				<TexCoords left="0.00390625" right="0.83203125" top="0.16406250" bottom="0.36718750"/>	
				<Anchors>
					<Anchor point="CENTER" x="0" y="0"/>
				</Anchors>
				<Animations>
					<AnimationGroup 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>
			</Texture>
		</Layer>
	</Layers>
	<Frames>
		<StatusBar useParentLevel="true" drawLayer="BORDER" parentKey="FillBar">
			<Size x="188" y="9"/>
			<BarTexture file="Interface\Archeology\Arch-Progress-Fill"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</StatusBar>
	</Frames>
	<Scripts>
		<OnLoad>
			ArcheologyDigsiteProgressBar_OnLoad(self);
		</OnLoad>
		<OnHide>
			ArcheologyDigsiteProgressBar_OnHide(self);
		</OnHide>
		<OnShow>
			ArcheologyDigsiteProgressBar_OnShow(self);
		</OnShow>
		<OnEvent>
			ArcheologyDigsiteProgressBar_OnEvent(self, event, ...);
		</OnEvent>
	</Scripts>
</Frame>
</Ui>