updated
This commit is contained in:
23
main.lua
23
main.lua
@@ -33,25 +33,16 @@ local function runDisplay()
|
|||||||
monitor.clear()
|
monitor.clear()
|
||||||
end
|
end
|
||||||
monitor.setCursorPos(1, 1)
|
monitor.setCursorPos(1, 1)
|
||||||
local reactorDrivers = {
|
local drivers = {
|
||||||
{ Label = "Status", driver = statusDriver },
|
{ Label = "Status", driver = statusDriver, peripheral = reactor },
|
||||||
{ Label = "Temperature", driver = tempDriver },
|
{ Label = "Temperature", driver = tempDriver, peripheral = reactor },
|
||||||
{ Label = "Coolant", driver = coolantDriver },
|
{ Label = "Coolant", driver = coolantDriver, peripheral = reactor },
|
||||||
|
{ Label = "Turbine", driver = turbineDriver, peripheral = turbine }
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, item in ipairs(reactorDrivers) do
|
for i, item in ipairs(drivers) do
|
||||||
monitor.setCursorPos(1, i)
|
monitor.setCursorPos(1, i)
|
||||||
item.driver.report(reactor, monitor)
|
item.driver.report(item.peripheral, monitor)
|
||||||
monitor.setCursorPos(1, i + 1)
|
|
||||||
end
|
|
||||||
|
|
||||||
local turbineDrivers = {
|
|
||||||
{ Label = "Turbine", driver = turbineDriver }
|
|
||||||
}
|
|
||||||
|
|
||||||
for i, item in ipairs(turbineDrivers) do
|
|
||||||
monitor.setCursorPos(1, i)
|
|
||||||
item.driver.report(turbine, monitor)
|
|
||||||
monitor.setCursorPos(1, i + 1)
|
monitor.setCursorPos(1, i + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user