mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
don't apply linegap to certain special textboxes
level complete, game complete and "You have rescued a crew member!"
This commit is contained in:
parent
cc1528aacc
commit
8b73a38ed2
3 changed files with 10 additions and 0 deletions
|
@ -698,6 +698,7 @@ void Game::levelcomplete_textbox(void)
|
|||
graphics.textboxprintflags(PR_FONT_8X8);
|
||||
graphics.textboxcenterx();
|
||||
graphics.setimage(TEXTIMAGE_LEVELCOMPLETE);
|
||||
graphics.setlinegap(0);
|
||||
}
|
||||
|
||||
void Game::crewmate_textbox(const int color)
|
||||
|
@ -727,6 +728,7 @@ void Game::crewmate_textbox(const int color)
|
|||
graphics.textboxpad(SDL_ceilf(5/spaces_per_8), SDL_ceilf(2/spaces_per_8));
|
||||
graphics.textboxcenterx();
|
||||
graphics.addsprite(14, 12 + extra_cjk_height/2, 0, color);
|
||||
graphics.setlinegap(0);
|
||||
}
|
||||
|
||||
void Game::remaining_textbox(void)
|
||||
|
@ -2897,6 +2899,7 @@ void Game::updatestate(void)
|
|||
graphics.textboxprintflags(PR_FONT_8X8);
|
||||
graphics.textboxcenterx();
|
||||
graphics.setimage(TEXTIMAGE_GAMECOMPLETE);
|
||||
graphics.setlinegap(0);
|
||||
break;
|
||||
case 3502:
|
||||
{
|
||||
|
|
|
@ -1506,6 +1506,12 @@ void Graphics::textboxadjust(void)
|
|||
textboxes[m].adjust();
|
||||
}
|
||||
|
||||
void Graphics::setlinegap(int customvalue)
|
||||
{
|
||||
textboxes[m].linegap = customvalue;
|
||||
textboxes[m].resize();
|
||||
}
|
||||
|
||||
int Graphics::getlinegap(void)
|
||||
{
|
||||
// Don't use linegaps in custom levels, for now anyway
|
||||
|
|
|
@ -65,6 +65,7 @@ public:
|
|||
|
||||
void drawfade(void);
|
||||
|
||||
void setlinegap(int);
|
||||
int getlinegap(void);
|
||||
void createtextboxreal(
|
||||
const std::string& t,
|
||||
|
|
Loading…
Reference in a new issue