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/">

        <Button name="SAO_MainFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
                <Scripts>
                        <OnClick>
                                PanelTemplates_Tab_OnClick(SAO_MainFrame);
                                SAO_MainFrameTab_OnClick();
                        </OnClick>
                </Scripts>
        </Button>

        <Frame name="SAO_OptionFrameTemplate" enableMouse="true" hidden="true" virtual="true">
                <Size>
                        <AbsDimension x="336" y="402"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER">
                                <Offset>
                                        <AbsDimension x="-12" y="20"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnShow>
                                SAO_OptionFrame_OnShow();
                        </OnShow>
                        <OnHide>
                                SAO_OptionFrame_OnHide();
                        </OnHide>
                </Scripts>
        </Frame>

        <EditBox name="SAO_EditBoxTemplate" inherits="InputBoxTemplate" letters="2" multiLine="false" enableMouse="true" autoFocus="false" virtual="true">
                <Size>
                        <AbsDimension x="32" y="32"/>
                </Size>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="$parentText" inherits="GameFontNormalSmall">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="-2" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
        </EditBox>

        <CheckButton name="SAO_CheckButtonTemplate" inherits="UICheckButtonTemplate" virtual="true">
                <HitRectInsets>
                        <AbsInset left="0" right="-20" top="0" bottom="0"/>
                </HitRectInsets>
                        <Frames>
                                <CheckButton name="$parentTO" inherits="UICheckButtonTemplate">
                                        <HitRectInsets>
                                                <AbsInset left="0" right="-20" top="0" bottom="0"/>
                                        </HitRectInsets>
                                        <Size>
                                                <AbsDimension x="20" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="RIGHT">
                                                        <Offset>
                                                                <AbsDimension x="112" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        SAO_CheckButton_OnLoad(SAO_STR_TO);
                                                </OnLoad>
                                                <OnClick>
                                                        SAO_CheckButton_OnClick();
                                                </OnClick>
                                                <OnEnter>
                                                        SAO_TooltipArea:SetText(SAO_STR_TO_TT);
                                                </OnEnter>
                                                <OnLeave>
                                                        SAO_TooltipArea:SetText("");
                                                </OnLeave>
                                        </Scripts>
                                </CheckButton>
                                <CheckButton name="$parentShort" inherits="UICheckButtonTemplate">
                                        <HitRectInsets>
                                                <AbsInset left="0" right="-20" top="0" bottom="0"/>
                                        </HitRectInsets>
                                        <Size>
                                                <AbsDimension x="20" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="RIGHT" relativeTo="$parentTO">
                                                        <Offset>
                                                                <AbsDimension x="50" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Scripts>
                                                <OnLoad>
                                                        SAO_CheckButton_OnLoad(SAO_STR_SHORT);
                                                </OnLoad>
                                                <OnClick>
                                                        SAO_CheckButton_OnClick();
                                                </OnClick>
                                                <OnEnter>
                                                        SAO_TooltipArea:SetText(SAO_STR_SHORT_TT);
                                                </OnEnter>
                                                <OnLeave>
                                                        SAO_TooltipArea:SetText("");
                                                </OnLeave>
                                        </Scripts>
                                </CheckButton>
                                <Button name="$parentColor">
                                        <Size>
                                                <AbsDimension x="20" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="RIGHT" relativeTo="$parentShort">
                                                        <Offset>
                                                                <AbsDimension x="60" y="0" />
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <NormalTexture name="$parentTexture" file="Interface\ChatFrame\ChatFrameColorSwatch"/>
                                        <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
                                        <Scripts>
                                                <OnClick>
                                                        SAO_CheckButtonColor_OnClick();
                                                </OnClick>
                                        </Scripts>
                                </Button>
                        </Frames>
                <Scripts>
                        <OnClick>
                                SAO_CheckButton_OnClick();
                        </OnClick>
                </Scripts>
        </CheckButton>

        <CheckButton name="SAO_CheckButtonTemplate2" inherits="UICheckButtonTemplate" virtual="true">
                <HitRectInsets>
                        <AbsInset left="0" right="-20" top="0" bottom="0"/>
                </HitRectInsets>
                <Size>
                        <AbsDimension x="24" y="24"/>
                </Size>
                <Scripts>
                        <OnClick>
                                SAO_CheckButton_OnClick();
                        </OnClick>
                </Scripts>
        </CheckButton>

        <Frame name="SAO_OptionAlertFrameTemplate" inherits="SAO_OptionFrameTemplate" virtual="true">
                <Frames>
                        <Button name="$parentAlertLock" inherits="UIPanelButtonTemplate">
                                <Size>
                                        <AbsDimension x="92" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnUpdate>
                                                if (getglobal("SA_Drag"..(this:GetParent()):GetID()-1):IsVisible()) then
                                                        this:SetText(SAO_STR_LOCK);
                                                else
                                                        this:SetText(SAO_STR_UNLOCK);
                                                end
                                        </OnUpdate>
                                        <OnClick>
                                                SAO_Button_OnClick((this:GetParent()):GetID()-1);
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <EditBox name="$parentEditBox1" inherits="SAO_EditBoxTemplate">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-50"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_SIZE);
                                        </OnLoad>
                                        <OnEditFocusLost>
                                                SAO_EditBox_OnEditFocusLost("size");
                                        </OnEditFocusLost>
                                        <OnEnterPressed>
                                                this:ClearFocus();
                                        </OnEnterPressed>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal((this:GetParent()):GetName().."EditBox5"):SetFocus();
                                                else
                                                        getglobal((this:GetParent()):GetName().."EditBox2"):SetFocus();
                                                end
                                        </OnTabPressed>
                                </Scripts>
                        </EditBox>
                        <EditBox name="$parentEditBox2" inherits="SAO_EditBoxTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-32"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_HT);
                                        </OnLoad>
                                        <OnEditFocusLost>
                                                SAO_EditBox_OnEditFocusLost("holdTime");
                                        </OnEditFocusLost>
                                        <OnEnterPressed>
                                                this:ClearFocus();
                                        </OnEnterPressed>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal((this:GetParent()):GetName().."EditBox1"):SetFocus();
                                                else
                                                        getglobal((this:GetParent()):GetName().."EditBox3"):SetFocus();
                                                end
                                        </OnTabPressed>
                                </Scripts>
                        </EditBox>
                        <EditBox name="$parentEditBox3" inherits="SAO_EditBoxTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-64"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_FT);
                                        </OnLoad>
                                        <OnEditFocusLost>
                                                SAO_EditBox_OnEditFocusLost("fadeTime");
                                        </OnEditFocusLost>
                                        <OnEnterPressed>
                                                this:ClearFocus();
                                        </OnEnterPressed>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal((this:GetParent()):GetName().."EditBox2"):SetFocus();
                                                else
                                                        getglobal((this:GetParent()):GetName().."EditBox4"):SetFocus();
                                                end
                                        </OnTabPressed>
                                </Scripts>
                        </EditBox>
                        <EditBox name="$parentEditBox4" inherits="SAO_EditBoxTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="0" y="-96"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_LINES);
                                        </OnLoad>
                                        <OnEditFocusLost>
                                                SAO_EditBox_OnEditFocusLost("lines");
                                        </OnEditFocusLost>
                                        <OnEnterPressed>
                                                this:ClearFocus();
                                        </OnEnterPressed>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal((this:GetParent()):GetName().."EditBox3"):SetFocus();
                                                else
                                                        getglobal((this:GetParent()):GetName().."EditBox5"):SetFocus();
                                                end
                                        </OnTabPressed>
                                </Scripts>
                        </EditBox>
                        <EditBox name="$parentEditBox5" inherits="SAO_EditBoxTemplate">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="160" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_SPACE);
                                        </OnLoad>
                                        <OnEditFocusLost>
                                                SAO_EditBox_OnEditFocusLost("space");
                                        </OnEditFocusLost>
                                        <OnEnterPressed>
                                                this:ClearFocus();
                                        </OnEnterPressed>
                                        <OnTabPressed>
                                                if ( IsShiftKeyDown() ) then
                                                        getglobal((this:GetParent()):GetName().."EditBox4"):SetFocus();
                                                else
                                                        getglobal((this:GetParent()):GetName().."EditBox1"):SetFocus();
                                                end
                                        </OnTabPressed>
                                </Scripts>
                        </EditBox>
                        <Slider name="$parentSlider1" inherits="OptionsSliderTemplate">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="250" y="-50"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="$parentValue" inherits="GameFontHighlightSmall">
                                                        <Size>
                                                                <AbsDimension x="36" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOM">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-14"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnValueChanged>
                                                SAO_Slider1_OnValueChanged();
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>
                        <Slider name="$parentSlider2" inherits="OptionsSliderTemplate">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentEditBox1">
                                                <Offset>
                                                        <AbsDimension x="250" y="-96"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="$parentValue" inherits="GameFontHighlightSmall">
                                                        <Size>
                                                                <AbsDimension x="50" y="20"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="BOTTOM">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-14"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnValueChanged>
                                                SAO_Slider2_OnValueChanged();
                                        </OnValueChanged>
                                </Scripts>
                        </Slider>
                        <CheckButton name="$parentCheckButton0" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="20" y="-260"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_DAMAGE);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton1" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton0">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="ARTWORK">
                                                <FontString name="$parentText" inherits="GameFontNormalSmall" text="SAO_STR_GOTO">
                                                        <Anchors>
                                                                <Anchor point="TOP">
                                                                        <Offset>
                                                                                <AbsDimension x="36" y="20"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_HEAL);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton2" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton1">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_BUFFGAIN);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton3" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentCheckButton0">
                                                <Offset>
                                                        <AbsDimension x="0" y="-32"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_BUFFGONE);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton4" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton3">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_TOTEM);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton5" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton4">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_EMOTE);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton6" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentCheckButton3">
                                                <Offset>
                                                        <AbsDimension x="0" y="-32"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_PERIODIC);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton7" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton6">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_INSTANT);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton8" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="RIGHT" relativeTo="$parentCheckButton7">
                                                <Offset>
                                                        <AbsDimension x="100" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_CC);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentCheckButton9" inherits="SAO_CheckButtonTemplate2">
                                <Anchors>
                                        <Anchor point="BOTTOM" relativeTo="$parentCheckButton6">
                                                <Offset>
                                                        <AbsDimension x="0" y="-32"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>
                                                SAO_CheckButton_OnLoad(SAO_STR_MISC);
                                        </OnLoad>
                                </Scripts>
                        </CheckButton>
                </Frames>
        </Frame>

</Ui>

Generated by GNU Enscript 1.6.5.90.