// ==================================================================== // Class: xVoting.MapVoteMultiColumnListBox // // Multi-Column list box used to display maps and game types. // // Written by Bruce Bickar // (c) 2003, Epic Games, Inc. All Rights Reserved // ==================================================================== class MapVoteMultiColumnListBox extends GUIMultiColumnListBox; var string MapInfoPage; var array ListArray; //------------------------------------------------------------------------------------------------ function InternalOnClick(GUIContextMenu Sender, int Index) { local string MapName; if (Sender != None) { if ( NotifyContextSelect(Sender, Index) ) return; switch (Index) { case 0: if( MapVotingPage(MenuOwner) != none ) MapVotingPage(MenuOwner).SendVote(self); break; case 1: MapName = MapVoteMultiColumnList(List).GetSelectedMapName(); Controller.OpenMenu( MapInfoPage, MapName ); break; } } } //------------------------------------------------------------------------------------------------ function LoadList(VotingReplicationInfo LoadVRI) { local int i,g; ListArray.Length = LoadVRI.GameConfig.Length; for( i=0; i= List.ItemCount ) NewIndex = List.ItemCount - 1; List.SetIndex(NewIndex); return true; } //------------------------------------------------------------------------------------------------ function Free() { local int i; for( i=0; i < ListArray.Length; i++ ) ListArray[i].VRI = none; super.Free(); } //------------------------------------------------------------------------------------------------ defaultproperties { Begin Object Class=GUIContextMenu Name=RCMenu ContextItems(0)="Vote for this Map" ContextItems(1)="View Screenshot and Description" OnSelect=InternalOnClick End Object ContextMenu=RCMenu OnRightClick=InternalOnRightClick MapInfoPage="xVoting.MapInfoPage" DefaultListClass="xVoting.MapVoteMultiColumnList" //DefaultListClass="XInterface.GUIMultiColumnList" }