<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="Pets.lua"></Script>
	
	<CheckButton name="AltoPetButtonTemplate" virtual="true">
		<Size x="37" y="37" />
		<DisabledTexture file="Interface\PetPaperDollFrame\UI-PetFrame-Slots-Companions">
			<TexCoords left="0.203125" right="0.765625" top="0.203125" bottom="0.7625625"/>
		</DisabledTexture>
		<HighlightTexture name="$parentHighlight" file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
		<Scripts>
			<OnEnter>
				Altoholic.Pets:OnEnter(self)
			</OnEnter>
			<OnLeave>
				AltoTooltip:Hide();
			</OnLeave>
			<OnClick>
				Altoholic.Pets:OnClick(self, button)
			</OnClick>
		</Scripts>
	</CheckButton>
	
	<Frame name="AltoholicFramePets" parent="AltoholicTabCharacters" hidden="true">
		<Size x="615" y="306" />
		<Anchors>
			<Anchor point="TOPRIGHT" x="39" y="-105" />
		</Anchors>
		<Frames>
			<Frame name="$parentNormal">
				<Size x="615" y="306" />
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="0" />
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$Parent_PageNumber" inherits="GameFontHighlightSmallOutline" text="Page 1 of 2">
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="445" y="93" />
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK">
						<FontString name="$Parent_PetName" inherits="DialogButtonNormalText" justifyH="Center">
							<Size x="318" />
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="25" y="25" />
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<PlayerModel name="$Parent_ModelFrame">
						<Size x="318" y="220" />
						<Anchors>
							<Anchor point="TOPLEFT" x="25" y="-25" />
						</Anchors>
						<Scripts>
							<OnLoad>
								Model_OnLoad(self);
								self:RegisterEvent("DISPLAY_SIZE_CHANGED");
							</OnLoad>
							<OnEvent>
								self:RefreshUnit();
							</OnEvent>
							<OnUpdate>
								Model_OnUpdate(self, elapsed);
							</OnUpdate>
						</Scripts>
						<Frames>
							<Button name="$ParentRotateLeftButton">
								<Size x="35" y="35" />
								<Anchors>
									<Anchor point="TOPLEFT" x="10" y="-10" />
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateLeft(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
							<Button name="$ParentRotateRightButton">
								<Size x="35" y="35" />
								<Anchors>
									<Anchor point="TOPLEFT" relativeTo="$ParentRotateLeftButton" relativePoint="TOPRIGHT"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
									</OnLoad>
									<OnClick>
										Model_RotateRight(self:GetParent());
									</OnClick>
								</Scripts>
								<NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
								<PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
								<HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
							</Button>
						</Frames>
					</PlayerModel>
				
					<CheckButton name="$Parent_Button1" inherits="AltoPetButtonTemplate" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" x="360" y="-100" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button2" inherits="AltoPetButtonTemplate" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button1" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button3" inherits="AltoPetButtonTemplate" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button2" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button4" inherits="AltoPetButtonTemplate" id="4">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button3" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button5" inherits="AltoPetButtonTemplate" id="5">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button4" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button6" inherits="AltoPetButtonTemplate" id="6">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button5" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button7" inherits="AltoPetButtonTemplate" id="7">
						<Anchors>
							<Anchor point="TOP" relativeTo="$Parent_Button1" relativePoint="BOTTOM" x="0" y="-5" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button8" inherits="AltoPetButtonTemplate" id="8">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button7" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button9" inherits="AltoPetButtonTemplate" id="9">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button8" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button10" inherits="AltoPetButtonTemplate" id="10">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button9" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button11" inherits="AltoPetButtonTemplate" id="11">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button10" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
					<CheckButton name="$Parent_Button12" inherits="AltoPetButtonTemplate" id="12">
						<Anchors>
							<Anchor point="LEFT" relativeTo="$Parent_Button11" relativePoint="RIGHT" x="4" y="0" />
						</Anchors>
					</CheckButton>
				
					<Button name="$ParentPrevPage">
						<Size x="32" y="32" />
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="410" y="83" />
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToPreviousPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
					<Button name="$ParentNextPage">
						<Size x="32" y="32" />
						<Anchors>
							<Anchor point="LEFT" relativeTo="$ParentPrevPage" relativePoint="RIGHT" x="80" y="0" />
						</Anchors>
						<Scripts>
							<OnClick>
								Altoholic.Pets:GoToNextPage()
							</OnClick>
						</Scripts>
						<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
					</Button>
				</Frames>
			</Frame>
		</Frames>
	</Frame>

</Ui>
