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 = "INFO 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
- mon.setBackgroundColor(white)
- mon.setTextColor(blue)
- while true do
- shell.run("clear")
- mon.clear()
- cbut(2,2,"---->")
- cbut(2,3,"Infos")
- cbut(2,4,"<----")
- cbut(2,5,"Stadtkarte")
- cbut(2,7,"Stadtbesitzer")
- cbut(2,8,"Muzze77")
- cbut(2,10,"Assistent/en")
- cbut(2,11,"Keiner")
- evt, key = os.pullEvent("char")
- if key == "x" then
- shell.run("edit 1")
- else
- shell.run("clear")
- print("Eingabe falsch")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement