vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<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"/>

<Frame name="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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="SmartPet_PetSkillsFrame" 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>
                        <CheckButton name="PetSkillButton11" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPet_PetSkillsFrame" toplevel="true" hidden="false">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton11">
                                                <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[11]);
                                                SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[11]);
                                        </OnClick>
                                        <OnEnter>
                                                SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[11]);
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="PetSkillButton12" enableMouse="true" inherits="UICheckButtonTemplate" parent="SmartPet_PetSkillsFrame" toplevel="true" hidden="false">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM" relativePoint="TOP" relativeTo="SpellButton12">
                                                <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[12]);
                                                SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[12]);
                                        </OnClick>
                                        <OnEnter>
                                                SmartPet_BuildTooltip(SmartPet_Vars.PetSkills[12]);
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                                </Scripts>
                        </CheckButton>
                                        </Frames>
   </Frame>

</Ui>