<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">
	<CheckButton name="SpecialTalentFrameTabTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\SpellBook\SpellBook-SkillLineTab">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="-3" y="11"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				SpecialTalentFrameTab_OnClick();
			</OnClick>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				GameTooltip:SetText(this.tooltip);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<NormalTexture/>
		<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
	</CheckButton>
	<Texture name="SpecialTalentBranchTemplate" file="Interface\TalentFrame\UI-TalentBranches" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
	</Texture>
	<Texture name="SpecialTalentArrowTemplate" file="Interface\TalentFrame\UI-TalentArrows" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
	</Texture>
	<Button name="SpecialTalentButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentIconTexture"/>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentSlot" file="Interface\Buttons\UI-EmptySlot-White">
					<Size>
						<AbsDimension x="55" y="55"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentRankBorder" file="Interface\TalentFrame\TalentFrame-RankBorder">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentRank" font="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentRankBorder">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<Texture name="$parentPlannedBorder" file="Interface\TalentFrame\TalentFrame-RankBorder">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentPlanned" font="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentPlannedBorder">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:RegisterEvent("CHARACTER_POINTS_CHANGED");
				this.tabID = this:GetParent():GetID();
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnEvent>
				SpecialTalentFrameTalent_OnEvent();
			</OnEvent>
			<OnEnter>
				SpecialTalentButton_OnEnter();
				--GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
				--GameTooltip:SetTalent(this.tabID, this:GetID());
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				SpecialTalentFrameTalent_OnClick();
			</OnClick>
			<OnMouseWheel>
				SpecialTalentFrameTalent_OnMouseWheel(arg1);
			</OnMouseWheel>
		</Scripts>
	</Button>
	<Frame name="SpecialTalentFrameTabFrameTemplate" virtual="true">
		<Size>
				<AbsDimension x="293" y="256"/>
		</Size>			
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBackgroundTopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="23" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBackgroundTopRight">
					<Size>
						<AbsDimension x="35" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBackgroundTopLeft" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBackgroundBottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBackgroundTopLeft" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentBackgroundBottomRight">
					<Size>
						<AbsDimension x="35" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentBackgroundTopLeft" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentSpentPoints" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="18" y="-22"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentBranch1" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch2" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch3" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch4" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch5" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch6" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch7" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch8" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch9" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch10" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch11" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch12" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch13" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch14" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch15" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch16" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch17" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch18" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch19" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch20" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch21" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch22" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch23" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch24" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch25" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch26" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch27" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch28" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch29" inherits="SpecialTalentBranchTemplate"/>
				<Texture name="$parentBranch30" inherits="SpecialTalentBranchTemplate"/>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentTalent1" inherits="SpecialTalentButtonTemplate" id="1"/>
			<Button name="$parentTalent2" inherits="SpecialTalentButtonTemplate" id="2"/>
			<Button name="$parentTalent3" inherits="SpecialTalentButtonTemplate" id="3"/>
			<Button name="$parentTalent4" inherits="SpecialTalentButtonTemplate" id="4"/>
			<Button name="$parentTalent5" inherits="SpecialTalentButtonTemplate" id="5"/>
			<Button name="$parentTalent6" inherits="SpecialTalentButtonTemplate" id="6"/>
			<Button name="$parentTalent7" inherits="SpecialTalentButtonTemplate" id="7"/>
			<Button name="$parentTalent8" inherits="SpecialTalentButtonTemplate" id="8"/>
			<Button name="$parentTalent9" inherits="SpecialTalentButtonTemplate" id="9"/>
			<Button name="$parentTalent10" inherits="SpecialTalentButtonTemplate" id="10"/>
			<Button name="$parentTalent11" inherits="SpecialTalentButtonTemplate" id="11"/>
			<Button name="$parentTalent12" inherits="SpecialTalentButtonTemplate" id="12"/>
			<Button name="$parentTalent13" inherits="SpecialTalentButtonTemplate" id="13"/>
			<Button name="$parentTalent14" inherits="SpecialTalentButtonTemplate" id="14"/>
			<Button name="$parentTalent15" inherits="SpecialTalentButtonTemplate" id="15"/>
			<Button name="$parentTalent16" inherits="SpecialTalentButtonTemplate" id="16"/>
			<Button name="$parentTalent17" inherits="SpecialTalentButtonTemplate" id="17"/>
			<Button name="$parentTalent18" inherits="SpecialTalentButtonTemplate" id="18"/>
			<Button name="$parentTalent19" inherits="SpecialTalentButtonTemplate" id="19"/>
			<Button name="$parentTalent20" inherits="SpecialTalentButtonTemplate" id="20"/>
			<Frame name="$parentArrowFrame" setAllPoints="true">
				<Layers>
					<Layer level="OVERLAY">
						<Texture name="$parentArrow1" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow2" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow3" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow4" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow5" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow6" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow7" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow8" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow9" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow10" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow11" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow12" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow13" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow14" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow15" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow16" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow17" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow18" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow19" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow20" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow21" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow22" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow23" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow24" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow25" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow26" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow27" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow28" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow29" inherits="SpecialTalentArrowTemplate"/>
						<Texture name="$parentArrow30" inherits="SpecialTalentArrowTemplate"/>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
	</Frame>
</Ui>
