- trim long deck names in deck editor/ deck selection
- fixed a bug were the background was rendered in the items loop of the deck selection screen
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-11-14 02:25:01 +00:00
parent b934f0a5ab
commit e758c7eea1
3 changed files with 22 additions and 17 deletions

View File

@@ -172,17 +172,20 @@ void DeckMenu::Render()
mFont->SetScale( menuFontScale );
currentMenuItem->RenderWithOffset(-kLineHeight*startId);
}
RenderBackground();
if (!title.empty())
{
mFont->SetScale( titleFontScale );
mFont->DrawString(title.c_str(), titleX, titleY, JGETEXT_CENTER);
}
mFont->SetScale( 1.0f );
scroller->Render();
}
RenderBackground();
if (!title.empty())
{
mFont->SetColor(ARGB(255,255,255,255));
mFont->SetScale( titleFontScale );
mFont->DrawString(title.c_str(), titleX, titleY, JGETEXT_CENTER);
}
mFont->SetScale( 1.0f );
scroller->Render();
}
void DeckMenu::Update(float dt){