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">
        
        <Button name="ChatBarButtonTemplate" virtual="true" hidden="true">
                <Size>
                        <AbsDimension x="16" y="16"/>
                </Size>
                <Layers>
                        <Layer level="OVERLAY">
                                <FontString name="$parentText" inherits="GameFontNormalSmall" nonspacewrap="true" justifyH="CENTER">
                                        <Size>
                                                <AbsDimension x="12" y="12"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="BOTTOM" relativePoint="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <Texture name="$parentUpTex_Spec" file="Interface\AddOns\ChatBar\Skin\ChanButton_Up_Spec"/>
                                <Texture name="$parentDownTex_Spec" file="Interface\AddOns\ChatBar\Skin\ChanButton_Down_Spec"  hidden="true" />
                                <Texture name="$parentFlash" alphaMode="ADD" file="Interface\AddOns\ChatBar\Skin\ChanButton_Glow_Alpha" hidden="true" />
                        </Layer>
                        <Layer level="ARTWORK">
                                <Texture name="$parentCenter" file="Interface\AddOns\ChatBar\Skin\ChanButton_Center"/>
                        </Layer>
                        <Layer level="BORDER">
                                <Texture name="$parentBackground" file="Interface\AddOns\ChatBar\Skin\ChanButton_BG"/>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnLoad>
                                ChatBar_Button_OnLoad();
                        </OnLoad>
                        <OnEnter>
                        ChatBar_Button_OnEnter();
                        </OnEnter>
                        <OnLeave>
                        ChatBar_Button_OnLeave();
                        </OnLeave>
                        <OnClick>
                                ChatBar_Button_OnClick(arg1);
                        </OnClick>
                        <OnMouseDown>
                                getglobal(this:GetName().."UpTex_Spec"):Hide();
                                getglobal(this:GetName().."DownTex_Spec"):Show();
                        </OnMouseDown>
                        <OnMouseUp>
                                getglobal(this:GetName().."UpTex_Spec"):Show();
                                getglobal(this:GetName().."DownTex_Spec"):Hide();
                        </OnMouseUp>
                </Scripts>
                <NormalTexture name="$parentUpTex_Shad" file="Interface\AddOns\ChatBar\Skin\ChanButton_Up_Shad"/>
                <PushedTexture name="$parentDownTex_Shad" file="Interface\AddOns\ChatBar\Skin\ChanButton_Down_Shad"/>
                <HighlightTexture name="$parentHighlight" alphaMode="ADD" file="Interface\AddOns\ChatBar\Skin\ChanButton_Glow_Alpha"/>
        </Button>
        
        <Frame name="ChatBarFrame" parent="UIParent" enableMouse="true" movable="true" hidden="false">
                <Size>
                        <AbsDimension x="16" y="16"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMLEFT" relativeTo="ChatFrame1" relativePoint="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="30"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Frames>
                        <Frame name="$parentBackground" setAllPoints="true">
                                <Backdrop edgeFile="Interface\AddOns\ChatBar\Skin\ChatBarBorder" bgFile="Interface\AddOns\ahChatBar\Skin\BlackBg">
                                        <BackgroundInsets>
                                                <AbsInset left="8" right="8" top="8" bottom="8"/>
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="8"/>
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="8"/>
                                        </EdgeSize>
                                </Backdrop>
                        </Frame>
                        <Button name="$parentButton1" inherits="ChatBarButtonTemplate" id="1">
                                <Anchors>
                                        <Anchor point="LEFT">
                                                <Offset>
                                                        <AbsDimension x="10" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton2" inherits="ChatBarButtonTemplate" id="2">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton1" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton3" inherits="ChatBarButtonTemplate" id="3">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton2" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton4" inherits="ChatBarButtonTemplate" id="4">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton3" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton5" inherits="ChatBarButtonTemplate" id="5">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton4" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton6" inherits="ChatBarButtonTemplate" id="6">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton5" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton7" inherits="ChatBarButtonTemplate" id="7">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton6" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton8" inherits="ChatBarButtonTemplate" id="8">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton7" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton9" inherits="ChatBarButtonTemplate" id="9">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton8" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton10" inherits="ChatBarButtonTemplate" id="10">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton9" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton11" inherits="ChatBarButtonTemplate" id="11">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton10" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton12" inherits="ChatBarButtonTemplate" id="12">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton11" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton13" inherits="ChatBarButtonTemplate" id="13">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton12" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton14" inherits="ChatBarButtonTemplate" id="14">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton13" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton15" inherits="ChatBarButtonTemplate" id="15">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton14" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton16" inherits="ChatBarButtonTemplate" id="16">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton15" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton17" inherits="ChatBarButtonTemplate" id="17">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton16" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton18" inherits="ChatBarButtonTemplate" id="18">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton17" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton19" inherits="ChatBarButtonTemplate" id="19">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton18" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <Button name="$parentButton20" inherits="ChatBarButtonTemplate" id="20">
                                <Anchors>
                                        <Anchor point="LEFT" relativeTo="$parentButton19" relativePoint="RIGHT"/>
                                </Anchors>
                        </Button>
                        <GameTooltip name="$parentTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate" />
                </Frames>
                
                <Scripts>
                        <OnLoad>
                                ChatBar_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                ChatBar_OnEvent(event);
                        </OnEvent>
                        <OnUpdate>
                                ChatBar_OnUpdate(arg1);
                        </OnUpdate>
                        <OnMouseDown>
                                ChatBar_OnMouseDown(arg1);
                        </OnMouseDown>
                        <OnDragStart>
                                ChatBar_OnDragStart();
                        </OnDragStart>
                        <OnDragStop>
                                ChatBar_OnDragStop();
                        </OnDragStop>
                </Scripts>
        </Frame>
        
        <Frame name="ChatBar_DropDown" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
                <Size>
                        <AbsDimension x="10" y="10"/>
                </Size>
                <Anchors>
                        <Anchor point="TOP">
                                <Offset>
                                        <AbsDimension x="-10" y="-50"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                ChatBar_DropDownOnLoad();
                        </OnLoad>
                </Scripts>
        </Frame>
</Ui>