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="DiscoDice.lua"/>

        <Frame name="DiscoDiceBarTemplate" virtual="true" hidden="true" movable="true" parent="UIParent">
                <Size>
                        <AbsDimension x="170" y="20" />
                </Size>
                <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" bgFile="Interface\Tooltips\UI-Tooltip-Background" tile="true">
                        <EdgeSize>
                                <AbsValue val="16" />
                        </EdgeSize>
                        <TileSize>
                                <AbsValue val="16" />
                        </TileSize>
                        <BackgroundInsets>
                                <AbsInset left="5" right="5" top="5" bottom="5" />
                        </BackgroundInsets>
                </Backdrop>
                <Layers>
                        <Layer level="OVERLAY">
                                <FontString name="$parentText" inherits="GameFontHighlight">
                                        <Size>
                                                <AbsDimension x="170" y="10"/>
                                        </Size>
                                        <Anchors>
                                                <Anchor point="TOP">
                                                        <Offset>
                                                                <AbsDimension x="0" y="-4"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>
                </Layers>
                <Frames>
                        <StatusBar name="$parentStatusBar">
                                <Size>
                                        <AbsDimension x="162" y="12"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER" relativeto="$parent">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Layers>
                                        <Layer level="OVERLAY">
                                                <Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
                                                        <Size>
                                                                <AbsDimension x="32" y="40"/>
                                                        </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="0.5" g="0.5" b="1.0"/>
                        </StatusBar>
                        <StatusBar name="$parentStatusBarB">
                                <Size>
                                        <AbsDimension x="162" y="12"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="CENTER" relativeto="$parent">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnLoad>        
                                                this:SetFrameLevel(this:GetFrameLevel() - 2)
                                        </OnLoad>
                                </Scripts>
                                <BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
                                <BarColor r="1" g="1" b="0"/>
                        </StatusBar>

                </Frames>
        </Frame>

        <Frame name="DiscoDice" movable="true" parent="UIParent">
                <Size>
                        <AbsDimension x="170" y="52" />
                </Size>
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnLoad>
                                this:EnableMouse(0);
                                DiscoDice_Initialize();
                        </OnLoad>
                        <OnUpdate>
                                DiscoDice_OnUpdate();
                        </OnUpdate>
                        <OnEvent>
                                DiscoDice_OnEvent(event);
                        </OnEvent>
                        <OnMouseDown>
                                if ( DiscoDice_var == 3 ) then
                                        test = 1;
                                else
                                        this:StartMoving();
                                end
                        </OnMouseDown>
                        <OnMouseUp>
                                this:StopMovingOrSizing();
                        </OnMouseUp>
                </Scripts>
        </Frame>

        <Frame name="DiscoDiceBar1" parent="DiscoDice" inherits="DiscoDiceBarTemplate" movable="True">
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnShow>
                        </OnShow>
                </Scripts>
        </Frame>

        <Frame name="DiscoDiceBar2" parent="DiscoDice" inherits="DiscoDiceBarTemplate" movable="True">
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="-16" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnShow>
                        </OnShow>
                </Scripts>
        </Frame>
        <Frame name="DiscoDiceBar3" parent="DiscoDice" inherits="DiscoDiceBarTemplate" movable="True">
                <Anchors>
                        <Anchor point="TOPLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="-32" />
                                </Offset>
                        </Anchor>
                </Anchors>
                <Scripts>
                        <OnShow>
                        </OnShow>
                </Scripts>
        </Frame>
</Ui>

Generated by GNU Enscript 1.6.5.90.