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 };