Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- mon = peripheral.wrap("back")
- white = colors.white
- blue = colors.blue
- sbcol = white
- stcol = blue
- welcomeText = "Willkommen in BLUECITY"
- gx, gy = mon.getSize()
- function cbut(cx,cy,text,bcol,tcol)
- if bcol == nil then
- bcol = sbcol
- end
- if tcol == nil then
- tcol = stcol
- end
- mon.setCursorPos(cx,cy)
- mon.setBackgroundColor(bcol)
- mon.setTextColor(tcol)
- mon.write(text)
- mon.setBackgroundColor(sbcol)
- mon.setTextColor(stcol)
- end
- function cRule(rule)
- cbut(x,y,rule)
- y = y + 1
- end
- bewohner = {"Muzze77","Axeeaa","HodorxD","MG_Noah","Dromzy","Rohholz","NightBlue2g"}
- mon.setBackgroundColor(white)
- mon.setTextColor(blue)
- while true do
- x = 2
- y = 2
- shell.run("clear")
- print("X zum Ändern")
- mon.clear()
- cbut((gx/2) - (string.len(welcomeText) / 2),1,welcomeText)
- cRule("Um User dieser Stadt zu werden /mail send Muzze77 Beitritt")
- cRule("Es gibt in dieser Stadt kein Stadtstrom")
- cRule("Es gibt eine Rubberfarm sowie eine Baumfarm")
- cRule("Jedes Grundstück wird auf Fehler / Verbesserungen gepfrüft")
- y = y + 1
- cRule("Geplante Projekte:")
- y = y + 1
- cRule("Weitere Grundstücke anlegen,Rubberfarm")
- y = y + 1
- cRule("Derzeitige Bewohner:")
- y = 12
- x = 2
- for i = 1, table.maxn(bewohner) do
- if bewohner[i] == "Muzze77" then
- cbut(x,y,bewohner[i],colors.white,colors.red)
- else
- cbut(x,y,bewohner[i],colors.white,colors.brown)
- end
- if x >= 60 then
- x = 2
- y = y + 1
- else
- x = x + 12
- end
- end
- evt, key = os.pullEvent("char")
- if key == "x" then
- shell.run("edit 1")
- else
- print("Nicht Korrekt")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement