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



	
	<!--size=512,512
<Texture name="LevelUp-WhiteLine-H.png" >
	<Size x="418" y="7"/>	
	<TexCoords left="0.00195313" right="0.81835938" top="0.00195313" bottom="0.01562500"/>	
</Texture>
<Texture name="LevelUp-GoldLine-H.png" >
	<Size x="418" y="7"/>	
	<TexCoords left="0.00195313" right="0.81835938" top="0.01953125" bottom="0.03320313"/>	
</Texture>
<Texture name="LevelUp-BlackBg-H.png" >
	<Size x="326" y="103"/>	
	<TexCoords left="0.00195313" right="0.63867188" top="0.03710938" bottom="0.23828125"/>	
</Texture>
<Texture name="LevelUp-Icon-Book.png" >
	<Size x="40" y="38"/>	
	<TexCoords left="0.64257813" right="0.72070313" top="0.03710938" bottom="0.11132813"/>	
</Texture>
<Texture name="Levelup-Icon-Lock.png" >
	<Size x="30" y="35"/>	
	<TexCoords left="0.64257813" right="0.70117188" top="0.11523438" bottom="0.18359375"/>	
</Texture>
<Texture name="LevelUp-GoldButton-V.png" >
	<Size x="21" y="22"/>	
	<TexCoords left="0.64257813" right="0.68359375" top="0.18750000" bottom="0.23046875"/>	
</Texture>
<Texture name="LevelUp-Icon-Arrow.png" >
	<Size x="30" y="34"/>	
	<TexCoords left="0.72460938" right="0.78320313" top="0.03710938" bottom="0.10351563"/>	
</Texture>
<Texture name="LevelUp-BlackBg-V.png" >
	<Size x="284" y="296"/>	
	<TexCoords left="0.00195313" right="0.55664063" top="0.24218750" bottom="0.82031250"/>	
</Texture>
<Texture name="LevelUp-GoldBg-V.png" >
	<Size x="223" y="115"/>	
	<TexCoords left="0.56054688" right="0.99609375" top="0.24218750" bottom="0.46679688"/>	
