From 988b2fa80ba1fc85f652aeccd9daa5b8d22003c6 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 24 Feb 2019 08:28:39 +0000 Subject: [PATCH] Add fov mode to the menu git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5413 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_options.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/engine/client/m_options.c b/engine/client/m_options.c index e278f6704..3fc07338d 100644 --- a/engine/client/m_options.c +++ b/engine/client/m_options.c @@ -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?