mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
temporary fix
This commit is contained in:
parent
3c69400944
commit
3202a11590
1 changed files with 16 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
local menubg
|
local menubg
|
||||||
|
|
||||||
function on_menu_clear()
|
function on_menu_clear()
|
||||||
|
print("menu clear")
|
||||||
if menubg then
|
if menubg then
|
||||||
menubg:destruct()
|
menubg:destruct()
|
||||||
menubg = nil
|
menubg = nil
|
||||||
|
|
@ -8,6 +9,8 @@ function on_menu_clear()
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_menu_setup()
|
function on_menu_setup()
|
||||||
|
-- //TODO:
|
||||||
|
time.post_runnable(function()
|
||||||
local controller = {}
|
local controller = {}
|
||||||
function controller.resize_menu_bg()
|
function controller.resize_menu_bg()
|
||||||
local w, h = unpack(gui.get_viewport())
|
local w, h = unpack(gui.get_viewport())
|
||||||
|
|
@ -22,6 +25,8 @@ function on_menu_setup()
|
||||||
"z-index='-1' interactive='true'/>", controller)
|
"z-index='-1' interactive='true'/>", controller)
|
||||||
menubg = gui.root.menubg
|
menubg = gui.root.menubg
|
||||||
controller.resize_menu_bg()
|
controller.resize_menu_bg()
|
||||||
|
end)
|
||||||
|
|
||||||
menu.page = "main"
|
menu.page = "main"
|
||||||
menu.visible = true
|
menu.visible = true
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue