Jeck - Simple scaling of the options tabs.

This commit is contained in:
wagic.jeck
2010-02-16 17:48:31 +00:00
parent d6fd768248
commit 92b0c80563

View File

@@ -931,7 +931,7 @@ void WGuiTabMenu::Render(){
return;
int offset = x;
mFont->SetScale(0.8);
for(vector<WGuiBase*>::iterator it = items.begin();it!=items.end();it++){
int w = mFont->GetStringWidth(_((*it)->getDisplay()).c_str());
mFont->SetColor((*it)->getColor(WGuiColor::TEXT_TAB));
@@ -939,6 +939,7 @@ void WGuiTabMenu::Render(){
mFont->DrawString(_((*it)->getDisplay()).c_str(),offset+10,10);
offset += w + 10 + 2;
}
mFont->SetScale(1);
WGuiBase * c = Current();
if(c)