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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">

        <Button name="TellTrackTextButton" virtual="true" hidden="true">
                <Size>
                        <AbsDimension x="71" y="20"/>
                </Size>
                <Backdrop edgeFile="Interface\AddOns\TellTrack\Skin\TellTrackButtonBorder">
                        <EdgeSize>
                                <AbsValue val="4"/>
                        </EdgeSize>
                </Backdrop>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture name="$parentBackground" setAllPoints="true">
                                        <Color r="0" g="0" b="0" a="1.0" />
                                </Texture>
                        </Layer>
                        <Layer level="OVERLAY">
                                <FontString name="$parentText" inherits="GameFontNormalSmall" nonspacewrap="true" justifyH="LEFT">
                                        <Size>
                                                <AbsDimension x="61" y="12"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="LEFT">
                                                        <Offset>
                                                                <AbsDimension x="5" y="0"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                
                <Scripts>
                <OnLoad>
                        TellTrackTextButton_OnLoad();
                </OnLoad>
                <OnEnter>
                TellTrackTextButton_OnEnter();
                </OnEnter>
                <OnLeave>
                TellTrackTextButton_OnLeave();
                </OnLeave>
                <OnClick>
                        TellTrackTextButton_OnClick(arg1);
                </OnClick>
                <OnSizeChanged>
                        getglobal(this:GetName().."Text"):SetWidth(this:GetWidth()-10);
                </OnSizeChanged>
                </Scripts>
        </Button>

        <Frame name="TellTrackFrame" enableMouse="true" movable="true" resizable="true" parent="UIParent" hidden="true">
                <Size>
                        <AbsDimension x="95" y="113"/>
                </Size>
                <Anchors>
                        <Anchor point="LEFT" relativeTo="ChatFrame1" relativePoint="RIGHT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <ResizeBounds>
                        <minResize>
                                <AbsDimension x="95" y="84"/>
                        </minResize>
                        <maxResize>
                                <AbsDimension x="200" y="444"/>
                        </maxResize>
                </ResizeBounds>
                <Frames>
                        <Frame name="$parentBackground" setAllPoints="true">
                                <Backdrop edgeFile="Interface\AddOns\TellTrack\Skin\TellTrackBorder" bgFile="Interface\AddOns\TellTrack\Skin\BlackBg">
                                        <BackgroundInsets>
                                                <AbsInset left="11" right="10" top="12" bottom="11"/>
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="32"/>
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="32"/>
                                        </EdgeSize>
                                </Backdrop>
                        </Frame>
                        <Button name="$parentArrowUpButton">
                                <Size>
                                        <AbsDimension x="71" y="10"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                                                <Offset>
                                                        <AbsDimension x="12" y="-12"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpBG" setAllPoints="true">
                                                        <TexCoords left="0" right="1" top="0" bottom="1" />
                                                </Texture>
                                        </Layer>
                                        <Layer level="LOW">
                                                <Texture name="$parentRightBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpLeftCorner">
                                                        <Size>
                                                                <AbsDimension x="10" y="10"/>
                                                        </Size>
                                                        <TexCoords left="1" right="0" top="0" bottom="1" />
                                                        <Anchors>
                                                                <Anchor point="RIGHT"/>
                                                        </Anchors>
                                                </Texture>
                                                <Texture name="$parentLeftBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpLeftCorner">
                                                        <Size>
                                                                <AbsDimension x="10" y="10"/>
                                                        </Size>
                                                        <TexCoords left="0" right="1" top="0" bottom="1" />
                                                        <Anchors>
                                                                <Anchor point="LEFT"/>
                                                        </Anchors>
                                                </Texture>
                                                <Texture name="$parentArrow" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUp">
                                                        <Size>
                                                                <AbsDimension x="20" y="10"/>
                                                        </Size>
                                                        <TexCoords left="0" right="1" top="0" bottom="1" />
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                TellTrack_ArrowButton_OnLoad(this);
                                        </OnLoad>
                                        <OnClick>
                                                TellTrack_ArrowUpButton_OnClick(arg1);
                                        </OnClick>
                                        <OnSizeChanged>
                                                TellTrack_ArrowButton_OnSizeChanged(this);
                                        </OnSizeChanged>
                                </Scripts>
                        </Button>
                        
                        <Button name="TellTrack1" inherits="TellTrackTextButton" id="1">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="$parentArrowUpButton" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack2" inherits="TellTrackTextButton" id="2">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack1" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack3" inherits="TellTrackTextButton" id="3">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack2" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack4" inherits="TellTrackTextButton" id="4">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack3" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack5" inherits="TellTrackTextButton" id="5">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack4" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack6" inherits="TellTrackTextButton" id="6">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack5" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack7" inherits="TellTrackTextButton" id="7">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack6" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack8" inherits="TellTrackTextButton" id="8">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack7" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack9" inherits="TellTrackTextButton" id="9">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack8" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack10" inherits="TellTrackTextButton" id="10">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack9" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack11" inherits="TellTrackTextButton" id="11">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack10" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack12" inherits="TellTrackTextButton" id="12">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack11" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack13" inherits="TellTrackTextButton" id="13">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack12" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack14" inherits="TellTrackTextButton" id="14">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack13" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack15" inherits="TellTrackTextButton" id="15">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack14" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack16" inherits="TellTrackTextButton" id="16">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack15" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack17" inherits="TellTrackTextButton" id="17">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack16" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack18" inherits="TellTrackTextButton" id="18">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack17" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack19" inherits="TellTrackTextButton" id="19">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack18" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        <Button name="TellTrack20" inherits="TellTrackTextButton" id="20">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativeTo="TellTrack19" relativePoint="BOTTOMLEFT"/>
                                </Anchors>
                        </Button>
                        
                        <Button name="$parentArrowDownButton">
                                <Size>
                                        <AbsDimension x="71" y="10"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
                                                <Offset>
                                                        <AbsDimension x="12" y="12"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="BACKGROUND">
                                                <Texture name="$parentBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpBG" setAllPoints="true">
                                                        <TexCoords left="0" right="1" top="1" bottom="0" />
                                                </Texture>
                                        </Layer>
                                        <Layer level="LOW">
                                                <Texture name="$parentRightBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpLeftCorner">
                                                        <Size>
                                                                <AbsDimension x="10" y="10"/>
                                                        </Size>
                                                        <TexCoords left="1" right="0" top="1" bottom="0" />
                                                        <Anchors>
                                                                <Anchor point="RIGHT"/>
                                                        </Anchors>
                                                </Texture>
                                                <Texture name="$parentLeftBG" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUpLeftCorner">
                                                        <Size>
                                                                <AbsDimension x="10" y="10"/>
                                                        </Size>
                                                        <TexCoords left="0" right="1" top="1" bottom="0" />
                                                        <Anchors>
                                                                <Anchor point="LEFT"/>
                                                        </Anchors>
                                                </Texture>
                                                <Texture name="$parentArrow" file="Interface\AddOns\TellTrack\Skin\TellTrackArrowUp">
                                                        <Size>
                                                                <AbsDimension x="20" y="10"/>
                                                        </Size>
                                                        <TexCoords left="0" right="1" top="1" bottom="0" />
                                                        <Anchors>
                                                                <Anchor point="CENTER"/>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                TellTrack_ArrowButton_OnLoad(this);
                                        </OnLoad>
                                        <OnClick>
                                                TellTrack_ArrowDownButton_OnClick(arg1);
                                        </OnClick>
                                        <OnSizeChanged>
                                                TellTrack_ArrowButton_OnSizeChanged(this);
                                        </OnSizeChanged>
                                </Scripts>
                        </Button>
                        <Button name="$parentQButton">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-3" y="-3"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                
                                <Scripts>
                                        <OnLoad>
                                                TellTrack_QButton_OnLoad();
                                        </OnLoad>
                                        <OnClick>
                                                TellTrack_QButton_OnClick(arg1);
                                        </OnClick>
                                        <OnEnter>
                                                TellTrack_QButton_OnEnter();
                                        </OnEnter>
                                        <OnLeave>
                                                TellTrack_QButton_OnLeave();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                        <Button name="$parentResizeBottomRight">
                                <Size>
                                        <AbsDimension x="16" y="16"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-3" y="-3"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
        
                                <Scripts>
                                        <OnLoad>
                                                --this:SetFrameLevel(this:GetFrameLevel()-1);
                                        </OnLoad>
                                        <OnEnter>
                                                TellTrack_ResizeButton_OnEnter();
                                        </OnEnter>
                                        <OnLeave>
                                                TellTrack_ResizeButton_OnLeave();
                                        </OnLeave>
                                        <OnMouseDown>
                                                this:GetParent().isResizing = true;
                                                this:GetParent():StartSizing("BOTTOMRIGHT");
                                        </OnMouseDown>
                                        <OnMouseUp>
                                                this:GetParent():StopMovingOrSizing();
                                                this:GetParent().isResizing = false;
                                        </OnMouseUp>
                                </Scripts>
                        </Button>
        </Frames>
                <Scripts>
                        <OnLoad>
                                TellTrack_OnLoad();
                                this:RegisterForDrag("LeftButton");
                        </OnLoad>
                        <OnEvent>
                                TellTrack_OnEvent(event);
                        </OnEvent>
                        <OnMouseUp>
                                if ( this.isMoving ) then
                                        this:StopMovingOrSizing();
                                        this.isMoving = false;
                                end
                        </OnMouseUp>
                        <OnMouseDown>
                                local x, y = GetCursorPosition();
                                this.xOffset = x - this:GetLeft();
                                this.yOffset = y - this:GetBottom();
                        </OnMouseDown>
                        <OnDragStart>
                                local x, y = GetCursorPosition();
                                this:ClearAllPoints();
                                this:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", x-this.xOffset, y-this.yOffset);
                                this:StartMoving();
                                this.isMoving = true;
                        </OnDragStart>
                        <OnDragStop>
                                this:StopMovingOrSizing();
                                this.isMoving = false;
                        </OnDragStop>
                        <OnSizeChanged>
                                TellTrackFrame_OnSizeChanged();
                        </OnSizeChanged>
                        <OnMouseWheel>
                                TellTrack_OnMouseWheel(arg1);
                        </OnMouseWheel>
                        <OnHide>
                                if ( this.isMoving or this.isResizing ) then
                                        this:StopMovingOrSizing();
                                        this.isMoving = false;
                                        this.isResizing = false;
                                end
                        </OnHide>
                </Scripts>
        </Frame>
        <GameTooltip name="TellTrackTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate" parent="UIParent"/>
        <Frame name="TellTrackDropDown" frameStrata="DIALOG" inherits="UIDropDownMenuTemplate" hidden="true" parent="TellTrackFrame"/>
</Ui>

Generated by GNU Enscript 1.6.5.90.