</Texture-->

	
	<Frame name="LevelUpSkillTemplate" virtual="true">
		<Animations>
			<AnimationGroup parentKey="sideAnimIn">
				<Alpha change="1" duration="0.4" order="2"/>
				<Scripts>
					<OnFinished>
						LevelUpDisplaySide_AnimStep(LevelUpDisplaySide);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
			<AnimationGroup parentKey="showAnim">
				<Alpha change="1" duration="0.5" order="1" />
				<Alpha change="-1" duration="0.5" startDelay="1.8" order="2"/>
				<Scripts>
					<OnFinished>
						LevelUpDisplay_AnimStep(LevelUpDisplay, false);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
		</Animations>
		<Size>
			<AbsDimension x="230" y="44"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" parentKey="icon">
					<Size x="36" y="36"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="8" y="0"/>
					</Anchors>
				</Texture>
			
				<FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="name">
					<Anchors>
						<Anchor point="BOTTOMLEFT"  relativeTo="$parentIcon" relativePoint="BOTTOMRIGHT" x="10" y="2"/>
					</Anchors>
				</FontString>
				<FontString name="$parentSubText" inherits="GameFontNormal" justifyH="LEFT" parentKey="flavorText">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentName" relativePoint="TOPLEFT" x="0" y="1"/>
					</Anchors>
					<Color r="0.0" g="1.0" b="0.0"/>
				</FontString>

				<FontString name="$parentUpperWhite" parentKey="upperwhite" inherits="SystemFont_Shadow_Large" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentIcon" x="10" y="6"/>
					</Anchors>
				</FontString>
				<FontString name="$parentBottomGiant" parentKey="bottomGiant" inherits="GameFont_Gigantic" justifyH="LEFT" justifyV="BOTTOM">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parentIcon" x="10" y="-6"/>
					</Anchors>
				</FontString>

				<!-- Pet Battle Capture with Rarity -->
				<FontString name="$parentRarityUpperWhite" parentKey="rarityUpperwhite" inherits="SystemFont_Shadow_Large" justifyH="LEFT" justifyV="TOP">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentIcon" x="10" y="12"/>
					</Anchors>
				</FontString>
				<FontString name="$parentRarityBottomHuge" parentKey="rarityMiddleHuge" inherits="GameFontNormalHuge" justifyH="LEFT" justifyV="BOTTOM">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentIcon" x="10" y="1"/>
					</Anchors>
				</FontString>
				<Texture name="$parentRarityIcon" parentKey="rarityIcon" file="Interface\PetBattles\PetBattle-StatIcons" hidden="true">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parentIcon" x="10" y="-8"/>
					</Anchors>
					<TexCoords left="0.5" right="1.0" top="0.0" bottom="0.5"/>
				</Texture>
				<FontString name="$parentRarityValue" inherits="GameFontHighlight" parentKey="rarityValue" text="" hidden="true">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentRarityIcon" relativePoint="RIGHT" x="2" y="0"/>
					</Anchors>
				</FontString>

				<!-- Spell bucket -->
				<FontString parentKey="middleName" inherits="GameFontNormalLarge" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.icon" relativePoint="RIGHT" x="10" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentIconBorder" parentKey="iconBorder" file="Interface\Common\WhiteIconFrame" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeKey="$parent.icon"/>
						<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.icon"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="2">
				<Texture name="$parentSubIcon" parentKey="subIcon" file="Interface\LevelUp\LevelUpTex">
					<Size x="22" y="22"/>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentIcon" relativePoint="BOTTOMLEFT" x="2" y="2"/>
					</Anchors>
				</Texture>
				<Texture name="$parentSubIconRight" parentKey="subIconRight" file="Interface\LevelUp\LevelUpTex" hidden="true">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentIcon" relativePoint="BOTTOMRIGHT" x="-2" y="2"/>
					</Anchors>
					<Size x="22" y="22"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="LevelUpDraenorTalentTemplate" virtual="true">
		<Animations>
			<AnimationGroup parentKey="sideAnimIn">
				<Alpha change="1" duration="0.4" order="2"/>
				<Scripts>
					<OnFinished>
						LevelUpDisplaySide_AnimStep(LevelUpDisplaySide);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
			<AnimationGroup parentKey="showAnim">
				<Alpha change="1" duration="0.4" order="1" />
				<Alpha change="0" duration="0.87" order="1">
					<Scripts>
						<OnPlay>
							self:SetScript("OnUpdate", LevelUpDraenorTalent_SpinnerUpdate);
						</OnPlay>
						<OnStop>
							self:SetScript("OnUpdate", nil);
						</OnStop>
						<OnFinished>
							self:SetScript("OnUpdate", nil);
						</OnFinished>
					</Scripts>
				</Alpha>
				<Alpha duration="0" smoothing="IN" order="1" change="1" childKey="LeftCap"/>
				<Alpha duration="0" smoothing="IN" order="1" change="1" childKey="RightCap"/>
				<Alpha startDelay="0.5" duration="0.37" smoothing="IN" order="1" change="-1" childKey="SpinningPlateLeft"/>
				<Alpha startDelay="0.5" duration="0.37" smoothing="IN" order="1" change="-1" childKey="SpinningPlateRight"/>
				<Alpha startDelay="0.87" duration="0.01" order="1" change="-1" childKey="LeftCap"/>
				<Alpha startDelay="0.87" duration="0.01" order="1" change="-1" childKey="RightCap"/>
				<Alpha targetKey="$parent.$parent.Icon" startDelay="0.53" smoothing="IN_OUT" duration="0.4" order="1" change="1"/>
                <Translation targetKey="$parent.$parent.Icon" startDelay="0.53" smoothing="IN_OUT" duration="0.4" order="1" offsetX="-240"/>
                <Alpha childKey="book" startDelay="0.07" duration="0.27" order="2" change="1"/>
                <Alpha childKey="book2" startDelay="0.07" smoothing="IN_OUT" duration="0.27" order="2" change="1"/>
                <Alpha childKey="book2" smoothing="IN" duration="0.73" order="3" change="-1"/>
                <Alpha childKey="Icon2" startDelay="0.07" smoothing="IN_OUT" duration="0.27" order="2" change="1"/>
                <Alpha childKey="Icon2" smoothing="IN" duration="0.73" order="3" change="-1"/>
                <Alpha childKey="spelltext" startDelay="0.07" duration="0.27" order="2" change="1"/>
                <Translation startDelay="0.66" smoothing="IN_OUT" duration="0.54" order="4" offsetX="-289"/>
                <Alpha startDelay="0.66" smoothing="IN" duration="0.27" order="4" change="-0.2"/>
                <Alpha startDelay="0.93" smoothing="OUT" duration="0.27" order="4" change="0.2"/>
                <Alpha childKey="descriptionshadow" startDelay="0.07" smoothing="IN_OUT" duration="0.5" order="5" change="1"/>
                <Alpha childKey="descriptiontext" startDelay="0.07" smoothing="IN_OUT" duration="0.5" order="5" change="1"/>
                <Alpha startDelay="10.23" smoothing="OUT" duration="0.6" order="6" change="-1"/>
				<Scripts>
					<OnFinished>
						LevelUpDisplay_AnimStep(LevelUpDisplay, false);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
		</Animations>
		<Size x="230" y="44"/>
		<Layers>
			<Layer level="BORDER">
				<Texture parentKey="Backplate" atlas="minortalents-backplate" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
				<Texture parentKey="descriptionshadow" hidden="false" alpha="0" atlas="minortalents-descriptionshadow" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.Backplate"/>
                    </Anchors>
                </Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="SpinningPlateLeft" atlas="_minortalents-iconspinner" alpha="1">
					<Size x="222" y="45"/>
					<Anchors>
						<Anchor point="LEFT" x="8" y="12"/>
					</Anchors>
					<TexCoords left="0" right="0.43359375" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="SpinningPlateRight" atlas="_minortalents-iconspinner" hidden="true" alpha="1">
					<Size x="1" y="45"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.SpinningPlateLeft" relativePoint="RIGHT"/>
					</Anchors>
				</Texture>
				<Texture parentKey="Icon" alpha="0">
					<Size x="38" y="38"/>
					<Anchors>
						<Anchor point="CENTER" x="120" y="12"/>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormalLarge" text="LEVEL_UP_DRAENOR_TALENT">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Backplate" x="0" y="1"/>
					</Anchors>
					<Color r="0.0" g="1.0" b="0.0"/>
				</FontString>
				<FontString parentKey="spelltext" inherits="GameFontNormalLarge" alpha="0">
                    <Anchors>
                        <Anchor point="LEFT"  relativeKey="$parent.Icon" relativePoint="RIGHT" x="-230" y="0"/>
                    </Anchors>
                </FontString>
				<FontString parentKey="descriptiontext" inherits="GameFontNormalSmall2" alpha="0" justifyV="TOP">
					<Size x="256" y="0"/>
					<Anchors>
						<Anchor point="TOP" relativePoint="TOP" relativeKey="$parent.descriptionshadow" y="-16"/>
					</Anchors>
					<Color r="1" b="1" g="1"/>
				</FontString>
			</Layer>
            <Layer level="ARTWORK" textureSubLevel="1">
                <Texture parentKey="Icon2" hidden="false" alpha="0" alphaMode="ADD">
                   <Size x="38" y="38"/>
                    <Anchors>
                        <Anchor point="CENTER" relativeKey="$parent.Icon" x="-240" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="2">
				<Texture parentKey="LeftCap" atlas="minortalents-iconcover" useAtlasSize="true" alpha="0">
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.SpinningPlateLeft" relativePoint="LEFT"/>
					</Anchors>
				</Texture>
				<Texture parentKey="RightCap" atlas="minortalents-iconcover" useAtlasSize="true" alpha="0">
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.SpinningPlateRight" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="book" atlas="minortalents-icon-book" alpha="0">
					<Size x="22" y="22"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Icon" relativePoint="BOTTOMLEFT" x="-242" y="2"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="1">
				<Texture parentKey="book2" alpha="0" alphaMode="ADD" atlas="minortalents-icon-book">
                    <Size x="22" y="22"/>
                    <Anchors>
                        <Anchor relativeKey="$parent.book"/>
                    </Anchors>
                </Texture>
            </Layer>
		</Layers>
		<Scripts>
			<OnLoad function="LevelUpDraenorTalent_OnLoad"/>
		</Scripts>
	</Frame>

	<Frame name="SpellBucketSpellTemplate" parentArray="BucketIcons" virtual="true">
		<Size x="56" y="56"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="icon">
					<Size x="36" y="36"/>
					<Anchors>
						<Anchor point="TOP"/>
					</Anchors>
				</Texture>
			
				<FontString  parentKey="name" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="TOP" wordwrap="true">
					<Size x="56" y="20"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.icon" relativePoint="BOTTOM" x="0" y="-4"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="LevelUpDisplay" toplevel="true" parent="UIParent" hidden="true">
		<Animations>
			<AnimationGroup parentKey="hideAnim">
				<Alpha change="-1" duration="1.0" order="1" />
				<Scripts>
					<OnFinished function="LevelUpDisplay_AnimOutFinished"/>
				</Scripts>
			</AnimationGroup>
			<AnimationGroup parentKey="fastHideAnim">
				<Alpha change="-1" duration="0.5" order="1" />
				<Scripts>
					<OnFinished function="LevelUpDisplay_AnimOutFinished"/>
				</Scripts>
			</AnimationGroup>
		</Animations>
		<Size x="418" y="72"/>
		<Anchors>
			<Anchor point="TOP" x="0" y="-190"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentBlackBg" parentKey="blackBg">
					<Animations>
						<AnimationGroup parentKey="grow">
							<Scale scaleX="1.0" scaleY="0.001" duration="0.0" startDelay="1.5" order="1" parentKey="anim1">
								 <Origin point="BOTTOM">
									<Offset x="0" y="0"/>
								 </Origin>
							</Scale>
							<Scale scaleX="1.0" scaleY="1000.0" startDelay="0.25" duration="0.15" order="2">
								 <Origin point="BOTTOM">
									<Offset x="0" y="0"/>
								 </Origin>
							</Scale>
						</AnimationGroup>
					</Animations>
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="0"/>
					</Anchors>
					<Size x="326" y="103"/>	
					<TexCoords left="0.00195313" right="0.63867188" top="0.03710938" bottom="0.23828125"/>
					<Color r="1.0" g="1.0" b="1.0" a="0.6"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="2">
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentGLine2" parentKey="gLine2">
					<Animations>
						<AnimationGroup parentKey="grow">
							<Scale scaleX="0.001" scaleY="1.0" duration="0.0" startDelay="1.5" order="1" parentKey="anim1"/>
							<Scale scaleX="1000.0" scaleY="1.0" duration="0.5" order="2"/>
						</AnimationGroup>
					</Animations>
					<Anchors>
						<Anchor point="TOP" x="0" y="0"/>
					</Anchors>
					<Size x="418" y="7"/>
				</Texture>
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentGLine" parentKey="gLine">
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="0"/>
					</Anchors>
					<Size x="418" y="7"/>
					<Animations>
						<AnimationGroup parentKey="grow">
							<Scale scaleX="0.001" scaleY="1.0" duration="0.0" startDelay="1.5" order="1" parentKey="anim1"/>
							<Scale scaleX="1000.0" scaleY="1.0" duration="0.5" order="2"/>
							<Scripts>
								<OnPlay>
									LevelUpDisplayBlackBg:Show();
									LevelUpDisplayGLine:Show();
									LevelUpDisplayGLine2:Show();
									LevelUpDisplayGLine2.grow:Play();
									LevelUpDisplayBlackBg.grow:Play();
								</OnPlay>
							</Scripts>
						</AnimationGroup>
					</Animations>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame  name="$parentLevelFrame" parentKey="levelFrame" alpha="0">
				<Animations>
					<AnimationGroup parentKey="levelUp">
						<Alpha change="1" duration="0.7" startDelay="1.5" order="1" />
						<Alpha change="-1" duration="0.5" startDelay="1.5" order="2"/>
						<Scripts>
							<OnPlay>
								LevelUpDisplayGLine.grow:Play();
							</OnPlay>
							<OnFinished>
								LevelUpDisplay_AnimStep(LevelUpDisplay, false);
							</OnFinished>
						</Scripts>
					</AnimationGroup>
					<AnimationGroup parentKey="fastReveal">
						<Alpha change="1" duration="0.7" startDelay="0.5" order="1" />
						<Alpha change="-1" duration="0.5" startDelay="1.5" order="2"/>
						<Scripts>
							<OnPlay>
								LevelUpDisplayGLine.grow:Play();
							</OnPlay>
							<OnFinished>
								LevelUpDisplay_AnimStep(LevelUpDisplay, true);
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<Size x="418" y="72"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parentLevel" inherits="GameFont_Gigantic" justifyH="CENTER" parentKey="levelText">
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="5"/>
							</Anchors>
							<Color r="1.0" g="0.82" b="0"/>
						</FontString>
						<FontString inherits="SystemFont_Shadow_Large" justifyH="CENTER" parentKey="reachedText">
							<Anchors>
								<Anchor point="BOTTOM" relativeTo="$parentLevel" relativePoint="TOP" x="0" y="5"/>
							</Anchors>
						</FontString>
						<FontString name="$parentTextLine" inherits="GameFont_Gigantic" parentKey="singleline" text="">
							<Anchors>
								<Anchor point="CENTER" y="-4"/>
							</Anchors>
						</FontString>
						<FontString name="$parentBlockText" inherits="GameFontNormalHuge" parentKey="blockText">
							<Anchors>
								<Anchor point="CENTER" y="-4"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentScenarioFrame" parentKey="scenarioFrame" alpha="0">
				<Animations>
					<AnimationGroup parentKey="newStage">
						<Alpha change="1" duration="0.7" endDelay="4.5" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnPlay>
								LevelUpDisplay.scenarioFiligree:Show();
								LevelUpDisplay.extraFrame = LevelUpDisplay.scenarioFiligree;
								LevelUpDisplayGLine.grow:Play();
								LevelUpDisplay.scenarioBits.fadeIn:Play();
							</OnPlay>
							<OnFinished>
								LevelUpDisplay_AnimOut();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<Size x="418" y="72"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString inherits="DestinyFontHuge" justifyH="CENTER" parentKey="level">
							<Anchors>
								<Anchor point="TOP" x="0" y="-14"/>
							</Anchors>
							<Color r="1" g="0.914" b="0.682"/>
						</FontString>
						<FontString inherits="SystemFont_Shadow_Large" justifyH="CENTER" parentKey="name">
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="8"/>
							</Anchors>
							<Color r="1" g="0.831" b="0.381"/>
						</FontString>
						<FontString inherits="SystemFont_Shadow_Large" justifyH="CENTER" parentKey="description">
							<Size x="300" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-12"/>
							</Anchors>
							<Color r="1" g="0.831" b="0.381"/>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="scenarioBits" alpha="0" setAllPoints="true">
				<Animations>
					<AnimationGroup parentKey="fadeIn">
						<Alpha change="1" duration="0.7" startDelay="0.7" endDelay="3.8" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
					</AnimationGroup>
				</Animations>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\Scenarios\ScenariosParts" alphaMode="ADD" alpha="0.3">
							<Size x="249" y="31"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-6"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.48828125" top="0.41796875" bottom="0.47851563"/>
						</Texture>
						<Texture file="Interface\Scenarios\ScenariosParts" alphaMode="ADD" alpha="0.3">
							<Size x="249" y="31"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.48828125" bottom="0.41796875" top="0.47851563"/>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="480" y="35"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-6"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.74804688" top="0.00195313" bottom="0.07031250"/>							
						</Texture>
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="480" y="35"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.74804688" bottom="0.00195313" top="0.07031250"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="scenarioFiligree" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="OVERLAY">
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="61" y="19"/>
							<Anchors>
								<Anchor point="TOP" x="0" y="4"/>
							</Anchors>
							<TexCoords left="0.75195313" right="0.87109375" top="0.00195313" bottom="0.03906250"/>
						</Texture>
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="61" y="19"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="-10"/>
							</Anchors>
							<TexCoords left="0.75195313" right="0.87109375" bottom="0.00195313" top="0.03906250"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentChallengeModeFrame" parentKey="challengeModeFrame" alpha="0">
				<Animations>
					<AnimationGroup parentKey="challengeComplete">
						<Alpha change="1" duration="0.7" endDelay="2.5" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnPlay>
								LevelUpDisplayGLine.grow:Play();
								if ( not self.showMedal ) then
									LevelUpDisplay.challengeModeBits.fadeIn:Play();
								end
							</OnPlay>
							<OnFinished>
								LevelUpDisplay_AnimOut();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<Size x="418" y="72"/>
				<Anchors>
					<Anchor point="TOPLEFT"/>
					<Anchor point="BOTTOMRIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString inherits="DestinyFontHuge" justifyH="CENTER" parentKey="MedalEarned">
							<Anchors>
								<Anchor point="TOP" x="0" y="-14"/>
							</Anchors>
							<Color r="0.87" g="0.80" b="0.61"/>
						</FontString>
						<FontString inherits="SystemFont_Shadow_Large" justifyH="CENTER" parentKey="RecordTime">
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="8"/>
							</Anchors>
							<Color r="1" g="0.82" b="0"/>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="challengeModeBits" alpha="0" setAllPoints="true">
				<Animations>
					<AnimationGroup parentKey="fadeIn">
						<Alpha change="1" duration="0.7" startDelay="0.7" endDelay="2.3" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
					</AnimationGroup>
				</Animations>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="MedalFlare" file="Interface\Challenges\challenges-main">
							<Size x="222" y="106"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-8"/>
							</Anchors>
							<TexCoords left="0.71972656" right="0.93652344" top="0.00195313" bottom="0.20898438"/>
						</Texture>
					</Layer>
					<Layer level="BORDER">
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="480" y="35"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-6"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.74804688" top="0.00195313" bottom="0.07031250"/>
						</Texture>
						<Texture file="Interface\Scenarios\ScenariosParts">
							<Size x="480" y="35"/>
							<Anchors>
								<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0.00195313" right="0.74804688" bottom="0.00195313" top="0.07031250"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture parentKey="BottomFiligree" file="Interface\Scenarios\ScenariosParts">
							<Size x="61" y="19"/>
							<Anchors>
								<Anchor point="BOTTOM" x="0" y="-10"/>
							</Anchors>
							<TexCoords left="0.75195313" right="0.87109375" bottom="0.00195313" top="0.03906250"/>
						</Texture>
						<Texture parentKey="MedalIcon">
							<Size x="102" y="102"/>
							<Anchors>
								<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-22"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="SpellBucketFrame" setAllPoints="true" alpha="0">
				<Animations>
					<AnimationGroup parentKey="bucketUnlocked">
						<Alpha change="1" duration="0.7" startDelay="1.5" endDelay="2.5" order="1"/>
						<Alpha change="-1" duration="0.5" order="2"/>
						<Scripts>
							<OnPlay>
								LevelUpDisplayGLine.grow:Play();
							</OnPlay>
							<OnFinished>
								LevelUpDisplay_AnimStep(LevelUpDisplay, false);
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
				<Size x="230" y="44"/>
				<Frames>
					<Frame parentKey="SpellBucketDisplay" setAllPoints="true">
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Name" inherits="GameFontNormal" justifyH="CENTER">
									<Size x="0" y="20"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-14"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame inherits="SpellBucketSpellTemplate"/>
						</Frames>
					</Frame>
					<Frame parentKey="AllAbilitiesUnlocked" setAllPoints="true">
						<Layers>
							<Layer level="ARTWORK">
								<Texture name="$parentIcon" parentKey="icon">
									<Size x="36" y="36"/>
									<Anchors>
										<Anchor point="CENTER" x="-96" y="0"/>
									</Anchors>
								</Texture>
							
								<FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="name" text="SPELL_BUCKET_ALL_ABILITIES_UNLOCKED">
									<Anchors>
										<Anchor point="LEFT"  relativeTo="$parentIcon" relativePoint="RIGHT" x="10" y="0"/>
									</Anchors>
									<Color r="0" g="1" b="0"/>
								</FontString>
							</Layer>
							<Layer level="OVERLAY" textureSubLevel="2">
								<Texture name="$parentSubIcon" parentKey="subIcon" file="Interface\LevelUp\LevelUpTex">
									<Size x="22" y="22"/>
									<Anchors>
										<Anchor point="CENTER" relativeTo="$parentIcon" relativePoint="BOTTOMLEFT" x="2" y="2"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Frame>
			<Frame name="$parentSpellFrame" inherits="LevelUpSkillTemplate" parentKey="spellFrame" alpha="0">
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="5"/>
				</Anchors>
			</Frame>
			<Frame parentKey="DraenorTalentFrame" inherits="LevelUpDraenorTalentTemplate" alpha="0">
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="5"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="LevelUpDisplay_OnLoad"/>
			<OnEvent function="LevelUpDisplay_OnEvent"/>
		</Scripts>
	</Frame>
	

	
	<Button name="LevelUpDisplaySide" enableMouse="true" toplevel="true" parent="UIParent" hidden="true">
		<Animations>
			<AnimationGroup parentKey="fadeIn">
				<Alpha change="-1" duration="0.0" order="1" />
				<Alpha change="1" duration="0.5" order="2" />
				<Scripts>
					<OnFinished>
						LevelUpDisplaySide_AnimStep(LevelUpDisplaySide);
					</OnFinished>
				</Scripts>
			</AnimationGroup>
			<AnimationGroup parentKey="fadeOut">
				<Alpha change="-1" duration="1.0" order="1" />
				<Scripts>
					<OnFinished>
						LevelUpDisplaySide:Hide();
					</OnFinished>
				</Scripts>
			</AnimationGroup>
		</Animations>
		<Size x="270" y="65"/>
		<Anchors>
			<Anchor point="TOPRIGHT"  relativeTo="LevelUpDisplay" relativePoint="TOPLEFT" x="20" y="20"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentGoldBg" parentKey="goldBG">
					<Anchors>
						<Anchor point="TOP" x="0" y="53"/>
					</Anchors>
					<Size x="223" y="115"/>
				</Texture>
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentBlackBg">
					<Size x="284" y="296"/>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentGoldBg" relativePoint="BOTTOM"/>
					</Anchors>
					<Color r="1.0" g="1.0" b="1.0" a="0.6"/>
					<TexCoords left="0.00195313" right="0.55664063" top="0.24218750" bottom="0.82031250"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="2">
				<Texture file="Interface\LevelUp\LevelUpTex" name="$parentDot" parentKey="dot">
					<Size x="21" y="22"/>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentGoldBg" relativePoint="BOTTOM" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentLevel" inherits="GameFont_Gigantic" justifyH="CENTER" parentKey="levelText">
					<Anchors>
						<Anchor point="BOTTOM" relativeTo="$parentGoldBg" relativePoint="BOTTOM" x="0" y="5"/>
					</Anchors>
					<Color r="1.0" g="0.82" b="0"/>
				</FontString>
				<FontString inherits="SystemFont_Shadow_Large" justifyH="CENTER" parentKey="reachedText">
					<Anchors>
						<Anchor point="BOTTOM" relativeTo="$parentLevel" relativePoint="TOP" x="0" y="5"/>
					</Anchors>
				</FontString>
				<FontString parentKey="spellBucketName" inherits="GameFontNormalLarge" justifyH="CENTER" hidden="true">
					<Anchors>
						<Anchor point="BOTTOM" relativeTo="$parentGoldBg" relativePoint="BOTTOM" x="0" y="5"/>
					</Anchors>
				</FontString>
				<FontString parentKey="abilitiesUnlocked" inherits="GameFontHighlight" justifyH="CENTER" text="SPELL_BUCKET_ABILITIES_UNLOCKED" hidden="true">
					<Anchors>
						<Anchor point="BOTTOM" relativeKey="$parent.spellBucketName" relativePoint="TOP" x="0" y="5"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentUnlockFrame1" inherits="LevelUpSkillTemplate" alpha="0">
				<Anchors>
					<Anchor point="TOP"  relativeTo="$parentGoldBg" relativePoint="BOTTOM" x="-20" y="-3"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
			</OnLoad>
			<OnHide function="LevelUpDisplaySide_OnHide"/>
			<OnShow function="LevelUpDisplaySide_OnShow"/>
			<OnClick function="LevelUpDisplaySide_Remove"/>
		</Scripts>
	</Button>
	
</Ui>