mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
More intuitive menu for music resync option
This commit is contained in:
parent
04d7112538
commit
7d1012e85e
1 changed files with 12 additions and 1 deletions
13
src/m_menu.c
13
src/m_menu.c
|
|
@ -1378,7 +1378,7 @@ static menuitem_t OP_SoundOptionsMenu[] =
|
||||||
{IT_STRING|IT_CVAR, NULL, "Play Music While Unfocused", &cv_playmusicifunfocused, 125},
|
{IT_STRING|IT_CVAR, NULL, "Play Music While Unfocused", &cv_playmusicifunfocused, 125},
|
||||||
{IT_STRING|IT_CVAR, NULL, "Play SFX While Unfocused", &cv_playsoundifunfocused, 135},
|
{IT_STRING|IT_CVAR, NULL, "Play SFX While Unfocused", &cv_playsoundifunfocused, 135},
|
||||||
|
|
||||||
{IT_STRING|IT_CVAR, NULL, "Music Resynch Threshold (MS)", &cv_music_resync_threshold, 150},
|
{IT_STRING|IT_CVAR|IT_CV_NOPRINT, NULL, "Music Resynch Threshold", &cv_music_resync_threshold, 150},
|
||||||
};
|
};
|
||||||
|
|
||||||
static menuitem_t OP_DataOptionsMenu[] =
|
static menuitem_t OP_DataOptionsMenu[] =
|
||||||
|
|
@ -6417,12 +6417,23 @@ static void M_DrawSkyRoom(void)
|
||||||
(midi_disabled ? warningflags : highlightflags),
|
(midi_disabled ? warningflags : highlightflags),
|
||||||
(midi_disabled ? "OFF" : "ON"));*/
|
(midi_disabled ? "OFF" : "ON"));*/
|
||||||
|
|
||||||
|
V_DrawRightAlignedString(BASEVIDWIDTH - currentMenu->x,
|
||||||
|
currentMenu->y+currentMenu->menuitems[12].alphaKey,
|
||||||
|
highlightflags,
|
||||||
|
( (cv_music_resync_threshold.value) ?
|
||||||
|
va("%s MS", cv_music_resync_threshold.string) : "OFF" ));
|
||||||
|
|
||||||
if (itemOn == 0)
|
if (itemOn == 0)
|
||||||
lengthstring = 8*(sound_disabled ? 3 : 2);
|
lengthstring = 8*(sound_disabled ? 3 : 2);
|
||||||
else if (itemOn == 2)
|
else if (itemOn == 2)
|
||||||
lengthstring = 8*(digital_disabled ? 3 : 2);
|
lengthstring = 8*(digital_disabled ? 3 : 2);
|
||||||
/*else if (itemOn == 5)
|
/*else if (itemOn == 5)
|
||||||
lengthstring = 8*(midi_disabled ? 3 : 2);*/
|
lengthstring = 8*(midi_disabled ? 3 : 2);*/
|
||||||
|
else if (itemOn == 12)
|
||||||
|
{
|
||||||
|
lengthstring = 8*( (cv_music_resync_threshold.value) ?
|
||||||
|
strlen(cv_music_resync_threshold.string) + 3 : 3 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < currentMenu->numitems; ++i)
|
for (i = 0; i < currentMenu->numitems; ++i)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue