mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
feat: go back in menu on Escape pressed
This commit is contained in:
parent
7b45b4083b
commit
c565e9897f
3 changed files with 13 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ DocumentNode get_document_node(lua::State* L, int idx) {
|
|||
static int l_menu_back(lua::State* L) {
|
||||
auto node = get_document_node(L);
|
||||
if (auto menu = dynamic_cast<Menu*>(node.node.get())) {
|
||||
menu->back();
|
||||
return lua::pushboolean(L, menu->back());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue