action menu update

This commit is contained in:
StormFusions
2025-02-28 03:48:45 +00:00
parent 8bddf94cc0
commit 176f32d4eb
+11 -2
View File
@@ -280,7 +280,7 @@ function reactorControl()
emergencyTemp = true emergencyTemp = true
end end
sleep(0.5) -- Prevents excessive CPU usage sleep(0.2) -- Prevents excessive CPU usage
end end
end end
@@ -314,9 +314,17 @@ function toggleReactor()
end end
function ActionMenu() function ActionMenu()
if currentMenu == "action" then return end
button.setButton("action", action, buttonMain, 2, 23, monX-1, 25, 0, 0, colors.red) currentMenu = "action"
MenuText = "ATTENTION"
clearMenuArea()
button.setButton("action", action, buttonMain, 5, 28, monX-4, 30, 0, 0, colors.red)
button.screen()
end end
function rebootSystem() function rebootSystem()
@@ -355,6 +363,7 @@ function changeOutputValue(num, val)
updateReactorInfo() updateReactorInfo()
end end
function outputMenu() function outputMenu()
if currentMenu == "output" then return end if currentMenu == "output" then return end
currentMenu = "output" currentMenu = "output"