Add cmd menu_quit, since that was bothering me for a while.

This commit is contained in:
Marco Cawthorne 2018-01-23 02:52:00 -08:00
parent 3d6cb51060
commit ce03562663
2 changed files with 7 additions and 3 deletions

View file

@ -179,8 +179,12 @@ float m_consolecommand( string sCMD ) {
tokenize( sCMD );
switch ( argv( 0 ) ) {
case "togglemenu":
m_display( );
return TRUE;
m_display( );
return TRUE;
break;
case "menu_quit":
iMenu = MENU_QUIT;
return TRUE;
break;
}

View file

@ -73,7 +73,7 @@ void Menu_Quit( void ) {
}
Object_Frame( '192 192', '256 96' );
Object_Label( '200 216', _("FREECS_QUITMSG"), '12 12' );
Object_Label( '212 216', _("FREECS_QUITMSG"), '12 12' );
Object_Button( '208 248', BTN_QUIT, Quit_Exit, fButtonAlpha[0] );
Object_Button( '364 248', BTN_CANCEL, Quit_Cancel, fButtonAlpha[1] );