#include "audio.h"
#include "input.h"
#include "workshop.h"
-#include "respawn.h"
+#include "world_map.h"
#include "gui.h"
#include "ent_miniworld.h"
if( MDL_CONST_PSTREQ( &menu.model, q, "quit" ) ){
vg.window_should_close = 1;
}
-
else if( MDL_CONST_PSTREQ( &menu.model, q, "map" ) ){
-
menu_close();
- respawn_begin_chooser();
+ world_map_enter();
}
else if( MDL_CONST_PSTREQ( &menu.model, q, "hub" ) ){
if( world_static.active_instance == k_world_purpose_client ){
else if( MDL_CONST_PSTREQ( &menu.model, q, "workshop" ) ){
workshop_submit_command(0,NULL);
}
+ else if( MDL_CONST_PSTREQ( &menu.model, q, "engine" ) ){
+ vg_settings_open();
+ }
else if( MDL_CONST_PSTREQ( &menu.model, q, "prem_store" ) ){
if( steam_ready )
SteamAPI_ISteamFriends_ActivateGameOverlayToStore(
}
int escape = button_down( k_srbind_mback );
- if( menu.credits_open ){
+ if( menu.credits_open || vg.settings_open ){
if( escape ){
menu.credits_open = 0;
+
+ if( vg.settings_open )
+ vg_settings_close();
}
return;
}
return;
}
+ if( vg.settings_open )
+ return;
+
if( menu.credits_open ){
ui_rect panel = { 0,0, 460, 400 },
screen = { 0,0, vg.window_x,vg.window_y };