Jeck - Simple scaling of the options tabs.
This commit is contained in:
@@ -931,7 +931,7 @@ void WGuiTabMenu::Render(){
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
int offset = x;
|
int offset = x;
|
||||||
|
mFont->SetScale(0.8);
|
||||||
for(vector<WGuiBase*>::iterator it = items.begin();it!=items.end();it++){
|
for(vector<WGuiBase*>::iterator it = items.begin();it!=items.end();it++){
|
||||||
int w = mFont->GetStringWidth(_((*it)->getDisplay()).c_str());
|
int w = mFont->GetStringWidth(_((*it)->getDisplay()).c_str());
|
||||||
mFont->SetColor((*it)->getColor(WGuiColor::TEXT_TAB));
|
mFont->SetColor((*it)->getColor(WGuiColor::TEXT_TAB));
|
||||||
@@ -939,6 +939,7 @@ void WGuiTabMenu::Render(){
|
|||||||
mFont->DrawString(_((*it)->getDisplay()).c_str(),offset+10,10);
|
mFont->DrawString(_((*it)->getDisplay()).c_str(),offset+10,10);
|
||||||
offset += w + 10 + 2;
|
offset += w + 10 + 2;
|
||||||
}
|
}
|
||||||
|
mFont->SetScale(1);
|
||||||
|
|
||||||
WGuiBase * c = Current();
|
WGuiBase * c = Current();
|
||||||
if(c)
|
if(c)
|
||||||
|
|||||||
Reference in New Issue
Block a user