mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Move room name hiding update to editorrenderfixed
Now the room name hiding animation won't be based on FPS.
This commit is contained in:
@@ -3373,14 +3373,6 @@ void editorrender(void)
|
|||||||
//FillRect(graphics.backBuffer, 0,231,71,240, graphics.RGB(0,0,0));
|
//FillRect(graphics.backBuffer, 0,231,71,240, graphics.RGB(0,0,0));
|
||||||
if(ed.level[ed.levx+(ed.maxwidth*ed.levy)].roomname!="")
|
if(ed.level[ed.levx+(ed.maxwidth*ed.levy)].roomname!="")
|
||||||
{
|
{
|
||||||
if(ed.tiley<28)
|
|
||||||
{
|
|
||||||
if(ed.roomnamehide>0) ed.roomnamehide--;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(ed.roomnamehide<12) ed.roomnamehide++;
|
|
||||||
}
|
|
||||||
if (graphics.translucentroomname)
|
if (graphics.translucentroomname)
|
||||||
{
|
{
|
||||||
graphics.footerrect.y = 230+ed.roomnamehide;
|
graphics.footerrect.y = 230+ed.roomnamehide;
|
||||||
@@ -3614,6 +3606,24 @@ void editorrenderfixed(void)
|
|||||||
ed.dmtileeditor--;
|
ed.dmtileeditor--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ed.level[ed.levx + ed.maxwidth*ed.levy].roomname != "")
|
||||||
|
{
|
||||||
|
if (ed.tiley < 28)
|
||||||
|
{
|
||||||
|
if (ed.roomnamehide > 0)
|
||||||
|
{
|
||||||
|
ed.roomnamehide--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (ed.roomnamehide < 12)
|
||||||
|
{
|
||||||
|
ed.roomnamehide++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void editorlogic(void)
|
void editorlogic(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user