Added 'back' button to user screen.

This commit is contained in:
hiker 2014-06-02 08:21:36 +10:00
parent c733378bf3
commit 0358e55e2e
3 changed files with 6 additions and 0 deletions

View File

@ -61,5 +61,6 @@
</box>
<spacer width="20" height="15"/>
</div>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
</stkgui>

View File

@ -70,5 +70,6 @@
</box>
<spacer width="20" height="15"/>
</div>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
</stkgui>

View File

@ -284,6 +284,10 @@ void BaseUserScreen::eventCallback(Widget* widget,
deletePlayer();
}
} // options
else if (name == "back")
{
StateManager::get()->escapePressed();
}
return;