1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00

Reset room name hide timer if in an unnamed room

This avoids the room name awkwardly moving back up if the cursor is at
the bottom of the screen in a room with a room name, then the user
switches to a room without a room name, then moves the cursor away from
the bottom, then switches to a named room - even though the cursor was
already away from the bottom of the screen.

Conversely, if the user moves their cursor to the bottom of the screen
in an unnamed room, then switches into a named room, the room name will
already have been hidden and they won't need to wait for it to hide.
This commit is contained in:
Misa 2021-03-09 21:05:36 -08:00 committed by Ethan Lee
parent f20a703bf3
commit d4f52fd6fe

View File

@ -3628,6 +3628,17 @@ void editorrenderfixed(void)
}
}
}
else
{
if (ed.tiley < 28)
{
ed.roomnamehide = 0;
}
else
{
ed.roomnamehide = 12;
}
}
}
void editorlogic(void)