UMenu
Class UMenuMutatorWindow

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

class UMenuMutatorWindow
extends UWindow.UWindowFramedWindow


Variables
 UWindowSmallCloseButton CloseButton


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



Source Code


00001	class UMenuMutatorWindow expands UWindowFramedWindow;
00002	
00003	var UWindowSmallCloseButton CloseButton;
00004	
00005	function Created() 
00006	{
00007		bStatusBar = False;
00008		bSizable = True;
00009	
00010		Super.Created();
00011	
00012		WinWidth = Min(400, Root.WinWidth - 50);
00013		WinHeight = Min(210, Root.WinHeight - 50);
00014	
00015		WinLeft = Root.WinWidth/2 - WinWidth/2;
00016		WinTop = Root.WinHeight/2 - WinHeight/2;
00017	
00018		CloseButton = UWindowSmallCloseButton(CreateWindow(class'UWindowSmallCloseButton', WinWidth-56, WinHeight-24, 48, 16));
00019	
00020		MinWinWidth = 200;
00021	}
00022	
00023	function Resized()
00024	{
00025		Super.Resized();
00026		ClientArea.SetSize(ClientArea.WinWidth, ClientArea.WinHeight-24);
00027		CloseButton.WinLeft = ClientArea.WinLeft+ClientArea.WinWidth-52;
00028		CloseButton.WinTop = ClientArea.WinTop+ClientArea.WinHeight+4;
00029	}
00030	
00031	function Paint(Canvas C, float X, float Y)
00032	{
00033		local Texture T;
00034	
00035		T = GetLookAndFeelTexture();
00036		DrawUpBevel( C, ClientArea.WinLeft, ClientArea.WinTop + ClientArea.WinHeight, ClientArea.WinWidth, 24, T);
00037	
00038		Super.Paint(C, X, Y);
00039	}
00040	
00041	defaultproperties
00042	{
00043	     ClientClass=Class'UMenu.UMenuMutatorCW'
00044	     WindowTitle="Configure Mutators"
00045	}

End Source Code