From 176f32d4eb8759ce730da9707bbeae74ea348bd1 Mon Sep 17 00:00:00 2001 From: StormFusions <62036454+StormFusions@users.noreply.github.com> Date: Fri, 28 Feb 2025 03:48:45 +0000 Subject: [PATCH] action menu update --- reactor.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/reactor.lua b/reactor.lua index b2739d5..b026d74 100644 --- a/reactor.lua +++ b/reactor.lua @@ -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"