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">
        <Script file="localization.lua"/>
        <Script file="localization.ge.lua"/>
        <Script file="localization.fr.lua"/>
        <Script file="CT_Timer.lua"/>
        <Frame name="CT_TimerFrame" movable="true" hidden="true" parent="UIParent">
                <Size>
                        <AbsDimension x="128" y="36"/>
                </Size>
                <Anchors>
                        <Anchor point="TOP" relativeTo="UIParent" relativePoint="TOP">
                                <Offset>
                                        <AbsDimension x="0" y="-14"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Layers>
                        <Layer level="ARTWORK">
                                <Texture name="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="256" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP"/>
                                        </Anchors>
                                </Texture>
                                <FontString name="$parentTime" inherits="GameFontNormal" text="00:00:00">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parentHeaderTexture">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-14"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Button name="$parentScrollDownHour" inherits="UIPanelScrollDownButtonTemplate" hidden="false">
                                <Anchors>
                                        <Anchor point="TOPLEFT" relativePoint="LEFT">
                                                <Offset>
                                                        <AbsDimension x="-18" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                CT_Timer_ModTime(-3600);
                                        </OnClick>
                                        <OnEnter>
                                                CT_Timer_OnMouseOver();
                                        </OnEnter>
                                        <OnLeave>
                                                CT_Timer_OnMouseOut();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                        <Button name="$parentScrollUpHour" inherits="UIPanelScrollUpButtonTemplate" hidden="false">
                                <Anchors>
                                        <Anchor point="BOTTOMLEFT" relativePoint="LEFT">
                                                <Offset>
                                                        <AbsDimension x="-18" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                CT_Timer_ModTime(3600);
                                        </OnClick>
                                        <OnEnter>
                                                CT_Timer_OnMouseOver();
                                        </OnEnter>
                                        <OnLeave>
                                                CT_Timer_OnMouseOut();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                        <Button name="$parentScrollDownMin" inherits="UIPanelScrollDownButtonTemplate" hidden="false">
                                <Anchors>
                                        <Anchor point="TOPRIGHT" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="18" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                CT_Timer_ModTime(-60);
                                        </OnClick>
                                        <OnEnter>
                                                CT_Timer_OnMouseOver();
                                        </OnEnter>
                                        <OnLeave>
                                                CT_Timer_OnMouseOut();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                        <Button name="$parentScrollUpMin" inherits="UIPanelScrollUpButtonTemplate" hidden="false">
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT" relativePoint="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="18" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                CT_Timer_ModTime(60);
                                        </OnClick>
                                        <OnEnter>
                                                CT_Timer_OnMouseOver();
                                        </OnEnter>
                                        <OnLeave>
                                                CT_Timer_OnMouseOut();
                                        </OnLeave>
                                </Scripts>
                        </Button>
                        <Frame toplevel="true" name="$parentDragClickFrame" hidden="false">
                                <Anchors>
                                        <Anchor point="CENTER"/>
                                </Anchors>
                                <Size>
                                        <AbsDimension x="135" y="30"/>
                                </Size>
                                <Scripts>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText(CT_TIMER_DRAG1 .. "\n" .. CT_TIMER_DRAG2 .. "\n" .. CT_TIMER_DRAG3);
                                                CT_Timer_OnMouseOver();
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                                CT_Timer_OnMouseOut();
                                        </OnLeave>
                                        <OnMouseDown>
                                                if ( IsShiftKeyDown() and arg1 == "LeftButton" ) then
                                                        this:GetParent():StartMoving();
                                                end
                                        </OnMouseDown>
                                        <OnMouseUp>
                                                if ( arg1 == "RightButton" ) then
                                                        CT_Timer_Reset();
                                                elseif ( arg1 == "LeftButton" and not IsShiftKeyDown() ) then
                                                        CT_Timer_Toggle();
                                                end
                                                this:GetParent():StopMovingOrSizing();
                                        </OnMouseUp>
                                        <OnLoad>
                                                this.onbutton = 0;
                                                this.updatetime = 0.01;
                                        </OnLoad>
                                </Scripts>
                        </Frame>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:RegisterEvent("VARIABLES_LOADED");
                                CT_Timer.step = 1;
                                this.showsecs = 1;
                                CT_Timer.time = 0;
                                getglobal(this:GetName() .. "Time"):SetTextColor(1, 0, 0);
                                CT_Timer.color = { 1, 0, 0 };
                        </OnLoad>
                        <OnEvent>
                                CT_Timer_OnEvent(event);
                        </OnEvent>
                </Scripts>
        </Frame>
        <Frame name="CT_TimerOptionsFrame" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent">
                <Size>
                        <AbsDimension x="200" y="150"/>
                </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="$parentHeaderTexture" file="Interface\DialogFrame\UI-DialogBox-Header">
                                        <Size>
                                                <AbsDimension x="256" y="64"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="12"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                                <FontString inherits="GameFontNormal" text="Timer Options">
                                        <Anchors>
                                                <Anchor point="TOP" relativeTo="$parentHeaderTexture">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-14"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentShowTimer" inherits="GameFontNormal" text="Show Timer">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="60" y="-50"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentShowSeconds" inherits="GameFontNormal" text="Show Seconds">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="60" y="-70"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="$parentHideBackground" inherits="GameFontNormal" text="Hide Background">
                                        <Anchors>
                                                <Anchor point="LEFT" relativePoint="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="60" y="-90"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <Frame name="$parentDrag">
                                <Size>
                                        <AbsDimension x="150" y="32"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="-12" y="12"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnMouseDown>
                                                if ( arg1 == "LeftButton" ) then
                                                        this:GetParent():StartMoving();
                                                elseif ( arg1 == "RightButton" ) then
                                                        this:GetParent():ClearAllPoints();
                                                        this:GetParent():SetPoint("CENTER", "UIParent", "CENTER");
                                                end
                                        </OnMouseDown>
                                        <OnMouseUp>
                                                this:GetParent():StopMovingOrSizing();
                                        </OnMouseUp>
                                        <OnEnter>
                                                GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
                                                GameTooltip:SetText("Left-click to drag\nRight-click to reset");
                                        </OnEnter>
                                        <OnLeave>
                                                GameTooltip:Hide();
                                        </OnLeave>
                                </Scripts>
                        </Frame>
                        <Button name="$parentCloseButton" hidden="false" inherits="GameMenuButtonTemplate" text="Okay">
                                <Size>
                                        <AbsDimension x="100" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOM">
                                                <Offset>
                                                        <AbsDimension x="0" y="15"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                HideUIPanel(this:GetParent());
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <CheckButton name="$parentShowTimerCB" id="1" hidden="false" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentShowTimer">
                                                <Offset>
                                                        <AbsDimension x="-5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <HitRectInsets>
                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                </HitRectInsets>
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Scripts>
                                        <OnClick>
                                                CT_TimerOptions_OnClick(1, this:GetChecked());
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentShowSecondsCB" id="2" hidden="false" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentShowSeconds">
                                                <Offset>
                                                        <AbsDimension x="-5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <HitRectInsets>
                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                </HitRectInsets>
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Scripts>
                                        <OnClick>
                                                CT_TimerOptions_OnClick(2, this:GetChecked());
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                        <CheckButton name="$parentHideBackgroundCB" id="3" hidden="false" inherits="OptionsCheckButtonTemplate">
                                <Anchors>
                                        <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentHideBackground">
                                                <Offset>
                                                        <AbsDimension x="-5" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <HitRectInsets>
                                        <AbsInset left="0" right="0" top="0" bottom="0"/>
                                </HitRectInsets>
                                <Size>
                                        <AbsDimension x="24" y="24"/>
                                </Size>
                                <Scripts>
                                        <OnClick>
                                                CT_TimerOptions_OnClick(3, this:GetChecked());
                                        </OnClick>
                                </Scripts>
                        </CheckButton>
                </Frames>
                <Scripts>
                        <OnLoad>
                                this:RegisterEvent("PLAYER_ENTERING_WORLD");
                        </OnLoad>
                        <OnEvent>
                                CT_TimerOptions_Initialize();
                        </OnEvent>
                        <OnShow>
                                PlaySound("UChatScrollButton");
                        </OnShow>
                        <OnHide>
                                PlaySound("UChatScrollButton");
                        </OnHide>
                </Scripts>
        </Frame>
        <Frame name="CT_TimerGlobalFrame" parent="UIParent" hidden="false">
                <Scripts>
                        <OnUpdate>
                                CT_Timer_UpdateTime(arg1);
                        </OnUpdate>
                </Scripts>
        </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.