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

	<CheckButton name="ZSpellButtonTemplate" toplevel="true" frameStrata="MEDIUM" movable="true" parent="UIParent" virtual="true">
		<Size>
			<AbsDimension x="36" y="36"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture" setAllPoints="true" hidden="true"/>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentBackground" file="Interface\Buttons\UI-Quickslot2">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Model name="$parentCooldown" inherits="CooldownFrameTemplate"/>
			<Frame setAllPoints="true">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentCircle" file="Interface\Minimap\MiniMap-TrackingBorder">
							<Size>
								<AbsDimension x="100" y="100"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="20" y="-22"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				ZSpellButtonParent_OnLoad()
			</OnLoad>
			<OnEvent>
				ZSpellButtonParent_OnEvent()
			</OnEvent>
			<OnClick>
				ZSpellButtonParent_OnClick()
			</OnClick>
			<OnEnter>
				ZSpellButtonParent_OnEnter()
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
			<OnMouseUp>
				if ( this.isMoving ) then
					this:StopMovingOrSizing()
					this.isMoving = false
				end
			</OnMouseUp>
			<OnDragStart>
				if IsAltKeyDown() then
					this:StartMoving()
					this.isMoving = true
				end
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing()
				this.isMoving = false
			</OnDragStop>
		</Scripts>
		<NormalTexture file=""/>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
	</CheckButton>

	<CheckButton name="ZSpellButtonChildTemplate" toplevel="true" frameStrata="MEDIUM" movable="true" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="36" y="36"/>
		</Size>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture" setAllPoints="true" hidden="true"/>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentBackground" file="Interface\Buttons\UI-Quickslot2">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Model name="$parentCooldown" inherits="CooldownFrameTemplate"/>
		</Frames>
		<Scripts>
			<OnLoad>
				ZSpellButton_OnLoad()
			</OnLoad>
			<OnEvent>
				ZSpellButton_OnEvent()
			</OnEvent>
			<OnClick>
				ZSpellButton_OnClick()
			</OnClick>
			<OnEnter>
				ZSpellButton_OnEnter()
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide()
			</OnLeave>
		</Scripts>
		<NormalTexture file=""/>
		<PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
	</CheckButton>

</Ui>