mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
Add textimage for levelcomplete and gamecomplete
`levelcomplete` and `gamecomplete` were hardcoded using textbox colors which were offset by 1. This PR fixes that, no longer requiring slightly-off colors, and instead adding a new property to textboxes which tell the game to display either level complete or game complete.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
b5c9508dd4
commit
103b4d36a1
@@ -663,12 +663,13 @@ void Game::savecustomlevelstats(void)
|
||||
|
||||
void Game::levelcomplete_textbox(void)
|
||||
{
|
||||
graphics.createtextboxflipme("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextboxflipme("", -1, 12, TEXT_COLOUR("cyan"));
|
||||
graphics.addline(" ");
|
||||
graphics.addline("");
|
||||
graphics.addline("");
|
||||
graphics.textboxprintflags(PR_FONT_8X8);
|
||||
graphics.textboxcenterx();
|
||||
graphics.setimage(TEXTIMAGE_LEVELCOMPLETE);
|
||||
}
|
||||
|
||||
void Game::crewmate_textbox(const int color)
|
||||
@@ -2861,12 +2862,13 @@ void Game::updatestate(void)
|
||||
setstatedelay(75);
|
||||
music.play(Music_PLENARY);
|
||||
|
||||
graphics.createtextboxflipme("", -1, 12, 164, 165, 255);
|
||||
graphics.createtextboxflipme("", -1, 12, TEXT_COLOUR("cyan"));
|
||||
graphics.addline(" ");
|
||||
graphics.addline("");
|
||||
graphics.addline("");
|
||||
graphics.textboxprintflags(PR_FONT_8X8);
|
||||
graphics.textboxcenterx();
|
||||
graphics.setimage(TEXTIMAGE_GAMECOMPLETE);
|
||||
break;
|
||||
case 3502:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user