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

ROInterface.ROUT2K4GamePageMP


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
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
//-----------------------------------------------------------
// edited by emh 11/24/05
//-----------------------------------------------------------
class ROUT2K4GamePageMP extends UT2K4GamePageMP;

function InitComponent(GUIController InController, GUIComponent InOwner)
{
	Super.InitComponent(InController, InOwner);

    class'ROInterfaceUtil'.static.SetROStyle(InController, Controls);

    RuleInfo = new(None) class'Engine.PlayInfo';

    c_Tabs.RemoveTab(PanelCaption[0]); // Remove Game Type tab
    c_Tabs.RemoveTab(PanelCaption[4]); // Remove Game Type tab

	mcRules = IAMultiColumnRulesPanel(c_Tabs.ReplaceTab(c_Tabs.TabStack[1], PanelCaption[2], "ROInterface.ROIAMultiColumnRulesPanel",, PanelHint[2]));

	// hax! hide frame and difficulty setting
    ROUT2K4Tab_MainSP(c_Tabs.BorrowPanel(PanelCaption[1])).bHideDifficultyControl = true;
}

// we only have one game type so it is never locked
function bool GameTypeLocked()
{
	local int i;
	local GUITabButton tb;

		for ( i = 0; i < c_Tabs.TabStack.Length; i++ )
		{
			tb = c_Tabs.TabStack[i];
			if ( tb != None )
			{
				EnableComponent(tb);
			}
		}

		EnableComponent(b_Primary);
		EnableComponent(b_Secondary);
		// Update the botmode stuff (tab button & minplayers property control)
		if ( RuleInfo != None && mcRules != None )
		{
			i = RuleInfo.FindIndex("BotMode");
			if ( i != -1 )
				mcRules.UpdateBotSetting(i);
		}


    return false;
}

function StartGame(string GameURL, bool bAlt)
{
	local GUIController C;

	C = Controller;

    if (bAlt)
	{
	    if ( mcServerRules != None )
			GameURL $= mcServerRules.Play();

        log("GameURL is "$GameURL);
        log("ConsoleCommand  is "$"relaunch"@GameURL@"-server -log=server.log");
	    // Append optional server flags
		PlayerOwner().ConsoleCommand("relaunch"@GameURL@"-server -log=server.log");
//		PlayerOwner().ConsoleCommand("relaunch"@GameURL@"-server  -Mod=RedOrchestra  -log=server.log");
	}
    else
        PlayerOwner().ClientTravel(GameURL $ "?Listen",TRAVEL_Absolute,False);

    C.CloseAll(false,True);
}

defaultproperties
{
     Begin Object Class=UT2K4GameFooter Name=MPFooter
         PrimaryCaption="LISTEN"
         PrimaryHint="Start A Listen Server With These Settings"
         SecondaryCaption="DEDICATED"
         SecondaryHint="Start a Dedicated Server With These Settings"
         Spacer=0.010000
         TextIndent=5
         FontScale=FNS_Small
         WinTop=0.957943
         RenderWeight=0.300000
         TabOrder=8
         OnPreDraw=MPFooter.InternalOnPreDraw
     End Object
     t_Footer=UT2K4GameFooter'ROInterface.ROUT2K4GamePageMP.MPFooter'

     Begin Object Class=GUIImage Name=BkChar
         Image=Texture'menuBackground.MainBackGround'
         ImageStyle=ISTY_Scaled
         X1=0
         Y1=0
         X2=1024
         Y2=1024
         WinHeight=1.000000
         RenderWeight=0.020000
     End Object
     i_bkChar=GUIImage'ROInterface.ROUT2K4GamePageMP.BkChar'

     PanelClass(1)="ROInterface.ROUT2K4Tab_MainSP"
     PanelClass(2)="ROInterface.ROIAMultiColumnRulesPanel"
     PanelClass(3)="ROInterface.ROUT2K4Tab_MutatorSP"
     PanelClass(4)="ROInterface.ROUT2K4Tab_BotConfigMP"
     PanelClass(5)="ROInterface.ROUT2K4Tab_ServerRulesPanel"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 13-10-2023 03:17:28.000 - Creation time: Fri 13-10-2023 03:19:07.724 - Created with UnCodeX