class Browser_ServerListPageMSCustom extends Browser_ServerListPageMS; var GUISplitter GameTypeSplit; var GUIComboBox GameTypeCombo; var GUISplitter MainSplit; var bool CustomInitialized; var config string LastGameType; function ChangeGameType(GUIComponent Sender) { Log( "New Game Type:"$GameTypeCombo.GetText()$" ("$GameTypeCombo.GetExtra()$")" ); GameType = GameTypeCombo.GetExtra(); LastGameType = GameType; SaveConfig(); RefreshList(); } // Beginning to think this should be somewhere else :) function string MyParseDescStr(string DescStr, int index) { local string temp; local int p,i; i = 0; while (DescStr!="") { p = instr(DescStr,"|"); if (p<0) { Temp = DescStr; DescStr = ""; } else { Temp = Left(DescStr,p); DescStr = Right(DescStr,Len(DescStr)-p-1); } if (i==Index) return Temp; i++; } } static function bool IsStandardGameType(string Desc) { if( InStr(Desc, "xDeathMatch") >= 0 ) return true; if( InStr(Desc, "xTeamGame") >= 0 ) return true; if( InStr(Desc, "xCTFGame") >= 0 ) return true; if( InStr(Desc, "xBombingRun") >= 0 ) return true; if( InStr(Desc, "xDoubleDom") >= 0 ) return true; // Bonus pack game types.. 'forward compatibility' if( InStr(Desc, "xMutantGame") >= 0 ) return true; if( InStr(Desc, "xLastManStanding") >= 0 ) return true; if( InStr(Desc, "Invasion") >= 0 ) return true; return false; } // Find the friendly name for this game type class, by searching the dialog box function string FindGameTypeName(string GameType) { local int i; for(i=0; i