mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-14 08:12:36 -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()
|
script.on_nth_tick(mod_settings.manager_update_rate, function()
|
||||||
manager.tick(global)
|
manager.tick(global)
|
||||||
end)
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user