mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add gui.close_menu
This commit is contained in:
parent
239ada8e3d
commit
965faebc7b
2 changed files with 8 additions and 1 deletions
|
|
@ -234,6 +234,13 @@ menu = _MENU
|
|||
gui.root = _GUI_ROOT
|
||||
gui.main_frame_id = "core:main"
|
||||
|
||||
function gui.close_menu()
|
||||
if menu then
|
||||
menu:reset()
|
||||
end
|
||||
gui.set_active_frame("")
|
||||
end
|
||||
|
||||
local __gui_create_frame = gui.create_frame
|
||||
function gui.create_frame(id, output, size)
|
||||
__gui_create_frame(id, output, size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue