Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- sides = {"back","top","bottom","front","left","right"}
- CEO = {"Hundskrippl"} -- Mayor
- CO = {"RaiiNzzzYT","Nicht_Merken"} -- Co-Mayor
- AS = {"Thamix"} -- Assistent
- mon.setTextScale(2) -- Größe der Anzeige (0.5 - 5 in 0.5er Schritten (Normal = 1))
- for i = 1, #sides,1 do
- if peripheral.getType(sides[i]) == "monitor" then
- mon = peripheral.wrap(sides[i])
- end
- end
- function cbut(cx,cy,text,bcol,tcol)
- if bcol == nil then
- bcol = colors.black
- end
- if tcol == nil then
- tcol = colors.white
- end
- mon.setCursorPos(cx,cy)
- mon.setBackgroundColor(bcol)
- mon.setTextColor(tcol)
- mon.write(text)
- mon.setBackgroundColor(colors.black)
- mon.setTextColor(colors.white)
- end
- gx, gy = mon.getSize()
- while true do
- mon.setBackgroundColor(colors.black)
- mon.clear()
- y = 2
- for i = 1, gx,1 do
- cbut(i,1,"+")
- end
- for i = 1, gy ,1 do
- cbut(1,i,"+")
- cbut(gx,i,"+")
- end
- for n = 1, #CEO, 1 do
- cbut(3,n+y,"Mayor:" .. CEO[n],colors.black,colors.red)
- end
- y = y + #CEO + 1
- for n = 1, #CO, 1 do
- cbut(3,n+y,"Co-Mayor:" .. CO[n],colors.black,colors.blue)
- end
- y = y + #CO + 1
- for n = 1, #AS, 1 do
- cbut(3,n+y,"Assistant:" .. AS[n],colors.black,colors.green)
- y = y + 1
- end
- for i = 1, gx,1 do
- cbut(i,gy,"+")
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement