UMenu
Class UTCreditsWindow

source: e:\games\UnrealTournament\UMenu\Classes\UTCreditsWindow.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowFramedWindow
            |
            +--UMenu.UMenuFramedWindow
               |
               +--UMenu.UTCreditsWindow
Direct Known Subclasses:None

class UTCreditsWindow
extends UMenu.UMenuFramedWindow


Variables
 UWindowSmallCloseButton CloseButton


Function Summary
 void Created()
 void Paint(Canvas C, float X, float Y)
 void Resized()
 void SaveConfigs()



Source Code


00001	class UTCreditsWindow expands UMenuFramedWindow;
00002	
00003	var UWindowSmallCloseButton CloseButton;
00004	
00005	function Created() 
00006	{
00007		bStatusBar = False;
00008		bSizable = True;
00009	
00010		Super.Created();
00011	
00012		WinWidth = Min(360, Root.WinWidth - 50);
00013		WinHeight = Min(360, Root.WinHeight - 50);
00014	
00015		MinWinWidth = 300;
00016		MinWinHeight = 170;
00017	
00018		WinLeft = Root.WinWidth/2 - WinWidth/2;
00019		WinTop = Root.WinHeight/2 - WinHeight/2;
00020	
00021		CloseButton = UWindowSmallCloseButton(CreateWindow(class'UWindowSmallCloseButton', WinWidth-56, WinHeight-24, 48, 16));
00022	}
00023	
00024	function Resized()
00025	{
00026		Super.Resized();
00027		ClientArea.SetSize(ClientArea.WinWidth, ClientArea.WinHeight-24);
00028		CloseButton.WinLeft = ClientArea.WinLeft+ClientArea.WinWidth-52;
00029		CloseButton.WinTop = ClientArea.WinTop+ClientArea.WinHeight+4;
00030	}
00031	
00032	function Paint(Canvas C, float X, float Y)
00033	{
00034		local Texture T;
00035	
00036		T = GetLookAndFeelTexture();
00037		DrawUpBevel( C, ClientArea.WinLeft, ClientArea.WinTop + ClientArea.WinHeight, ClientArea.WinWidth, 24, T);
00038	
00039		Super.Paint(C, X, Y);
00040	}
00041	
00042	function SaveConfigs()
00043	{
00044		Super.SaveConfigs();
00045		GetPlayerOwner().SaveConfig();
00046	}
00047	
00048	defaultproperties
00049	{
00050	     ClientClass=Class'UMenu.UTCreditsCW'
00051	     WindowTitle="UT Credits"
00052	}

End Source Code