readjusted some of the values for simplemenu, deckmenu still requires "princess fingertips", but the others have their spacing back and font size back.

This commit is contained in:
omegablast2002@yahoo.com
2012-03-20 16:27:14 +00:00
parent 3c0620422e
commit 18c0868d88
7 changed files with 27 additions and 12 deletions

View File

@@ -50,10 +50,20 @@ void SimpleButton::RenderWithOffset(float yOffset)
{
mYOffset = yOffset;
WFont * mFont = WResourceManager::Instance()->GetWFont(mFontId);
if (mHasFocus)
mFont->SetScale(SCALE_SELECTED);
if(mText.size() < 20)
{
if (mHasFocus)
mFont->SetScale(SCALE_SELECTED_LARGE);
else
mFont->SetScale(SCALE_LARGE_NORMAL);
}
else
mFont->SetScale(SCALE_NORMAL);
{
if (mHasFocus)
mFont->SetScale(SCALE_SELECTED);
else
mFont->SetScale(SCALE_NORMAL);
}
mFont->DrawString(mText.c_str(), mX, mY + yOffset, JGETEXT_CENTER);
}