Improved help menu for better readability
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4246 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ae4f36b8a6
commit
c1f2f85cc0
@ -20,7 +20,7 @@
|
||||
|
||||
<spacer height="25" width="10"/>
|
||||
|
||||
<div width="100%" proportion="1" layout="horizontal-row">
|
||||
<div width="100%" proportion="2" layout="horizontal-row">
|
||||
<icon align="center" icon="textures/bonusblock2.png"/>
|
||||
<spacer width="25" height="25"/>
|
||||
<label proportion="1" height="100%" align="left" word_wrap="true"
|
||||
@ -28,7 +28,7 @@
|
||||
text="Collect blue boxes : they will give you weapons or other powerups"/>
|
||||
</div>
|
||||
|
||||
<div width="100%" proportion="1" layout="horizontal-row">
|
||||
<div width="100%" proportion="2" layout="horizontal-row">
|
||||
<icon align="center" icon="textures/nitro-particle.png"/>
|
||||
<spacer width="25" height="25"/>
|
||||
<label proportion="1" height="100%" align="left" word_wrap="true"
|
||||
@ -36,7 +36,7 @@
|
||||
text="Collecting nitro allows you to get speed boosts whenever you wish by pressing the appropriate key. You can see your current level of nitro in the bar at the right of the game screen."/>
|
||||
</div>
|
||||
|
||||
<div width="100%" proportion="1" layout="horizontal-row">
|
||||
<div width="100%" proportion="2" layout="horizontal-row">
|
||||
<icon align="center" icon="textures/gui_lock.png"/>
|
||||
<spacer width="25" height="25"/>
|
||||
<label proportion="1" height="100%" align="left" word_wrap="true"
|
||||
@ -44,7 +44,7 @@
|
||||
text="If you see a button with a lock like this one, you need to complete a challenge to unlock it."/>
|
||||
</div>
|
||||
|
||||
<label align="left" word_wrap="true" width="100%" proportion="1"
|
||||
<label align="left" word_wrap="true" width="100%" proportion="2"
|
||||
I18N="in the help menu"
|
||||
text="The 'sharp turn' key allows you to do sharp turns and have better control in tight curves"/>
|
||||
|
||||
|
@ -333,10 +333,11 @@ void Widget::readCoords(Widget* parent)
|
||||
}
|
||||
if(this->w > (int)parent_w)
|
||||
{
|
||||
// scale down while keeping aspect ratio (don't do this for text widgets though...)
|
||||
float ratio = (float)parent_w/this->w;
|
||||
|
||||
this->w = (int)(this->w*ratio);
|
||||
this->h = (int)(this->h*ratio);
|
||||
if (m_type != WTYPE_LABEL) this->h = (int)(this->h*ratio);
|
||||
}
|
||||
|
||||
// ------ check for given max size
|
||||
|
@ -47,6 +47,8 @@ void LabelWidget::add()
|
||||
irrwidget->setOverrideColor( video::SColor(255,255,255,255) );
|
||||
irrwidget->setOverrideFont( GUIEngine::getTitleFont() );
|
||||
}
|
||||
//irrwidget->setBackgroundColor( video::SColor(255,255,0,0) );
|
||||
//irrwidget->setDrawBackground(true);
|
||||
|
||||
id = m_element->getID();
|
||||
//m_element->setTabOrder(id);
|
||||
|
Loading…
Reference in New Issue
Block a user