Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 |
//============================================================================== // Created on: 12/11/2003 // Description // // Written by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class UT2K4GamePageMP extends UT2K4GamePageBase; function InitComponent(GUIController InController, GUIComponent InOwner) { Super.InitComponent(InController, InOwner); mcServerRules = UT2K4Tab_ServerRulesPanel(c_Tabs.InsertTab(3, PanelCaption[5], PanelClass[5],, PanelHint[5])); p_Main.b_Primary = UT2K4GameFooter(t_Footer).b_Primary; p_Main.b_Secondary = UT2K4GameFooter(t_Footer).b_Secondary; } function PrepareToPlay(out string GameURL, optional string OverrideMap) { local int i; local byte Value; Super.PrepareToPlay(GameURL, OverrideMap); // Append bot options i = RuleInfo.FindIndex("BotMode"); if ( i != -1 ) { value = byte(RuleInfo.Settings[i].Value) & 28; // Bot roster if ( Value == 8 ) GameURL $= p_BotConfig.Play(); else if ( Value == 16 ) GameURL $= "?VsBots=true"; else { i = RuleInfo.FindIndex("MinPlayers"); if ( i >= 0 ) GameURL $= "?bAutoNumBots=False?NumBots="$RuleInfo.Settings[i].Value; } } } function StartGame(string GameURL, bool bAlt) { local GUIController C; C = Controller; if (bAlt) { if ( mcServerRules != None ) GameURL $= mcServerRules.Play(); // Append optional server flags PlayerOwner().ConsoleCommand("relaunch"@GameURL@"-server -log=server.log"); } else PlayerOwner().ClientTravel(GameURL $ "?Listen",TRAVEL_Absolute,False); C.CloseAll(false,True); } function SetupBotText( class<GameInfo> GameClass ) { // Set the "Min Players" text to the appropriate text for this type of game GameClass.static.AdjustBotInterface(false); } function InitRuleInfo( array<class<Info> > InfoClasses ) { Super.InitRuleInfo( InfoClasses ); if( mcServerRules != None ) mcServerRules.Refresh(); } function UpdateBotSetting( string NewValue, moNumericEdit BotControl ) { local GUITabButton BotTab; local byte Value; if ( BotControl == None || NewValue == "" ) return; BotTab = GetBotTab(); Value = byte(NewValue) & 28; if ( Value == 1 ) { DisableComponent(BotControl); DisableComponent(BotTab); } else if ( (Value == 8) || (Value == 16) ) { DisableComponent(BotControl); EnableComponent(BotTab); } else { EnableComponent(BotControl); DisableComponent(BotTab); } } defaultproperties { PageCaption="Host Game" 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" Justification=TXTA_Left TextIndent=5 FontScale=FNS_Small WinTop=0.957943 RenderWeight=0.300000 TabOrder=8 OnPreDraw=MPFooter.InternalOnPreDraw End Object t_Footer=UT2K4GameFooter'GUI2K4.UT2K4GamePageMP.MPFooter' PanelClass(0)="GUI2K4.UT2K4Tab_GameTypeMP" PanelClass(1)="GUI2K4.UT2K4Tab_MainSP" PanelClass(2)="GUI2K4.UT2K4Tab_RulesBase" PanelClass(3)="GUI2K4.UT2K4Tab_MutatorMP" PanelClass(4)="GUI2K4.UT2K4Tab_BotConfigMP" PanelClass(5)="GUI2K4.UT2K4Tab_ServerRulesPanel" PanelCaption(5)="Server Rules" PanelHint(5)="Configure the server settings..." } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |