Added 'back' buttons to option screens

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3531 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-05-23 01:28:14 +00:00
parent e7fcea9c09
commit a08a59cc17
4 changed files with 18 additions and 7 deletions

@ -55,6 +55,8 @@
</box>
<spacer height="15" width="10"/>
<spacer width="50" height="40" />
</div>
</div>
<button id="back" x="20" y="-40" width="250" height="35" align="left" text="Back to main menu"/>

@ -77,8 +77,11 @@
<button id="binding_look_back" proportion="1" height="100%" text="[none]"/>
</div>
<spacer width="50" height="10" />
</box>
<spacer height="15" width="10"/>
<spacer width="50" height="40" />
</div>
</div>
<button id="back" x="20" y="-40" width="250" height="35" align="left" text="Back to main menu"/>

@ -15,6 +15,8 @@
<spacer width="20" height="20"/>
</box>
<spacer height="15" width="10"/>
<spacer width="50" height="40" />
</div>
</div>
<button id="back" x="20" y="-40" width="250" height="35" align="left" text="Back to main menu"/>

@ -374,7 +374,7 @@ namespace StateManager
if(w == user_config->m_width && h == user_config->m_height)
{
std::cout << "************* Detected right resolution!!! " << n << "\n";
//std::cout << "************* Detected right resolution!!! " << n << "\n";
// that's the current one
res->setSelection(n);
break;
@ -493,6 +493,10 @@ namespace StateManager
user_config->m_fullscreen = w2->getState();
irr_driver->changeResolution();
}
else if(name == "back")
{
StateManager::escapePressed();
}
}
// -----------------------------------------------------------------------------