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

UMenu.UTCreditsWindow


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
class UTCreditsWindow expands UMenuFramedWindow;

var UWindowSmallCloseButton CloseButton;

function Created() 
{
    bStatusBar = False;
    bSizable = True;

    Super.Created();

    WinWidth = Min(360, Root.WinWidth - 50);
    WinHeight = Min(360, Root.WinHeight - 50);

    MinWinWidth = 300;
    MinWinHeight = 170;

    WinLeft = Root.WinWidth/2 - WinWidth/2;
    WinTop = Root.WinHeight/2 - WinHeight/2;

    CloseButton = UWindowSmallCloseButton(CreateWindow(class'UWindowSmallCloseButton', WinWidth-56, WinHeight-24, 48, 16));
}

function Resized()
{
    Super.Resized();
    ClientArea.SetSize(ClientArea.WinWidth, ClientArea.WinHeight-24);
    CloseButton.WinLeft = ClientArea.WinLeft+ClientArea.WinWidth-52;
    CloseButton.WinTop = ClientArea.WinTop+ClientArea.WinHeight+4;
}

function Paint(Canvas C, float X, float Y)
{
    local Texture T;

    T = GetLookAndFeelTexture();
    DrawUpBevel( C, ClientArea.WinLeft, ClientArea.WinTop + ClientArea.WinHeight, ClientArea.WinWidth, 24, T);

    Super.Paint(C, X, Y);
}

function SaveConfigs()
{
    Super.SaveConfigs();
    GetPlayerOwner().SaveConfig();
}

defaultproperties
{
     ClientClass=Class'UMenu.UTCreditsCW'
     WindowTitle="UT Credits"
}

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