<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="SpecialTalentUI.lua"/>
	<Include file="SpecialTalentUITemplates.xml"/>
	<Frame name="SpecialTalentFrame" enableMouse="true" movable="true" toplevel="true" parent="UIParent" frameStrata="HIGH" hidden="true">
		<Size>
			<AbsDimension x="900" y="586"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="12" right="40" top="12" bottom="71"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="SpecialTalentFramePortrait">
					<Size>
						<AbsDimension x="60" y="60"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="SpecialTalentFrameBorder_TopLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_TopLeft2" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="258" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_TopLeft3" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="514" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_TopLeft4" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						AbsDimension x="10" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="524" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.3" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_TopRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_Left" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						AbsDimension x="10" y="76"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-128"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0.5" bottom=".6"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_Right" file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
					<Size>
						<AbsDimension x="128" y="76"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-256"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0.5" bottom=".6"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_BottomLeft" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_BottomLeft2" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="258" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.25" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_BottomLeft3" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="514" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.25" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_BottomLeft4" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="524" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.25" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="SpecialTalentFrameBorder_BottomRight" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="SpecialTalentFrameTitleText" font="GameFontNormal" text="SPECIAL_TALENT">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-19"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFrameLearnedPointsText" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="-25" y="-60"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFramePlannedPointsText" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="-25" y="-81"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFrameTalentPointsText" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="25" y="-60"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFrameTalentPoints" font="GameFontNormalSmall" text="TALENT_POINTS">
					<Anchors>
						<Anchor point="LEFT" relativeTo="SpecialTalentFrameTalentPointsText" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFrameUnspentPointsText" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="TOP">
							<Offset>
								<AbsDimension x="25" y="-81"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="SpecialTalentFrameUnspentPoints" font="GameFontNormalSmall" text="UNSPENT_POINTS">
					<Anchors>
						<Anchor point="LEFT" relativeTo="SpecialTalentFrameUnspentPointsText" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="SpecialTalentFrameTabFrame1" inherits="SpecialTalentFrameTabFrameTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="SpecialTalentFrameTabFrame2" inherits="SpecialTalentFrameTabFrameTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="278" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="SpecialTalentFrameTabFrame3" inherits="SpecialTalentFrameTabFrameTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="556" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<CheckButton name="SpecialTalentFrameLearnedCheckButton">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativePoint="TOP">
						<Offset>
							<AbsDimension x="-165" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentText" font="GameFontNormalSmall" text="TALENTS_LEARNED">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="-2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
				<Scripts>
					<OnShow>
				if ( SpecialTalentFrame.learnMode=="learned" ) then
						this:SetChecked(1);
				else
						this:SetChecked(0);
				end
					</OnShow>
					<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
				this:SetChecked(1);
				SpecialTalentFramePlannedCheckButton:SetChecked(0);
				SpecialTalentFrame.learnMode = "learned";
				SpecialTalentFrame_Update();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SpecialTalentFramePlannedCheckButton">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativePoint="TOP">
						<Offset>
							<AbsDimension x="-165" y="-81"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentText" font="GameFontNormalSmall" text="TALENTS_PLANNED">
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="-2" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
				<Scripts>
					<OnShow>
				if ( SpecialTalentFrame.learnMode=="planned" ) then
						this:SetChecked(1);
				else
						this:SetChecked(0);
				end
					</OnShow>
					<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
				this:SetChecked(1);
				SpecialTalentFrameLearnedCheckButton:SetChecked(0);
				SpecialTalentFrame.learnMode = "planned";
				SpecialTalentFrame_Update();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SpecialTalentFrameForceShiftCheckButton">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="215" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentText" font="GameFontNormalSmall" text="SHIFT_CLICK_LEARN_TALENT">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
				<Scripts>
					<OnShow>
				this:SetChecked( (SpecialTalentFrameSaved and SpecialTalentFrameSaved.forceShift) or 0);
					</OnShow>
					<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
				SpecialTalentFrame_SetForceShift( this:GetChecked() )
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="SpecialTalentFrameTab1" inherits="SpecialTalentFrameTabTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-32" y="-65"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="SpecialTalentFrameTab2" inherits="SpecialTalentFrameTabTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SpecialTalentFrameTab1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-17"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="SpecialTalentFrameTab3" inherits="SpecialTalentFrameTabTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="SpecialTalentFrameTab2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-17"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Button name="SpecialTalentFrameDragButton">
				<Size>
					<AbsDimension x="60" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="7" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				
				<Scripts>
					<OnLoad>
				this:RegisterForDrag("LeftButton");
					</OnLoad>
					<OnDragStart>
				SpecialTalentFrame:StartMoving();
					</OnDragStart>
					<OnDragStop>
				SpecialTalentFrame:StopMovingOrSizing();
				ValidateFramePosition(SpecialTalentFrame);
				SpecialTalentFrame_OnDrag();
					</OnDragStop>
				</Scripts>
			</Button>
			<Button name="SpecialTalentFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="SpecialTalentFrame">
						<Offset>
							<AbsDimension x="-29" y="-8"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="SpecialTalentFrameMinimizeButton" inherits="UIPanelButtonTemplate" text="\/">
				<Size>
					<AbsDimension x="19" y="23"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="SpecialTalentFrame">
						<Offset>
							<AbsDimension x="-59" y="-12"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetTextFontObject("GameFontNormal");
						this:SetHighlightFontObject("GameFontNormal");
					</OnLoad>
					<OnClick>
						if ( SpecialTalentFrameSaved.frameMinimized ) then
							SpecialTalentFrameSaved.frameMinimized = nil;
						else
							SpecialTalentFrameSaved.frameMinimized = 1;
						end
						SpecialTalentFrame_ResetDrag();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="SpecialTalentFrameResetButton" inherits="UIPanelButtonTemplate" text="RESET_PLANNED_TEMPLATE">
				<Size>
					<AbsDimension x="157" y="23"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="61" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
				if ( SpecialTalentFrameConfirmResetCheckButton:GetChecked() ) then
					SpecialTalentFrameConfirmResetCheckButton:SetChecked(0);
					SpecialTalent_ResetTemplate();
				end
					</OnClick>
				</Scripts>
			</Button>
			<CheckButton name="SpecialTalentFrameConfirmResetCheckButton">
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="215" y="-80"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
				<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
				<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
				<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
				<Scripts>
					<OnShow>
				this:SetChecked(0);
					</OnShow>
					<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
					</OnClick>
				</Scripts>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnShow>
				SpecialTalentFrame_OnShow();
			</OnShow>
			<OnHide>
				SpecialTalentFrame_OnHide();
			</OnHide>
			<OnLoad>
				SpecialTalentFrame_OnLoad();
			</OnLoad>
			<OnEvent>
				SpecialTalentFrame_OnEvent();
			</OnEvent>
		</Scripts>
	</Frame>
</Ui>
