Commit graph

14 commits

Author SHA1 Message Date
Knightmare66
2629b6f39a Added percentage display boolean for slider menu controls.
Changed increment for sound and some alpha menu option sliders.
2021-03-08 00:52:46 -05:00
Knightmare66
15d8479c9b Refactored menu utility funcs for fonts, crosshairs, savegames, serverlist, start server maplist, and player models and moved them to ui_utils.c.
Renamed "cursor" cursor_t struct to "ui_menucursor".
Renamed "currentweaponmodel" char pointer to "ui_currentweaponmodel".
Added shutdown functions for console, screen, and UI.
2021-02-17 04:11:49 -05:00
Knightmare66
8aab001fb9 Fixed func_door_secret spawn function setting wrong die function if it has a health value in 3ZB2 and Awakening DLLs.
Overhauled slider menu control to show cvar value and simplify implementation.
Changed RGB color increment for railtrail in effects options menu from 16 to 4.
Changed default values for cl_railgreen and cl_railblue to be multiples of 4 to match increment of menu sliders.
Moved misc utility functions in ui_subsystem.c to ui_utils.c.
2021-02-16 13:22:45 -05:00
Knightmare66
2cac9ab01c Added HUD font option to interface options menu. 2021-01-11 02:04:12 -05:00
Knightmare66
a324593c65 Fixed not acurately setting both console and ui font options when open interface options menu. 2021-01-11 01:38:19 -05:00
Knightmare66
a07cf5c962 Added ui_font and scr_font cvars to separately change menu and HUD font.
Added R_DrawString() to allow drawing of text strings directly in the renderer.
Refactored r_speeds drawing to use new R_DrawString() function.
2021-01-11 01:17:13 -05:00
Knightmare66
7cf0c475f5 Miscellaneous 64-bit porting fixes. 2020-07-29 06:05:09 -04:00
Knightmare66
26d58b1694 Added screenshot gamma correction.
Changed stats.log to save to savegamedir instead of the Quake2 root folder.
Renamed cvars menu_sensitivity, menu_rotate, and menu_alpha to ui_sensitivity, ui_item_rotate, and ui_background_alpha.
Removed some unused cvars.
Added CVAR_SAVE_IGNORE flag to "game" and "gamedir" cvars.
Added descriptions for most cvars.
Added dumpcvars command to output a list of cvars with their descriptions to cvarlist.txt.
2020-07-04 01:31:44 -04:00
Knightmare66
e317029eac Updated GPL headers based on Q2 Tools GPL source release. 2020-06-04 17:01:28 -04:00
Knightmare66
ceb8970ecc Added font upscaling from Q2Pro.
Added dynamic updating of Anisotropic filtering.
Added Cvar_IsModified() function.
Refactored screen and HUD scaling functions.
Added text size to string drawing functions.
Added textSize field to menu items for submenu headers.
Fixed compiling on MSVC6.
2020-04-16 03:18:49 -04:00
Knightmare66
92ef67ef44 Changed SetCrosshairNames(), SetFontNames(), and S_OGG_LoadFileList() to use FS_GetFileList().
Added zeroing of ogg_filelist pointer after free.
2019-10-12 19:54:15 -04:00
Knightmare66
2959cb730a Fix possible memory leak in menu font and crosshair loading. 2019-10-11 15:30:46 -04:00
Knightmare66
e3a80955cd Replace strstr with non-ambiguous check for file extensions. 2019-08-29 16:58:21 -04:00
Knightmare66
f986267ae2 inital commit of full repository 2019-03-13 15:20:07 -04:00