Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitors = {peripheral.find("monitor")}
- local mon = monitors[1]
- mon.setBackgroundColor(colors.black)
- mon.clear()
- mon.setTextColor(colors.white)
- mon.setTextScale(1)
- term.redirect(mon)
- mon.setBackgroundColor(colors.black)
- mon.clear()
- local w, h = mon.getSize()
- local chests = {}
- function addChests(color1, color2, color3, name, priority)
- chests[priority] = {}
- chests[priority]["color1"] = color1
- chests[priority]["color2"] = color2
- chests[priority]["color3"] = color3
- chests[priority]["name"] = name
- chests[priority]["priority"] = priority
- end
- function draw()
- local curPosX, curPosY = 3,2
- for key,value in pairs(chests) do
- if value["priority"] == 10 then
- curPosX = 28
- curPosY = 2
- end
- mon.setTextColor(colors.white)
- mon.setTextScale(1)
- paintutils.drawFilledBox(curPosX , curPosY, curPosX+1, curPosY, value["color1"])
- curPosX = curPosX+3
- paintutils.drawFilledBox(curPosX , curPosY, curPosX+1, curPosY, value["color2"])
- curPosX = curPosX+3
- paintutils.drawFilledBox(curPosX , curPosY, curPosX+1, curPosY, value["color3"])
- mon.setTextScale(1)
- mon.setBackgroundColor(colors.black)
- mon.setCursorPos(curPosX+4, curPosY)
- mon.write(value["name"])
- curPosX = curPosX-6
- curPosY = curPosY+2
- end
- end
- function starting()
- mon.setTextScale(1)
- addChests(colors.white, colors.white, colors.white, "STORAGE", 1)
- addChests(colors.white, colors.white, colors.blue, "INSCRIBERS", 2)
- addChests(colors.white, colors.white, colors.red, "CHAMBER", 3)
- addChests(colors.white, colors.white, colors.green, "CHARGERS", 4)
- addChests(colors.black, colors.black, colors.black, " ", 5)
- addChests(colors.lightGray, colors.lightGray, colors.red, "SMELTER", 6)
- addChests(colors.lightGray, colors.lightGray, colors.white, "PULVERIZER", 7)
- addChests(colors.lightGray, colors.lightGray, colors.orange, "INDUCTIONS", 8)
- addChests(colors.lightGray, colors.lightGray, colors.lightBlue, "FLUIDS", 9)
- addChests(colors.cyan, colors.cyan, colors.brown, "SAG MILL", 10)
- addChests(colors.cyan, colors.cyan, colors.red, "ALLOY SMELTR", 11)
- addChests(colors.cyan, colors.cyan, colors.green, "THE VAT", 12)
- addChests(colors.cyan, colors.cyan, colors.gray, "SLICE/SPLICE", 13)
- addChests(colors.black, colors.black, colors.black, " ", 14)
- addChests(colors.purple, colors.purple, colors.blue, "QUARRYNESS", 15)
- addChests(colors.purple, colors.pink, colors.purple, "TO COME", 16)
- addChests(colors.purple, colors.pink, colors.purple, "TO COME", 17)
- addChests(colors.purple, colors.pink, colors.purple, "TO COME", 18)
- draw()
- end
- starting()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement