Added 'back' button to user screen.
This commit is contained in:
parent
c733378bf3
commit
0358e55e2e
@ -61,5 +61,6 @@
|
|||||||
</box>
|
</box>
|
||||||
<spacer width="20" height="15"/>
|
<spacer width="20" height="15"/>
|
||||||
</div>
|
</div>
|
||||||
|
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
|
||||||
|
|
||||||
</stkgui>
|
</stkgui>
|
||||||
|
@ -70,5 +70,6 @@
|
|||||||
</box>
|
</box>
|
||||||
<spacer width="20" height="15"/>
|
<spacer width="20" height="15"/>
|
||||||
</div>
|
</div>
|
||||||
|
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
|
||||||
|
|
||||||
</stkgui>
|
</stkgui>
|
||||||
|
@ -284,6 +284,10 @@ void BaseUserScreen::eventCallback(Widget* widget,
|
|||||||
deletePlayer();
|
deletePlayer();
|
||||||
}
|
}
|
||||||
} // options
|
} // options
|
||||||
|
else if (name == "back")
|
||||||
|
{
|
||||||
|
StateManager::get()->escapePressed();
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user