vanilla-wow-addons – Rev 1

Subversion Repositories:
Rev:
<Ui>
        <Button name="Tetris_NS_Stone" virtual="true" hidden="false">
                <Size>
                        <AbsDimension x="30" y="30"/>
                </Size>
                <Anchors>
                        <Anchor point="BOTTOMLEFT">
                                <Offset>
                                        <AbsDimension x="0" y="0"/>
                                </Offset>
                        </Anchor>
                </Anchors>      

        <NormalTexture file="Interface\AddOns\Tetris\texturen\leer">
            <Size>
                <AbsDimension x="30" y="30"/>
            </Size>
        </NormalTexture>
        </Button>
  
  <Frame name="Tetris_GF" toplevel="true" hidden="true" movable="true" parent="UIParent">
  
        <Size>
                <AbsDimension x="260" y="200" />
        </Size>         
        <Anchors>
                <Anchor point="CENTER"></Anchor>
        </Anchors>
                
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                <BackgroundInsets>
                        <AbsInset left="8" right="8" top="7" bottom="7" />      
                </BackgroundInsets>
                <TileSize>
                        <AbsValue val="32" />
                </TileSize>
                <EdgeSize>
                        <AbsValue val="32" />
                </EdgeSize>
    </Backdrop>

                <Layers>
                        <Layer level="ARTWORK">
                                <FontString name="Tetris_GF_Text_Highscore" text="GF_Text_Highscore" inherits="ChatFontNormal" justifyV = "TOP" justifyH = "LEFT">
                                        <Anchors>
                                                <Anchor point="TOPLEFT">
                                                        <Offset>
                                                                <AbsDimension x="15" y="-15"/>
                                                        </Offset>
                                                </Anchor>
                                        </Anchors>
                                </FontString>
                        </Layer>                                
                </Layers>
                
                <Frames>

                        <Button name="Tetris_GF_b_pause" inherits="GameMenuButtonTemplate" text="GF_b_pause">
                                <Size>
                                        <AbsDimension x="70" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                Tetris_GF_Button_Click();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Button name="Tetris_GF_b_newgame" inherits="GameMenuButtonTemplate" text="GF_b_newgame">
                                <Size>
                                        <AbsDimension x="70" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                Tetris_GF_Button_Click();
                                        </OnClick>
                                </Scripts>
                        </Button>
                        <Button name="Tetris_GF_b_close" inherits="GameMenuButtonTemplate" text="GF_b_close">
                                <Size>
                                        <AbsDimension x="70" y="25"/>
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="-15" y="-15"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Scripts>
                                        <OnClick>
                                                Tetris_GF_Button_Click();
                                        </OnClick>
                                </Scripts>
                        </Button>

                        <Frame name="Tetris_GF_BF" toplevel="true" hidden="false" movable="false">
                                <Size>
                                        <AbsDimension x="160" y="120" />
                                </Size>
                                <Anchors>
                                        <Anchor point="BOTTOMRIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <BackgroundInsets>
                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="32" />
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="32" />
                                        </EdgeSize>
                        </Backdrop>
                                <Frames>
                                        <Button name="Tetris_GF_BF_l" inherits="GameMenuButtonTemplate" text="GF_BF_l">
                                                <Size>
                                                        <AbsDimension x="60" y="30"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="-30" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Tetris_GF_BF_Button_Click();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="Tetris_GF_BF_r" inherits="GameMenuButtonTemplate" text="GF_BF_r">
                                                <Size>
                                                        <AbsDimension x="60" y="30"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="30" y="0"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Tetris_GF_BF_Button_Click();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="Tetris_GF_BF_d" inherits="GameMenuButtonTemplate" text="GF_BF_d">
                                                <Size>
                                                        <AbsDimension x="60" y="30"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="-30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Tetris_GF_BF_Button_Click();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                        <Button name="Tetris_GF_BF_u" inherits="GameMenuButtonTemplate" text="GF_BF_u">
                                                <Size>
                                                        <AbsDimension x="60" y="30"/>
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="CENTER">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="30"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Scripts>
                                                        <OnClick>
                                                                Tetris_GF_BF_Button_Click();
                                                        </OnClick>
                                                </Scripts>
                                        </Button>
                                </Frames>                       
                        </Frame>

                        <Frame name="Tetris_GF_NS" toplevel="true" hidden="false" movable="false">
                                <Size>
                                        <AbsDimension x="160" y="120" />
                                </Size>
                                <Anchors>
                                        <Anchor point="TOPRIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <BackgroundInsets>
                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="32" />
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="32" />
                                        </EdgeSize>
                        </Backdrop>
                                <Frames>
                                
                                        <Frame name="Tetris_GF_NS_Titel" toplevel="true" hidden="false" movable="false">
                                                <Size>
                                                        <AbsDimension x="100" y="40" />
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="12"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <BackgroundInsets>
                                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                                        </BackgroundInsets>
                                                        <TileSize>
                                                                <AbsValue val="32" />
                                                        </TileSize>
                                                        <EdgeSize>
                                                                <AbsValue val="32" />
                                                        </EdgeSize>
                                        </Backdrop>             
                                                <Layers>
                                                        <Layer level="ARTWORK"> 
                                                                <FontString name="Tetris_GF_NS_Titeltext" text="GF_NS_Titeltext" inherits="GameFontNormal">
                                                                        <Anchors>
                                                                                <Anchor point="CENTER">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>                                
                                                </Layers>
                                        </Frame>
                                
                                        <Button name="Tetris_NS_x1y1" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x2y1" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x3y1" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x4y1" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x1y2" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x2y2" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x3y2" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x4y2" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x1y3" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x2y3" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x3y3" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                        <Button name="Tetris_NS_x4y3" inherits="Tetris_NS_Stone" hidden="true">
                                        </Button>
                                </Frames>                       
                        </Frame>

                        <Frame name="Tetris_GF_SF" toplevel="true" hidden="false" movable="false">
                                <Size>
                                        <AbsDimension x="100" y="90" />
                                </Size>
                                <Anchors>
                                        <Anchor point="RIGHT">
                                                <Offset>
                                                        <AbsDimension x="0" y="0"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <BackgroundInsets>
                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="32" />
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="32" />
                                        </EdgeSize>
                        </Backdrop>
                                <Layers>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="Tetris_GF_SF_Text_Score" text="GF_SF_Text_Score" inherits="ChatFontNormal">
                                                        <Anchors>
                                                                <Anchor point="CENTER">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="-4"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>                       
                                <Frames>
                                        <Frame name="Tetris_GF_SF_Titel" toplevel="true" hidden="false" movable="false">
                                                <Size>
                                                        <AbsDimension x="80" y="40" />
                                                </Size>
                                                <Anchors>
                                                        <Anchor point="TOP">
                                                                <Offset>
                                                                        <AbsDimension x="0" y="12"/>
                                                                </Offset>
                                                        </Anchor>
                                                </Anchors>
                                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                                        <BackgroundInsets>
                                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                                        </BackgroundInsets>
                                                        <TileSize>
                                                                <AbsValue val="32" />
                                                        </TileSize>
                                                        <EdgeSize>
                                                                <AbsValue val="32" />
                                                        </EdgeSize>
                                        </Backdrop>
                                        <Layers>
                                                        <Layer level="ARTWORK"> 
                                                                <FontString name="Tetris_GF_SF_Titeltext" text="GF_SF_Titeltext" inherits="GameFontNormal">
                                                                        <Anchors>
                                                                                <Anchor point="CENTER">
                                                                                        <Offset>
                                                                                                <AbsDimension x="0" y="0"/>
                                                                                        </Offset>
                                                                                </Anchor>
                                                                        </Anchors>
                                                                </FontString>
                                                        </Layer>                                
                                                </Layers>
                                        </Frame>
                                </Frames>               
                        </Frame>
                                                
                        <Frame name="Tetris_GF_Titel" toplevel="true" hidden="false" movable="false">
                                <Size>
                                        <AbsDimension x="160" y="40" />
                                </Size>
                                <Anchors>
                                        <Anchor point="TOP">
                                                <Offset>
                                                        <AbsDimension x="0" y="12"/>
                                                </Offset>
                                        </Anchor>
                                </Anchors>
                                <Backdrop bgFile="Interface\AddOns\Tetris\texturen\schwarz" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
                                        <BackgroundInsets>
                                                <AbsInset left="8" right="8" top="7" bottom="7" />      
                                        </BackgroundInsets>
                                        <TileSize>
                                                <AbsValue val="32" />
                                        </TileSize>
                                        <EdgeSize>
                                                <AbsValue val="32" />
                                        </EdgeSize>
                        </Backdrop>             
                                <Layers>
                                        <Layer level="ARTWORK"> 
                                                <FontString name="Tetris_GF_Titeltext" text="GF_Titeltext" inherits="GameFontNormal">
                                                        <Anchors>
                                                                <Anchor point="CENTER">
                                                                        <Offset>
                                                                                <AbsDimension x="0" y="0"/>
                                                                        </Offset>
                                                                </Anchor>
                                                        </Anchors>
                                                </FontString>
                                        </Layer>                                
                                </Layers>
                        </Frame>
        
                </Frames>

        <Scripts>
                        <OnMouseDown>
                                if ( arg1 == "LeftButton" ) then
                                        this:StartMoving();
                                end
                        </OnMouseDown>
                        <OnMouseUp>
                                if ( arg1 == "LeftButton" ) then
                                        this:StopMovingOrSizing();
                                end
                        </OnMouseUp>
                        <OnLoad>
                                this:RegisterEvent("VARIABLES_LOADED");
                        </OnLoad>
                        <OnEvent>
                                --wenn alle variablen geladen sind, addon starten
                                if (event == "VARIABLES_LOADED") then
                                        Tetris_Load ();
                                end
                        </OnEvent>
           </Scripts>

        </Frame>
</Ui>