feat: skip trader button

This commit is contained in:
GenZmeY 2020-06-26 07:52:58 +03:00
parent 4413b9aa0b
commit d5aa118c32

View File

@ -23,10 +23,11 @@ function InitMenu()
Super(KFGUI_Page).InitMenu();
AddMenuButton('Mapvote',"Map Vote","Show mapvote menu");
AddMenuButton('Settings',"Settings","Enter the game settings");
AddMenuButton('SkipTrader',"Skip Trader","start voting for skip trader");
AddMenuButton('Disconnect',"Disconnect","Disconnect from this server");
SpectateButton = AddMenuButton('Spectate',"","");
AddMenuButton('Close',"Close","Close this menu");
//AddMenuButton('Exit',"Exit","Exit this game");
AddMenuButton('Exit',"Exit","Exit this game");
for( i=0; i<Pages.Length; ++i )
{
@ -94,6 +95,9 @@ function ButtonClicked( KFGUI_Button Sender )
ExtPlayerController(GetPlayer()).ChangeSpectateMode(!bOldSpectate);
DoClose();
break;
case 'SkipTrader':
KFPlayerController(GetPlayer()).RequestSkipTrader();
break;
}
}
final function OpenUpMapvote()