// ==================================================================== // Modified by Marco. // ==================================================================== class MVMultiColumnListBox extends MapVoteMultiColumnListBox; function InternalOnClick(GUIContextMenu Sender, int Index) { if (Sender != None) { if ( NotifyContextSelect(Sender, Index) ) return; switch (Index) { case 0: if( MapVotingPage(MenuOwner) != none ) MapVotingPage(MenuOwner).SendVote(self); break; case 1: Controller.OpenMenu( string(Class'MVMapInfoPage'), MapVoteMultiColumnList(List).GetSelectedMapName() ); break; case 2: if( KFMapVotingPageX(MenuOwner) != none ) KFMapVotingPageX(MenuOwner).SendAdminSwitch(self); break; } } } function InitComponent(GUIController MyController, GUIComponent MyOwner) { DefaultListClass = string(Class'MVMultiColumnList'); Super.InitComponent(MyController, MyOwner); if( PlayerOwner().PlayerReplicationInfo.bAdmin ) ContextMenu.AddItem("Admin Force Map"); } function LoadList(VotingReplicationInfo LoadVRI) { local int i; ListArray.Length = LoadVRI.GameConfig.Length; for( i=0; i