bures-monitor v2

This commit is contained in:
Buduf 2022-07-03 16:13:38 +02:00
parent e327e902c2
commit 4159609330

View File

@ -30,14 +30,17 @@ local function printBuRes()
for name, list in pairs(buRes) do for name, list in pairs(buRes) do
term.setTextColor(colors.black) term.setTextColor(colors.black)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
term.clearLine()
print(name) print(name)
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)
for key, value in pairs(list) do for key, value in pairs(list) do
if value.status == "NEED_MORE" then
print(value.item.displayName, value.available .. "+" .. value.delivering .. "/" .. value.item.count) print(value.item.displayName, value.available .. "+" .. value.delivering .. "/" .. value.item.count)
end end
end end
end end
end
local function bures() local function bures()
local count = 0 local count = 0