<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="DraenorZoneAbility.lua"/>
	<Frame name="DraenorZoneAbilityFrame" parent="UIParent" hidden="true">
		<Size x="64" y="64"/>
		<Anchors>
			<Anchor point="BOTTOM" x="0" y="160"/>
		</Anchors>
		<Frames>
			<Button parentKey="SpellButton">
				<Size x="52" y="52"/>
				<Anchors>
					<Anchor point="CENTER" x="0" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="Icon"/>
					</Layer>
					<Layer level="OVERLAY">
						<Texture parentKey="Style" file="Interface\ExtraButton\GarrZoneAbility-BarracksAlliance">
							<Size x="256" y="128"/>
							<Anchors>
								<Anchor point="CENTER" x="-2" y="0"/>
							</Anchors>
						</Texture>
						<FontString parentKey="Count" inherits="NumberFontNormal" justifyH="RIGHT">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Cooldown parentKey="Cooldown" inherits="CooldownFrameTemplate" useParentLevel="true"/>
				</Frames>
				<Scripts>
					<OnLoad>
						self:RegisterForDrag("LeftButton");
					</OnLoad>
					<OnClick>
						CastSpellByName(self.spellName);
					</OnClick>
					<OnDragStart>
						PickupSpell(self.spellID);
					</OnDragStart>
					<OnEnter>
						GameTooltip:SetOwner(self);
						GameTooltip:SetSpellByID(self.currentSpellID);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" parentKey="NormalTexture" file="Interface\Buttons\UI-Quickslot2">
					<Anchors>
						<Anchor point="TOPLEFT" x="-15" y="15"/>
						<Anchor point="BOTTOMRIGHT" x="15" y="-15"/>
					</Anchors>
				</NormalTexture>
				<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
				<CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
			</Button>
		</Frames>		
		<Scripts>
			<OnLoad function="DraenorZoneAbilityFrame_OnLoad"/>
			<OnEvent function="DraenorZoneAbilityFrame_OnEvent"/>
			<OnShow function="DraenorZoneAbilityFrame_OnShow"/>
			<OnHide function="DraenorZoneAbilityFrame_OnHide"/>
		</Scripts>
	</Frame>

	<Frame name="DraenorZoneAbilityButtonAlert" inherits="MicroButtonAlertTemplate" parent="DraenorZoneAbilityFrame" frameStrata="MEDIUM" topLevel="false">
		<Anchors>
			<Anchor point="BOTTOM" relativeTo="DraenorZoneAbilityFrame" relativePoint="TOP" x="0" y="8"/>
		</Anchors>
		<Scripts>
			<OnLoad>
				MicroButtonAlert_OnLoad(self);
				self.Text:SetText(DRAENOR_ZONE_ABILITY_TUTORIAL);
			</OnLoad>
			<OnShow>
				self:SetHeight(self.Text:GetHeight()+42);
				self:SetFrameLevel(self:GetParent():GetFrameLevel()+3);
			</OnShow>
		</Scripts>
	</Frame>
</Ui>