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">
        <Script file="SmartAssistConfig.lua"/>

        <!-- credits to ct raidassist -->
        <Button name="SA_HelpTemplate" virtual="true">
                <Size>
                        <AbsDimension x="18" y="16"/>
                </Size>
                <Layers>
                        <Layer level="OVERLAY">
                                <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
                                        <Color r="0" g="0.8" b="1"/>
                                        <Anchors>
                                                <Anchor point="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnEnter>
                                getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 1);
                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                GameTooltip:SetText(this.tip, 1, 0.72, 0, nil, 1);
                        </OnEnter>
                        <OnLeave>
                                getglobal(this:GetName() .. "Text"):SetTextColor(0, 0.8, 1);
                                GameTooltip:Hide();                                             
                        </OnLeave>
                        <OnLoad>
                                this.tip = SA_HELP_STRINGS[this:GetID()];
                        </OnLoad>
                </Scripts>
        </Button>
        
    <Button name="SATabButtonTemplate" virtual="true">
        <Size>
            <AbsDimension x="115" y="32"/>
        </Size>
        <Layers>
                <Layer level="BACKGROUND">
                        <Texture name="$parentLeftDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
                                <Size>
                                        <AbsDimension x="20" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="0" y="5"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                        <TexCoords left="0" right="0.15625" top="0" bottom="1.0"/>
                        </Texture>
                                <Texture name="$parentMiddleDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
                                <Size>
                                        <AbsDimension x="88" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
                                </Anchors>
                                        <TexCoords left="0.15625" right="0.84375" top="0" bottom="1.0"/>
                        </Texture>
                                <Texture name="$parentRightDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
                                <Size>
                                        <AbsDimension x="20" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
                                </Anchors>
                                        <TexCoords left="0.84375" right="1.0" top="0" bottom="1.0"/>
                        </Texture>
                                <Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
                                <Size>
                                        <AbsDimension x="20" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT"/>
                                </Anchors>
                                        <TexCoords left="0" right="0.15625" top="0" bottom="1.0"/>
                        </Texture>
                                <Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
                                <Size>
                                        <AbsDimension x="88" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                                </Anchors>
                                        <TexCoords left="0.15625" right="0.84375" top="0" bottom="1.0"/>
                        </Texture>
                                <Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
                                <Size>
                                        <AbsDimension x="20" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                                </Anchors>
                                        <TexCoords left="0.84375" right="1.0" top="0" bottom="1.0"/>
                        </Texture>
                </Layer>
        </Layers>
                <Scripts>
                        <OnLoad>
                                this:SetFrameLevel(this:GetFrameLevel() + 4);
                        </OnLoad>
                        <OnClick>
                                PanelTemplates_Tab_OnClick(SAOptionsFrame);
                                SA_Tab_OnClick();
                        </OnClick>
                        <OnShow>
                                PanelTemplates_TabResize(10);
                                getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 30);
                        </OnShow>
                </Scripts>
                <NormalText name="$parentText" inherits="GameFontNormalSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </NormalText>
                <HighlightText inherits="GameFontHighlightSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightText>
                <DisabledText inherits="GameFontHighlightSmall">
                        <Anchors>
                                <Anchor point="CENTER">
                                        <Offset>
                                                <AbsDimension x="0" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </DisabledText>
                <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
                        <Anchors>
                                <Anchor point="LEFT">
                                        <Offset>
                                                <AbsDimension x="10" y="2"/>
                                        </Offset>
                                </Anchor>
                                <Anchor point="RIGHT">
                                        <Offset>
                                                <AbsDimension x="-10" y="2"/>
                                        </Offset>
                                </Anchor>
                        </Anchors>
                </HighlightTexture>
    </Button>
    
    <Frame name="SAOptionsFrame" toplevel="true" movable="true" parent="UIParent" hidden="true">
                <Size>
                        <AbsDimension x="500" y="450"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER"/>
                </Anchors>
                <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
                        <BackgroundInsets>
                                <AbsInset left="11" right="12" top="12" bottom="11"/>
                        </BackgroundInsets>
                        <TileSize>
                                <AbsValue val="32"/>
                        </TileSize>
                        <EdgeSize>
                                <AbsValue val="32"/>
                        </EdgeSize>
                </Backdrop>

                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="SAOptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="400" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="12"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString inherits="GameFontNormal" text="SmartAssist Configuration">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="SAOptionsFrame">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-2"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                
                        </Layer>
                </Layers>
        <Frames>
                        <Button name="SADragButton" hidden="false">
                                <Size>
                                        <AbsDimension x="400" y="60"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativeTo="SAOptionsFrameHeader">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnMouseDown>
                                                if ( arg1 == "LeftButton" ) then
                                                        this:GetParent():StartMoving();
                                                end
                                        </OnMouseDown>
                                        <OnMouseUp>
                                                if ( arg1 == "LeftButton" ) then
                                                        this:GetParent():StopMovingOrSizing();
                                                end
                                        </OnMouseUp>
                                </Scripts>
                        </Button>
        
            <Button name="SAOptionsFrameTab1" inherits="SATabButtonTemplate" id="1" text="Basic">
                <Anchors>
                    <Anchor point="CENTER" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="65" y="-8"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText("Basic settings");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                </Scripts>
            </Button>

            <Button name="SAOptionsFrameTab2" inherits="SATabButtonTemplate" id="2" text="Assist list">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="SAOptionsFrameTab1" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText("Change how available assist list is displayed");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                </Scripts>
            </Button>
                        
            <Button name="SAOptionsFrameTab3" inherits="SATabButtonTemplate" id="3" text="Advanced">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="SAOptionsFrameTab2" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText("Advanced settings");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                </Scripts>
            </Button>
            
                        <Button name="SAOptionsFrameTab4" inherits="SATabButtonTemplate" id="4" text="SmartActions">
                <Anchors>
                   <Anchor point="LEFT" relativeTo="SAOptionsFrameTab3" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText("SmartActions settings");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                </Scripts>
            </Button>
            
                        <Button name="SAOptionsFrameDone" inherits="OptionsButtonTemplate" text="Done">
                                <Size>
                                        <AbsDimension x="150" y="21"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-30" y="25"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnShow>
                                                SA_ToggleDialog(SA_SUBFRAMES[1]);
                                        </OnShow>
                                        <OnClick>
                                                HideUIPanel(SAOptionsFrame);
                                        </OnClick>
                                </Scripts>
                        </Button>
            
        </Frames>
        <Scripts>
                        <OnLoad>
                                SA_Options_OnLoad();
                        </OnLoad>
        </Scripts>
    </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.