Remove 'reverse' checkbox in track info when the track
does not support reverse driving. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d1540ae903
commit
902ff01d3c
@ -49,7 +49,7 @@
|
||||
<spacer width="40" height="2" />
|
||||
<checkbox id="reverse"/>
|
||||
<spacer width="20" height="2" />
|
||||
<label height="100%" I18N="Drive the track reverse" text="Reverse"/>
|
||||
<label id="reverse-text" height="100%" I18N="Drive the track reverse" text="Reverse"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -125,6 +125,8 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
|
||||
}
|
||||
else
|
||||
{
|
||||
getWidget<CheckBoxWidget>("reverse")->setVisible(false);
|
||||
getWidget<LabelWidget>("reverse-text")->setVisible(false);
|
||||
m_checkbox = NULL;
|
||||
race_manager->setReverseTrack(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user