- scriptified the video mode menu (only the part that extends the actual menu class, the entire thing is basically non-modifiable but this code would otherwise stand in the way of properly handling the rest of the menus.)

This commit is contained in:
Christoph Oelckers 2017-02-12 23:05:39 +01:00
commit 2b977f70e6
5 changed files with 137 additions and 55 deletions

View file

@ -93,6 +93,8 @@ int BackbuttonTime;
float BackbuttonAlpha;
static bool MenuEnabled = true;
void M_InitVideoModes();
#define KEY_REPEAT_DELAY (TICRATE*5/12)
#define KEY_REPEAT_RATE (3)
@ -568,6 +570,11 @@ void M_SetMenu(FName menu, int param)
M_StartMessage (GStrings("SAVEDEAD"), 1);
return;
}
case NAME_VideoModeMenu:
M_InitVideoModes();
break;
}
// End of special checks