mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
|
@ -441,7 +441,9 @@ function __vc_on_hud_open()
|
|||
end)
|
||||
input.add_callback("key:escape", function()
|
||||
if menu.page ~= "" then
|
||||
menu:reset()
|
||||
if not menu:back() then
|
||||
menu:reset()
|
||||
end
|
||||
elseif hud.is_inventory_open() then
|
||||
hud.close_inventory()
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue