// ==================================================================== // Class: UT2K4UI.GUICharacterListTeam // Parent: UT2K4UI.GUICharacterList // // Specialized version of charlist that allows manual addition/ // removal of players. // author: capps 8/25/02 // ==================================================================== class GUICharacterListTeam extends GUICharacterList; function InitList() { ItemCount = 0; } /** Include only those players described with Menu=s */ function InitListInclusive(string s) { local int i,j; local array AllPlayerList; class'xUtil'.static.GetPlayerList(AllPlayerList); // Filter out to only characters with the 's' menu setting j=0; for(i=0; i menus, optional string Race) { local int i,j; local array AllPlayerList; local string menulist; menulist = ";"$JoinArray(menus, ";")$";"; class'xUtil'.static.GetPlayerList(AllPlayerList); // Filter out to only characters without the 's' menu setting j=0; for(i=0; i AllPlayerList; class'xUtil'.static.GetPlayerList(AllPlayerList); // Filter out to only characters without the 's' menu setting j=0; for(i=0; i menus, optional string Race) { local int i,j; local array AllPlayerList; local string menulist; menulist = ";"$JoinArray(menus, ";")$";"; class'xUtil'.static.GetPlayerList(AllPlayerList); // Filter out to only characters without the 's' menu setting j=0; for(i=0; i PlayerTeam, int numchars) { local int i; if ( PlayerTeam.Length < numchars ) { Log("GUICharacterListTeam::ResetList() could not reset list; invalid team."); return; } for ( i=0; i < numchars; i++ ) { PlayerList[i] = PlayerTeam[i]; } ItemCount = numchars; } /** populate the player list based on default player names */ function PopulateList(array PlayerNames) { local int i, j; local array PRlist; PlayerList.length = PlayerNames.length; class'xUtil'.static.GetPlayerList(PRlist); for (i = 0; i < PlayerNames.length; i++) { for (j = 0; j < PRlist.length; j++) { if (PlayerNames[i] ~= PRlist[j].DefaultName) { PlayerList[i] = PRlist[j]; break; } } } ItemCount = PlayerNames.length; }