mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Fix special text box images sometimes flashing
These special images are the crewmates, Level Complete, and Game Complete images. They flashed depending on if you were lucky and happened to got your delta-timesteps just right when text boxes were fading in and out. Honestly, I'm surprised text box fading in/out hasn't ran into this issue before. It's insane luck that this issue hasn't occurred before or anything. Well, anyways, to fix this, there's now an attribute `allowspecial` on text boxes, and an optional parameter of the same name for Graphics::createtextbox(). This attribute is the only thing that will let these special text box images render. And any createtextbox()es that utilize these special images have been updated accordingly.
This commit is contained in:
@@ -2398,11 +2398,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255, true);
|
||||
}
|
||||
//graphics.addline(" Level Complete! ");
|
||||
graphics.addline(" ");
|
||||
@@ -2422,11 +2422,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 104, 175,174,174);
|
||||
graphics.createtextbox("", -1, 104, 175,174,174, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,174,174);
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,174,174, true);
|
||||
}
|
||||
graphics.addline(" You have rescued ");
|
||||
graphics.addline(" a crew member! ");
|
||||
@@ -2515,11 +2515,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255, true);
|
||||
}
|
||||
//graphics.addline(" Level Complete! ");
|
||||
graphics.addline(" ");
|
||||
@@ -2539,11 +2539,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 104, 174,175,174);
|
||||
graphics.createtextbox("", -1, 104, 174,175,174, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 64+8+16, 174,175,174);
|
||||
graphics.createtextbox("", -1, 64+8+16, 174,175,174, true);
|
||||
}
|
||||
graphics.addline(" You have rescued ");
|
||||
graphics.addline(" a crew member! ");
|
||||
@@ -2631,11 +2631,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255, true);
|
||||
}
|
||||
//graphics.addline(" Level Complete! ");
|
||||
graphics.addline(" ");
|
||||
@@ -2655,11 +2655,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 104, 174,174,175);
|
||||
graphics.createtextbox("", -1, 104, 174,174,175, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 64+8+16, 174,174,175);
|
||||
graphics.createtextbox("", -1, 64+8+16, 174,174,175, true);
|
||||
}
|
||||
graphics.addline(" You have rescued ");
|
||||
graphics.addline(" a crew member! ");
|
||||
@@ -2748,11 +2748,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255, true);
|
||||
}
|
||||
//graphics.addline(" Level Complete! ");
|
||||
graphics.addline(" ");
|
||||
@@ -2772,11 +2772,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 104, 175,175,174);
|
||||
graphics.createtextbox("", -1, 104, 175,175,174, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,175,174);
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,175,174, true);
|
||||
}
|
||||
graphics.addline(" You have rescued ");
|
||||
graphics.addline(" a crew member! ");
|
||||
@@ -2883,11 +2883,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 165, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 165, 165, 255, true);
|
||||
}
|
||||
//graphics.addline(" Level Complete! ");
|
||||
graphics.addline(" ");
|
||||
@@ -2907,11 +2907,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 104, 175,174,175);
|
||||
graphics.createtextbox("", -1, 104, 175,174,175, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,174,175);
|
||||
graphics.createtextbox("", -1, 64+8+16, 175,174,175, true);
|
||||
}
|
||||
graphics.addline(" You have rescued ");
|
||||
graphics.addline(" a crew member! ");
|
||||
@@ -3179,11 +3179,11 @@ void Game::updatestate()
|
||||
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
graphics.createtextbox("", -1, 180, 164, 165, 255);
|
||||
graphics.createtextbox("", -1, 180, 164, 165, 255, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.createtextbox("", -1, 12, 164, 165, 255);
|
||||
graphics.createtextbox("", -1, 12, 164, 165, 255, true);
|
||||
}
|
||||
graphics.addline(" ");
|
||||
graphics.addline("");
|
||||
|
||||
Reference in New Issue
Block a user