Erwan
- splash screen issue fix
This commit is contained in:
@@ -112,6 +112,9 @@ void GameStateMenu::Create()
|
|||||||
scroller = NEW TextScroller(Constants::MAIN_FONT, SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
|
scroller = NEW TextScroller(Constants::MAIN_FONT, SCREEN_WIDTH/2 - 90 , SCREEN_HEIGHT-17,180);
|
||||||
scrollerSet = 0;
|
scrollerSet = 0;
|
||||||
|
|
||||||
|
splashTex = NULL;
|
||||||
|
mSplash = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -478,18 +481,16 @@ void GameStateMenu::Render()
|
|||||||
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
|
splashTex = resources.RetrieveTexture("splash.jpg",RETRIEVE_LOCK);
|
||||||
mSplash = resources.RetrieveTempQuad("splash.jpg");
|
mSplash = resources.RetrieveTempQuad("splash.jpg");
|
||||||
}
|
}
|
||||||
if (mSplash){
|
if (mSplash)
|
||||||
renderer->RenderQuad(mSplash,0,0);
|
renderer->RenderQuad(mSplash,0,0);
|
||||||
|
char text[512];
|
||||||
|
mFont->SetColor(ARGB(255,255,255,255));
|
||||||
|
if (mCurrentSetName[0]) {
|
||||||
|
sprintf(text, _("LOADING SET: %s").c_str(), mCurrentSetName);
|
||||||
}else{
|
}else{
|
||||||
char text[512];
|
sprintf(text,"LOADING...");
|
||||||
mFont->SetColor(ARGB(255,255,255,255));
|
|
||||||
if (mCurrentSetName[0]) {
|
|
||||||
sprintf(text, _("LOADING SET: %s").c_str(), mCurrentSetName);
|
|
||||||
}else{
|
|
||||||
sprintf(text,"LOADING...");
|
|
||||||
}
|
|
||||||
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
|
|
||||||
}
|
}
|
||||||
|
mFont->DrawString(text,SCREEN_WIDTH/2,SCREEN_HEIGHT/2,JGETEXT_CENTER);
|
||||||
}else{
|
}else{
|
||||||
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
|
mFont = resources.GetJLBFont(Constants::MAIN_FONT);
|
||||||
PIXEL_TYPE colors[] =
|
PIXEL_TYPE colors[] =
|
||||||
|
|||||||
@@ -150,11 +150,11 @@ void GameStateOptions::Render()
|
|||||||
"",
|
"",
|
||||||
"Music by Celestial Aeon Project, http://www.jamendo.com",
|
"Music by Celestial Aeon Project, http://www.jamendo.com",
|
||||||
"",
|
"",
|
||||||
"Deck Builders: Abrasax, AzureKnight, colarchon",
|
"Deck Builders: Abrasax, AzureKnight, colarchon",
|
||||||
"Hehotfarv, Jeremy, Jog1118, JonyAS, Kaioshin",
|
"Hehotfarv, Jeremy, Jog1118, JonyAS, Kaioshin",
|
||||||
"Lachaux, Link17, Muddobbers, Nakano, Niegen",
|
"Lachaux, Link17, Muddobbers, Nakano, Niegen",
|
||||||
"Psyringe, r1c47, Superhiro, Szei, Thanatos02",
|
"Psyringe, r1c47, Superhiro, Szei, Thanatos02",
|
||||||
"Whismer, Wololo",
|
"Whismer, Wololo",
|
||||||
"",
|
"",
|
||||||
"Thanks also go to Dr.Watson, Orine, Raphael, Sakya, Tyranid",
|
"Thanks also go to Dr.Watson, Orine, Raphael, Sakya, Tyranid",
|
||||||
"for their (sometimes indirect) help.",
|
"for their (sometimes indirect) help.",
|
||||||
|
|||||||
Reference in New Issue
Block a user