temporary fix
This commit is contained in:
parent
d7f3bf9c7c
commit
9bd6b39952
@ -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…
x
Reference in New Issue
Block a user