UTMenu
Class UTAssaultRulesCW

source: e:\games\UnrealTournament\UTMenu\Classes\UTAssaultRulesCW.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowClientWindow
            |
            +--UWindow.UWindowDialogClientWindow
               |
               +--UWindow.UWindowPageWindow
                  |
                  +--UMenu.UMenuPageWindow
                     |
                     +--UMenu.UMenuGameRulesBase
                        |
                        +--UTMenu.UTRulesCWindow
                           |
                           +--UTMenu.UTTeamRCWindow
                              |
                              +--UTMenu.UTAssaultRulesCW
Direct Known Subclasses:None

class UTAssaultRulesCW
extends UTMenu.UTTeamRCWindow



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



Source Code


00001	class UTAssaultRulesCW extends UTTeamRCWindow;
00002	
00003	function Created()
00004	{
00005		Super.Created();
00006	
00007		TeamScoreEdit.HideWindow();
00008		FragEdit.HideWindow();
00009		TimeEdit.HideWindow();
00010	
00011		WeaponsCheck.WinTop -= 25;
00012		FFSlider.WinTop -= 25;
00013		TourneyCheck.WinTop -= 25;
00014	
00015		if (MaxPlayersEdit != None)
00016			MaxPlayersEdit.WinTop -= 25;
00017	
00018		if (MaxSpectatorsEdit != None)
00019			MaxSpectatorsEdit.WinTop -= 25;
00020	
00021		if (BalancePlayersCheck != None)
00022			BalancePlayersCheck.WinTop -= 25;
00023	
00024		if (BalancePlayersCheck != None && ForceRespawnCheck != None)
00025		{
00026			ForceRespawnCheck.WinTop = BalancePlayersCheck.WinTop;
00027			FFSlider.WinTop -= 25;
00028		}
00029	}
00030	
00031	function BeforePaint(Canvas C, float X, float Y)
00032	{
00033		local int ControlWidth, ControlLeft, ControlRight;
00034		local int CenterWidth, CenterPos, ButtonWidth, ButtonLeft;
00035	
00036		Super.BeforePaint(C, X, Y);
00037	
00038		ControlWidth = WinWidth/2.5;
00039		ControlLeft = (WinWidth/2 - ControlWidth)/2;
00040		ControlRight = WinWidth/2 + ControlLeft;
00041	
00042		CenterWidth = (WinWidth/4)*3;
00043		CenterPos = (WinWidth - CenterWidth)/2;
00044	
00045		if(ForceRespawnCheck != None)
00046		{
00047			ForceRespawnCheck.SetSize(ControlWidth, 1);
00048			ForceRespawnCheck.WinLeft = ControlRight;
00049		}
00050	}
00051	
00052	defaultproperties
00053	{
00054	}

End Source Code