Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTMenu.StaticArea


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
class StaticArea expands UWindowWindow;

#exec TEXTURE IMPORT NAME=VScreenStatic FILE=TEXTURES\Static\ScreenStatic.PCX GROUP=Skins MIPS=OFF
#exec TEXTURE IMPORT NAME=HScreenStatic1 FILE=TEXTURES\Static\HStatic1.PCX GROUP=Skins MIPS=OFF
#exec TEXTURE IMPORT NAME=HScreenStatic3 FILE=TEXTURES\Static\HStatic3.PCX GROUP=Skins MIPS=OFF

var float HStaticOffset, HStaticScale;
var bool bHPanStatic;
var texture HStaticTexture;
var bool HStaticLoop;
var float HStaticWidth;

var float VStaticOffset, VStaticScale;
var bool bVPanStatic;
var texture VStaticTexture;

function Paint(canvas C, float X, float Y)
{
    C.DrawColor.R = 50;
    C.DrawColor.G = 50;
    C.DrawColor.B = 50;
    C.Style = GetPlayerOwner().ERenderStyle.STY_Translucent;
    if (bVPanStatic)
        DrawStretchedTexture(C, 0, VStaticOffset, WinWidth, 32, VStaticTexture);
    if (bHPanStatic)
        DrawStretchedTexture(C, HStaticOffset, 0, HStaticWidth, WinHeight, HStaticTexture);
    C.Style = GetPlayerOwner().ERenderStyle.STY_Normal;
    C.DrawColor.R = 255;
    C.DrawColor.G = 255;
    C.DrawColor.B = 255;
}

function Tick(float Delta)
{
    if (bVPanStatic)
    {
        VStaticOffset += Delta * VStaticScale;
        if (VStaticOffset > WinHeight)
        {
            bVPanStatic = False;
            VStaticOffset = -32;
        }
    }

    if (bHPanStatic)
    {
        HStaticOffset += Delta * HStaticScale;
        if (HStaticOffset > WinWidth)
        {
            if (!HStaticLoop)
                bHPanStatic = False;
            HStaticOffset = -32;
        }
    }
}

function bool CheckMousePassThrough(float X, float Y)
{
    return True;
}

defaultproperties
{
     HStaticOffset=-32.000000
     HStaticScale=1.000000
     HStaticTexture=Texture'UTMenu.Skins.HScreenStatic1'
     HStaticWidth=32.000000
     VStaticOffset=-32.000000
     VStaticScale=1.000000
     VStaticTexture=Texture'UTMenu.Skins.VScreenStatic'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:16.000 - Creation time: Fr 7.6.2013 13:16:01.186 - Created with UnCodeX