<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/"> 
	<Script file="PetLeash.lua"/> 
	<Frame name="PetLeashFrame" parent="PetActionBarFrame" toplevel="true" enableMouse="true" hidden="true">
		<Scripts> 
			<OnLoad> 
				PetLeash_OnLoad();
			</OnLoad>
			<OnEvent>
				PetLeash_OnEvent(event, arg1, arg2, arg3);
			</OnEvent>
			<OnUpdate>
				PetLeash_OnUpdate(arg1);
			</OnUpdate>
		</Scripts>
		<frames>
			<CheckButton name="PetLeashActionButton2" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton2" toplevel="true" hidden="false" checked="true">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton2">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( this:GetChecked() ) then
							PlaySound("igMainMenuOptionCheckBoxOff");
							PetLeash_turnon();
						else
							PlaySound("igMainMenuOptionCheckBoxOn");
							PetLeash_turnoff();
						end
						PetLeash_BuildTooltip(2);
					</OnClick>
					<OnEnter>
						PetLeash_BuildTooltip(2);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</CheckButton>
		</frames>
   </Frame>
</Ui>
