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="CT_Tickmod.lua"/>
        <Frame name="CT_TicksFrame" movable="true" hidden="false" parent="UIParent">
                <Size>
                        <AbsDimension x="100" y="40"/>
                </Size>
                <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                        <EdgeSize>
                                <AbsValue val="16"/>
                        </EdgeSize>
                        <TileSize>
                                <AbsValue val="16"/>
                        </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5"/>
                        </BackgroundInsets>
                </Backdrop>
                <Anchors>
                        <Anchor point="RIGHT" relativeTo="Minimap" relativePoint="LEFT">
                                <Offset>
                                        <AbsDimension x="-14" y="67"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="CT_TicksHealth" hidden="false" inherits="GameFontNormal" text="">
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-5"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <FontString name="CT_TicksMana" hidden="false" inherits="GameFontNormal" text="">
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-20"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Scripts>
                        <OnUpdate>
                                CT_TickMod_Fade(arg1);
                        </OnUpdate>
                        <OnLoad>
                                this.update = 0;
                                this.alphamana = 1;
                                this.alphahealth = 1;
                                this:RegisterEvent("UNIT_HEALTH");
                                this:RegisterEvent("UNIT_MAXHEALTH");
                                this:RegisterEvent("UNIT_MANA");
                                this:RegisterEvent("UNIT_MAXMANA");
                                this:RegisterEvent("VARIABLES_LOADED");
                        </OnLoad>
                        <OnEvent>
                                CT_TickMod_OnEvent(event);
                        </OnEvent>
                        <OnMouseDown>
                                if ( arg1 == "LeftButton" and ( not CT_RegisterMod or CT_MF_ShowFrames ) ) then
                                        this:StartMoving();
                                end
                        </OnMouseDown>
                        <OnEnter>
                                CT_TickMod_OnEnter();
                        </OnEnter>
                        <OnLeave>
                                GameTooltip:Hide();
                        </OnLeave>
                        <OnMouseUp>
                                if ( arg1 == "LeftButton" ) then
                                        this:StopMovingOrSizing();
                                end
                        </OnMouseUp>
                        <OnHide>
                                this:StopMovingOrSizing();
                        </OnHide>
                </Scripts>
        </Frame>
        <Frame parent="UIParent">
                <Frames>
                        <Button name="TitanPanelRegenButton" inherits="TitanPanelTextTemplate" frameStrata="FULLSCREEN" toplevel="true">
                                <Scripts>
                                        <OnLoad>
                                                if ( TitanPanelButton_OnLoad ) then
                                                        TitanPanelRegenButton_OnLoad();
                                                        TitanPanelButton_OnLoad();
                                                end
                                        </OnLoad>
                                </Scripts>
                        </Button>
                </Frames>
        </Frame>
</Ui>