updated
This commit is contained in:
2
main.lua
2
main.lua
@@ -25,7 +25,7 @@ end
|
|||||||
|
|
||||||
local function runDisplay()
|
local function runDisplay()
|
||||||
monitor.clear()
|
monitor.clear()
|
||||||
monitor.setTextScale(0.75)
|
monitor.setTextScale(0.90)
|
||||||
while true do
|
while true do
|
||||||
if(isWarningState or isCriticalState or isShutdownState) then
|
if(isWarningState or isCriticalState or isShutdownState) then
|
||||||
monitor.setBackgroundColor(colors.red)
|
monitor.setBackgroundColor(colors.red)
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ end
|
|||||||
local function report()
|
local function report()
|
||||||
local color = color()
|
local color = color()
|
||||||
monitor.setBackgroundColor(color)
|
monitor.setBackgroundColor(color)
|
||||||
|
value = getValue()
|
||||||
monitor.clearLine()
|
monitor.clearLine()
|
||||||
monitor.write("Turbine Steam Filled: " .. getValue() .. "%")
|
monitor.write("Turbine Steam Filled: " .. value .. "%")
|
||||||
end
|
end
|
||||||
return { report = report, watch = watch }
|
return { report = report, watch = watch }
|
||||||
Reference in New Issue
Block a user