mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 06:33:14 +00:00
All backgrounds are now handled by a seperate routine.
This will allow more fine handling without a ton of special cases everywhere.
Creates an absolutely nasty diff because all menu_t have been updated in one blast 🥹
For the things that DO need to draw outside of GS_MENU (M_DrawOptionsCogs, the Wrongwarp), the behaviourflag MBF_DRAWBGWHILEPLAYING has also been added.
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/// \file menus/options-data-screenshots.c
|
|
/// \brief Screeshot Options
|
|
|
|
#include "../k_menu.h"
|
|
#include "../m_misc.h" // screenshot cvars
|
|
#ifdef SRB2_CONFIG_ENABLE_WEBM_MOVIES
|
|
#include "../m_avrecorder.h"
|
|
#endif
|
|
|
|
menuitem_t OPTIONS_DataScreenshot[] =
|
|
{
|
|
#ifdef SRB2_CONFIG_ENABLE_WEBM_MOVIES
|
|
{IT_HEADER, "MOVIE RECORDING (F9)", NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Real-Time Data", "If enabled, shows fps, duration and filesize of recording in real-time.",
|
|
NULL, {.cvar = &cv_movie_showfps}, 0, 0},
|
|
#endif
|
|
|
|
{IT_SPACE | IT_NOTHING, NULL, NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_HEADER, "LOSSLESS RECORDING (F10)", NULL,
|
|
NULL, {NULL}, 0, 0},
|
|
|
|
{IT_STRING | IT_CVAR, "Recording Format", "What file format will lossless recordings use?",
|
|
NULL, {.cvar = &cv_lossless_recorder}, 0, 0},
|
|
|
|
};
|
|
|
|
menu_t OPTIONS_DataScreenshotDef = {
|
|
sizeof (OPTIONS_DataScreenshot) / sizeof (menuitem_t),
|
|
&OPTIONS_DataDef,
|
|
0,
|
|
OPTIONS_DataScreenshot,
|
|
48, 80,
|
|
SKINCOLOR_BLUEBERRY, 0,
|
|
MBF_DRAWBGWHILEPLAYING,
|
|
NULL,
|
|
2, 5,
|
|
M_DrawGenericOptions,
|
|
M_DrawOptionsCogs,
|
|
M_OptionsTick,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
};
|