mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Sound scroll menu attempt
This commit is contained in:
parent
cedf656451
commit
6afa648c40
1 changed files with 15 additions and 12 deletions
27
src/m_menu.c
27
src/m_menu.c
|
|
@ -328,6 +328,7 @@ menu_t OP_VideoOptionsDef, OP_VideoModeDef, OP_ColorOptionsDef;
|
||||||
menu_t OP_OpenGLOptionsDef, OP_OpenGLFogDef, OP_OpenGLColorDef;
|
menu_t OP_OpenGLOptionsDef, OP_OpenGLFogDef, OP_OpenGLColorDef;
|
||||||
#endif
|
#endif
|
||||||
menu_t OP_SoundOptionsDef;
|
menu_t OP_SoundOptionsDef;
|
||||||
|
|
||||||
static void M_ToggleSFX(INT32 choice);
|
static void M_ToggleSFX(INT32 choice);
|
||||||
static void M_ToggleDigital(INT32 choice);
|
static void M_ToggleDigital(INT32 choice);
|
||||||
static void M_ToggleMIDI(INT32 choice);
|
static void M_ToggleMIDI(INT32 choice);
|
||||||
|
|
@ -1308,23 +1309,25 @@ static menuitem_t OP_OpenGLColorMenu[] =
|
||||||
|
|
||||||
static menuitem_t OP_SoundOptionsMenu[] =
|
static menuitem_t OP_SoundOptionsMenu[] =
|
||||||
{
|
{
|
||||||
{IT_STRING | IT_KEYHANDLER, NULL, "Sound Effects", M_ToggleSFX, 10},
|
{IT_HEADER, NULL, "General", NULL, 0},
|
||||||
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "Sound Volume", &cv_soundvolume, 20},
|
{IT_STRING | IT_KEYHANDLER, NULL, "Sound Effects", M_ToggleSFX, 6},
|
||||||
|
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "Sound Volume", &cv_soundvolume, 11},
|
||||||
|
|
||||||
{IT_STRING | IT_KEYHANDLER, NULL, "Digital Music", M_ToggleDigital, 40},
|
{IT_STRING | IT_KEYHANDLER, NULL, "Digital Music", M_ToggleDigital, 21},
|
||||||
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "Digital Music Volume", &cv_digmusicvolume, 50},
|
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "Digital Music Volume", &cv_digmusicvolume, 26},
|
||||||
|
|
||||||
{IT_STRING | IT_KEYHANDLER, NULL, "MIDI Music", M_ToggleMIDI, 70},
|
{IT_STRING | IT_KEYHANDLER, NULL, "MIDI Music", M_ToggleMIDI, 36},
|
||||||
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "MIDI Music Volume", &cv_midimusicvolume, 80},
|
{IT_STRING | IT_CVAR | IT_CV_SLIDER, NULL, "MIDI Music Volume", &cv_midimusicvolume, 41},
|
||||||
|
|
||||||
{IT_STRING | IT_CVAR, NULL, "Closed Captioning", &cv_closedcaptioning, 100},
|
{IT_STRING | IT_CVAR, NULL, "Closed Captioning", &cv_closedcaptioning, 51},
|
||||||
|
|
||||||
#ifdef HAVE_MIXERX
|
#ifdef HAVE_MIXERX
|
||||||
{IT_HEADER, NULL, "Advanced", NULL, 118},
|
{IT_HEADER, NULL, "Advanced", NULL, 60},
|
||||||
|
|
||||||
{IT_STRING | IT_CVAR, NULL, "MIDI Player", &cv_midiplayer, 130},
|
{IT_STRING | IT_CVAR, NULL, "MIDI Player", &cv_midiplayer, 66},
|
||||||
{IT_STRING | IT_CVAR | IT_CV_STRING, NULL, "FluidSynth Sound Font File", &cv_midisoundfontpath, 140},
|
{IT_STRING | IT_CVAR | IT_CV_STRING, NULL, "FluidSynth Sound Font File", &cv_midisoundfontpath, 71},
|
||||||
{IT_STRING | IT_CVAR | IT_CV_STRING, NULL, "TiMidity++ Config Folder", &cv_miditimiditypath, 168}
|
{IT_STRING | IT_CVAR | IT_CV_STRING, NULL, "TiMidity++ Config Folder", &cv_miditimiditypath, 86},
|
||||||
|
{IT_STRING | IT_CVAR, NULL, "MIDI Player", &cv_midiplayer, 100}
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -9367,7 +9370,7 @@ void M_DrawSoundMenu(void)
|
||||||
const char* onstring = "ON";
|
const char* onstring = "ON";
|
||||||
const char* offstring = "OFF";
|
const char* offstring = "OFF";
|
||||||
INT32 lengthstring;
|
INT32 lengthstring;
|
||||||
M_DrawGenericMenu();
|
M_DrawGenericScrollMenu();
|
||||||
|
|
||||||
V_DrawRightAlignedString(BASEVIDWIDTH - currentMenu->x,
|
V_DrawRightAlignedString(BASEVIDWIDTH - currentMenu->x,
|
||||||
currentMenu->y+currentMenu->menuitems[0].alphaKey,
|
currentMenu->y+currentMenu->menuitems[0].alphaKey,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue