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="ChatrBacklog.lua" />
        <Frame name="ChatrBacklogOptions" toplevel="true" hidden="true" enableMouse="true" parent="ChatrOptions">
                <Size><AbsDimension x="250" y="100"/></Size>
                <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
                                <Offset><AbsDimension x="0" y="0" /></Offset>
                        </Anchor>
                </Anchors>
                <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
                        <EdgeSize><AbsValue val="32"/></EdgeSize>
                        <TileSize><AbsValue val="32"/></TileSize>
                        <BackgroundInsets><AbsInset left="11" right="12" top="12" bottom="11"/></BackgroundInsets>
                </Backdrop>
                
                <Scripts>
                        <OnLoad>
                                this:RegisterEvent("VARIABLES_LOADED");
                        </OnLoad>
                        <OnEvent>
                                if event=="VARIABLES_LOADED" then
                                        ChatrBacklog_Init();
                                end
                        </OnEvent>
                </Scripts>
                <Layers>
                        <Layer level="OVERLAY">
                                <FontString name="ChatrBacklogOptionsTitle" inherits="GameFontNormal" text="ChatrBacklog" justifyH="CENTER">
                                        <Anchors><Anchor point="TOP"></Anchor></Anchors>
                                </FontString>                           
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="ChatrBacklogClear" inherits="GameMenuButtonTemplate" text="Clear">
                                <Size><AbsDimension x="80" y="40" /></Size>
                                <Anchors><Anchor point="CENTER"></Anchor></Anchors>
                                <Scripts>
                                        <OnClick>ChatrBacklog_Log={};Chatr_Print("Whoosh!");</OnClick>
                                </Scripts>
                        </Button>               
                </Frames>
                
        </Frame>
        <Button name="ChatrBacklogToggle" inherits="GameMenuButtonTemplate" text="Backlog" parent="ChatrOptions">
                <Size><AbsDimension x="60" y="25" /></Size>
                <Scripts>
                        <OnClick>if ChatrBacklogOptions:IsShown() then ChatrBacklogOptions:Hide() else ChatrBacklogOptions:Show() end</OnClick>
                </Scripts>
        </Button>       
</Ui>