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/ ..\FrameXML\UI.xsd">

        <!-- spell slot routine credits to Zuban -->    
        <Button name="SmartActionTemplate" enableMouse="true" inherits="ItemButtonTemplate" virtual="true">
                <Scripts>
                        <OnLoad>
                                this:RegisterForClicks("LeftButtonUp");
                        </OnLoad>
                        <OnClick>
                                SA_SmartActionSlot_OnClick();
                        </OnClick>
                        <OnReceiveDrag>
                                SA_SmartActionSlot_OnReceiveDrag();
                        </OnReceiveDrag>
                        <OnEnter>
                                SA_SmartActionSlot_OnEnter(this);
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                </Scripts>
        </Button>
        
        <GameTooltip name="SAActionTip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate">
                <Scripts>
                        <OnLoad>
                                GameTooltip_OnLoad(); 
                                this:SetOwner(UIParent, "ANCHOR_NONE");
                        </OnLoad>
                </Scripts>
        </GameTooltip>
        
        <Frame name="SmartActionsOptionsFrame" setAllPoints="true" enableMouse="true" parent="SAOptionsFrame" hidden="true" id="3">
                <Size>
                        <AbsDimension x="500" y="380"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER" relativeTo="SAOptionsFrame" relativePoint="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>

                <Layers>
                        <Layer level="BACKGROUND">
        
                                <FontString inherits="GameFontNormal" name="SASmartActionInfo1" text="If a friendly unit is selected any of these spells will be cast on allys target:">
                                        <Color r="1" g="1" b="1"/>
                                        <Anchors>
                                                <Anchor point="TOPLEFT" relativeTo="SAOptionsFrame">
                                                        <Offset>
                                                                <AbsDimension x="20" y="-35"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                                                                                                
                        </Layer>
                </Layers>

                <Frames>
        
                        <Button name="SAAssistSlot1" inherits="SmartActionTemplate" id="1">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="SAOptionsFrame" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-75"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot2" inherits="SmartActionTemplate" id="2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot1">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot3" inherits="SmartActionTemplate" id="3">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot2">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot4" inherits="SmartActionTemplate" id="4">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot3">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot5" inherits="SmartActionTemplate" id="5">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot4">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot6" inherits="SmartActionTemplate" id="6">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot5">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot7" inherits="SmartActionTemplate" id="7">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot6">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot8" inherits="SmartActionTemplate" id="8">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot7">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot9" inherits="SmartActionTemplate" id="9">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot8">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot10" inherits="SmartActionTemplate" id="10">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot9">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>

                        <Button name="SAAssistSlot11" inherits="SmartActionTemplate" id="11">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot1" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="-45"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot12" inherits="SmartActionTemplate" id="12">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot11">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot13" inherits="SmartActionTemplate" id="13">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot12">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot14" inherits="SmartActionTemplate" id="14">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot13">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot15" inherits="SmartActionTemplate" id="15">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot14">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot16" inherits="SmartActionTemplate" id="16">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot15">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot17" inherits="SmartActionTemplate" id="17">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot16">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot18" inherits="SmartActionTemplate" id="18">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot17">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot19" inherits="SmartActionTemplate" id="19">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot18">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="SAAssistSlot20" inherits="SmartActionTemplate" id="20">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot19">
                                                <Offset>
                                                        <AbsDimension x="47" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                                                
                        <CheckButton name="SATriggerAssistCB" inherits="OptionsCheckButtonTemplate" id="30">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="SAAssistSlot11">
                                                <Offset>
                                                        <AbsDimension x="0" y="-45"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString inherits="GameFontNormal" text="Without target these also initiate smart assist">
                                                        <Anchors>
                                                                <Anchor point="LEFT">
                                                                        <Offset>
                                                                                <AbsDimension x="30" y="2"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnClick>
                                                SA_ToggleOption("TriggerAssist");
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        
                        <Button name="SAAutoConfig" inherits="OptionsButtonTemplate" text="Auto configure">
                                <Size>
                                        <AbsDimension x="150" y="21"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativeTo="SAOptionsFrameDone">
                                                <Offset>
                                                        <AbsDimension x="0" y="30"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                SA_AutoConfigureSmartActions();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        
                        <Button name="SAResetSmartActions" inherits="OptionsButtonTemplate" text="Reset">
                                <Size>
                                        <AbsDimension x="150" y="21"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativeTo="SAAutoConfig">
                                                <Offset>
                                                        <AbsDimension x="0" y="30"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                SA_ResetSmartActions();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        
                </Frames>

                <Scripts>
                        <OnShow>
                                SA_Options_SmartActions_OnShow();
                        </OnShow>
                </Scripts>
        </Frame>

</Ui>