vanilla-wow-addons – Rev 1
?pathlinks?
<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="Localization.lua"/>
<Script file="SmartPet.lua"/>
<Script file="SmartPetToolTip.lua"/>
<Script file="SmartPet_AttackMessages.lua"/>
<Frame name="SmartPetFrame" parent="PetActionBarFrame" toplevel="true" enableMouse="true" hidden="true">
<Scripts>
<OnLoad>
SmartPet_OnLoad();
</OnLoad>
<OnEvent>
SmartPet_OnEvent(event);
</OnEvent>
</Scripts>
<Frames>
<Button name="SmartPetOptionButton" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton1" toplevel="true" hidden="false">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT" relativeTo="PetActionButton1">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SmartPetOptions_Toggle();
</OnClick>
<OnEnter>
</OnEnter>
<OnLeave>
</OnLeave>
</Scripts>
<NormalTexture file="Interface\FriendsFrame\FriendsFrameScrollIcon"/>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
<Button name="SmartPetDefendButton" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton1" toplevel="true" hidden="true">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="SmartPetOptionButton">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
SmartPetDefend_Toggle();
</OnClick>
<OnEnter>
</OnEnter>
<OnLeave>
</OnLeave>
</Scripts>
<NormalTexture file="Interface\Icons\Ability_Defend"/>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
</Button>
<CheckButton name="SmartPetActionButton1" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton1" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton1">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(1);
SmartPet_BuildTooltip(1);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(1);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton2" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton2" toplevel="true" hidden="false">
<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");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(2);
SmartPet_BuildTooltip(2);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(2);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton3" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton3" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton3">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(3);
SmartPet_BuildTooltip(3);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(3);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton4" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton4" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton4">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(4);
SmartPet_BuildTooltip(4);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(4);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton5" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton5" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton5">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(5);
SmartPet_BuildTooltip(5);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(5);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton6" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton6" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton6">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(6);
SmartPet_BuildTooltip(6);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(6);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton7" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton7" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton7">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(7);
SmartPet_BuildTooltip(7);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(7);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton8" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton8" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton8">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(8);
SmartPet_BuildTooltip(8);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(8);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton9" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton9" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton9">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(9);
SmartPet_BuildTooltip(9);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(9);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="SmartPetActionButton10" enableMouse="true" inherits="UICheckButtonTemplate" parent="PetActionButton10" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="PetActionButton10">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(10);
SmartPet_BuildTooltip(10);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(10);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
<Frame name="SmartPetFrame2" parent="SpellBookFrame" toplevel="true" enableMouse="true" hidden="true">
<Scripts>
<OnLoad>
--SmartPetSpells_OnShow();
</OnLoad>
<OnEvent>
--SmartPet_OnEvent(event);
</OnEvent>
<OnShow>
--SmartPetSpells_OnShow();
</OnShow>
</Scripts>
<Frames>
<CheckButton name="PetSkillButton1" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton1">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[1]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[1]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[1]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton2" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton3">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[2]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[2]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[2]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton3" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton5">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[3]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[3]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[3]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton4" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton7">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[4]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[4]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[4]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton5" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton9">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[5]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[5]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[5]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton6" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton2">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[6]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[6]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[6]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton7" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton4">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[7]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[7]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[7]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton8" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton6">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[8]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[8]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[8]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton9" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton8">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[9]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[9]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[9]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<CheckButton name="PetSkillButton10" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPetFrame2" toplevel="true" hidden="false">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton10">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_ToggleUse(SmartPet_Vars.PetSkills[10]);
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[10]);
</OnClick>
<OnEnter>
SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[10]);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
</Frames>
</Frame>
</Ui>