Erwan
- 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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user