action menu update
This commit is contained in:
+11
-2
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user