mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-10 16:08:13 -06:00
Remove GUI button if exists and GUI disabled
This commit is contained in:
@@ -949,6 +949,12 @@ local function main()
|
||||
script.on_nth_tick(mod_settings.manager_update_rate, function()
|
||||
manager.tick(global)
|
||||
end)
|
||||
else
|
||||
local button_flow = mod_gui.get_button_flow(player)
|
||||
local button = button_flow["top_left_button"]
|
||||
if button then
|
||||
button.destroy()
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user