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="EnergyWatch_v2.lua"/>
        <Frame name="EnergyWatch" parent="UIParent" hidden="false">
                <Scripts>
                        <OnLoad>
                                EnergyWatch_OnLoad();
                        </OnLoad>
                        <OnEvent>
                                EnergyWatch_OnEvent(event);
                        </OnEvent>
                        <OnUpdate>
                                EnergyWatch_OnUpdate();
                        </OnUpdate>
                </Scripts>
        </Frame>
        <Frame name="EnergyWatchBar" parent="UIParent" hidden="true" movable="true">
                <Size>
                        <AbsDimension x="116" y="26"/>
                </Size>
                <Anchors>
                        <Anchor point="CENTER">
                                <Offset>
                                        <AbsDimension x="0" y="80"/>
                                </Offset>
                        </Anchor>
                </Anchors>
                <Layers>
                        <Layer level="BACKGROUND">
                                <Texture>
                                        <Size>
                                                <AbsDimension x="107" y="13"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-2"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                        <Color r="0" g="0" b="0" a="0.5"/>
                                </Texture>              
                        </Layer>
                        <Layer level="OVERLAY">
                                <FontString name="EnergyWatchText" inherits="GameFontHighlight">
                                        <Size>
                                                <AbsDimension x="110" y="16"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="2"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                                <Texture file="Interface\Tooltips\UI-StatusBar-Border">
                                        <Size>
                                                <AbsDimension x="111" y="20"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="1" y="2"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </Texture>
                        </Layer>
                </Layers>
                <Frames>
                        <StatusBar name="EnergyWatchFrameStatusBar">
                                <Size>
                                        <AbsDimension x="105" y="13"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="-2"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <Texture name="EnergyWatchSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
                                                        <Size>
                                                                <AbsDimension x="32" y="32"/>
                                                        </Size>
                                                        <Anchors>
                                                                <Anchor point="CENTER">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </Texture>
                                        </Layer>
                                </Layers>
                                <Scripts>
                                        <OnLoad>
                                                this:SetFrameLevel(this:GetFrameLevel() - 1)
                                        </OnLoad>
                                </Scripts>
                                <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
                                <BarColor r="1.0" g="1.0" b="0.0"/>
                        </StatusBar>
                </Frames>
                <Scripts>
                        <OnMouseDown>
                                if( arg1 == "LeftButton" and ENERGYWATCH_STATUS == 2 ) then
                                        this:StartMoving();
                                end
                        </OnMouseDown>
                        <OnMouseUp>
                                if( arg1 == "LeftButton" ) then
                                        this:StopMovingOrSizing();
                                end
                        </OnMouseUp>
                </Scripts>
        </Frame>

        <Frame name="EnergyWatch_Variable_Frame" hidden="false">
                <Scripts>
                        <OnUpdate>
                                EnergyWatch_LoadVariables(arg1)
                        </OnUpdate>
                </Scripts>
        </Frame>
</Ui>