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
end
sleep(0.5) -- Prevents excessive CPU usage
sleep(0.2) -- Prevents excessive CPU usage
end
end
@@ -314,9 +314,17 @@ function toggleReactor()
end
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
function rebootSystem()
@@ -355,6 +363,7 @@ function changeOutputValue(num, val)
updateReactorInfo()
end
function outputMenu()
if currentMenu == "output" then return end
currentMenu = "output"