UMenu
Class UMenuBotmatchWindow

source: e:\games\UnrealTournament\UMenu\Classes\UMenuBotmatchWindow.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowFramedWindow
            |
            +--UMenu.UMenuFramedWindow
               |
               +--UMenu.UMenuBotmatchWindow
Direct Known Subclasses:UMenuStartGameWindow, UTBotmatchWindow

class UMenuBotmatchWindow
extends UMenu.UMenuFramedWindow



Function Summary
 void Created()
 void ResolutionChanged(float W, float H)
 void SaveConfigs()
 void SetSizePos()



Source Code


00001	class UMenuBotmatchWindow extends UMenuFramedWindow;
00002	
00003	function Created() 
00004	{
00005		bStatusBar = False;
00006		bSizable = False;
00007	
00008		Super.Created();
00009	
00010		SetSizePos();
00011	}
00012	
00013	function SetSizePos()
00014	{
00015		if(Root.WinHeight < 290)
00016			SetSize(Min(Root.WinWidth-10, 520) , 220);
00017		else
00018			SetSize(Min(Root.WinWidth-10, 520), 270);
00019		
00020		WinLeft = Root.WinWidth/2 - WinWidth/2;
00021		WinTop = Root.WinHeight/2 - WinHeight/2;
00022	}
00023	
00024	function ResolutionChanged(float W, float H)
00025	{
00026		SetSizePos();
00027		Super.ResolutionChanged(W, H);
00028	}
00029	
00030	function SaveConfigs()
00031	{
00032		ClientArea.SaveConfig();
00033		GetPlayerOwner().SaveConfig();
00034	}
00035	
00036	defaultproperties
00037	{
00038	     ClientClass=Class'UMenu.UMenuBotmatchClientWindow'
00039	     WindowTitle="Botmatch"
00040	}

End Source Code