- [FIX] En gamestate_postfase el text no eixia del color que tocaba
This commit is contained in:
@@ -27,9 +27,6 @@ namespace gamestate
|
|||||||
{
|
{
|
||||||
sub_state = postfase::state::initial;
|
sub_state = postfase::state::initial;
|
||||||
|
|
||||||
font::selectFont(font::type::colored);
|
|
||||||
font::setColor(font::color::red);
|
|
||||||
|
|
||||||
if (game::getConfig("fase") == 30) {
|
if (game::getConfig("fase") == 30) {
|
||||||
gamestate::sequence::init();
|
gamestate::sequence::init();
|
||||||
return;
|
return;
|
||||||
@@ -48,14 +45,12 @@ namespace gamestate
|
|||||||
void initVictoria()
|
void initVictoria()
|
||||||
{
|
{
|
||||||
sub_state = postfase::state::victoria;
|
sub_state = postfase::state::victoria;
|
||||||
draw::surface *fondo = nullptr;
|
|
||||||
|
|
||||||
char filename[12] = "final00.GIF";
|
char filename[12] = "final00.GIF";
|
||||||
filename[6]= game::getConfig("fase") / 5;
|
filename[6]= game::getConfig("fase") / 5;
|
||||||
fondo = draw::loadSurface(filename, true);
|
|
||||||
|
|
||||||
draw::setSource(fondo);
|
draw::surface *fondo = draw::loadSurface(filename, true);
|
||||||
draw::draw(0,0,320,200,0,0);
|
draw::draw(fondo);
|
||||||
draw::freeSurface(fondo);
|
draw::freeSurface(fondo);
|
||||||
|
|
||||||
draw::fadein();
|
draw::fadein();
|
||||||
@@ -65,14 +60,14 @@ namespace gamestate
|
|||||||
void initPassword()
|
void initPassword()
|
||||||
{
|
{
|
||||||
sub_state = postfase::state::password;
|
sub_state = postfase::state::password;
|
||||||
draw::surface *fondo = draw::loadSurface("postfase.gif", true);
|
|
||||||
|
|
||||||
std::string password = getPassword();
|
std::string password = getPassword();
|
||||||
|
|
||||||
draw::setSource(fondo);
|
draw::surface *fondo = draw::loadSurface("postfase.gif", true);
|
||||||
draw::draw(0,0,320,200,0,0);
|
draw::draw(fondo);
|
||||||
draw::freeSurface(fondo);
|
draw::freeSurface(fondo);
|
||||||
|
|
||||||
|
font::selectFont(font::type::colored);
|
||||||
|
font::setColor(font::color::red);
|
||||||
font::print(175, 166, password);
|
font::print(175, 166, password);
|
||||||
|
|
||||||
draw::fadein();
|
draw::fadein();
|
||||||
|
|||||||
Reference in New Issue
Block a user