Add fov mode to the menu

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5413 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-02-24 08:28:39 +00:00
parent 48694bb795
commit 988b2fa80b

View file

@ -273,6 +273,24 @@ void M_Menu_Options_f (void)
};
#endif
extern cvar_t scr_fov_mode;
static const char *fovmodes[] = {
"Major-",
"Minor+",
"Horizontal",
"Vertical",
"4:3 stretched",
NULL
};
static const char *fovmodevalues[] = {
"0",
"1",
"2",
"3",
"4",
NULL
};
menubulk_t bulk[] = {
MB_CONSOLECMD("Customize controls", "menu_keys\n", "Modify keyboard and mouse inputs."),
#ifdef PACKAGEMANAGER
@ -283,6 +301,7 @@ void M_Menu_Options_f (void)
MB_CONSOLECMD("Save all settings", "cfg_save\n", "Writes changed settings out to a config file."),
MB_SPACING(4),
MB_COMBOCVAR("View Projection", r_projection, projections, projectionvalues, NULL),
MB_COMBOCVAR("FOV Mode", scr_fov_mode, fovmodes, fovmodevalues, NULL),
MB_SLIDER("Field of View", scr_fov, 70, 360, 5, NULL),
MB_SLIDER("Mouse Speed", sensitivity, 1, 10, 0.2, NULL),
MB_SLIDER("Crosshair", crosshair, 0, 22, 1, NULL), // move this to hud setup?