temporary fix

This commit is contained in:
MihailRis 2025-12-02 18:08:29 +03:00 committed by ShiftyX1
parent d7f3bf9c7c
commit 9bd6b39952

View File

@ -1,6 +1,7 @@
local menubg
function on_menu_clear()
print("menu clear")
if menubg then
menubg:destruct()
menubg = nil
@ -8,6 +9,8 @@ function on_menu_clear()
end
function on_menu_setup()
-- //TODO:
time.post_runnable(function()
local controller = {}
function controller.resize_menu_bg()
local w, h = unpack(gui.get_viewport())
@ -22,6 +25,8 @@ function on_menu_setup()
"z-index='-1' interactive='true'/>", controller)
menubg = gui.root.menubg
controller.resize_menu_bg()
end)
menu.page = "main"
menu.visible = true
end