mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
devmode music: reorder volume to the top and add empty space for readability
This commit is contained in:
parent
411b960e1c
commit
b65eaf1a51
1 changed files with 13 additions and 5 deletions
|
|
@ -360,10 +360,15 @@ static INT32 SCR(INT32 r)
|
|||
|
||||
// Devmode information
|
||||
|
||||
static void ST_pushRow(INT32 *height)
|
||||
{
|
||||
*height -= 4;
|
||||
}
|
||||
|
||||
static void ST_pushDebugString(INT32 *height, const char *string)
|
||||
{
|
||||
V_DrawRightAlignedSmallString(319, *height, V_MONOSPACE, string);
|
||||
*height -= 4;
|
||||
ST_pushRow(height);
|
||||
}
|
||||
|
||||
static void ST_pushDebugTimeMS(INT32 *height, const char *label, UINT32 ms)
|
||||
|
|
@ -401,10 +406,7 @@ static void ST_drawMusicDebug(INT32 *height)
|
|||
ST_pushDebugTimeMS(height, " Loop A: ", S_GetMusicLoopPoint());
|
||||
}
|
||||
|
||||
if (def)
|
||||
{
|
||||
ST_pushDebugString(height, va(" Volume: %4d/100", def->volume));
|
||||
}
|
||||
ST_pushRow(height);
|
||||
|
||||
if (format)
|
||||
{
|
||||
|
|
@ -412,6 +414,12 @@ static void ST_drawMusicDebug(INT32 *height)
|
|||
}
|
||||
|
||||
ST_pushDebugString(height, va(" Song: %8s", mname));
|
||||
|
||||
if (def)
|
||||
{
|
||||
ST_pushRow(height);
|
||||
ST_pushDebugString(height, va(" Volume: %4d/100", def->volume));
|
||||
}
|
||||
}
|
||||
|
||||
void ST_drawDebugInfo(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue