Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xmax, ymax = term.getSize()
- term.clear()
- args = {...}
- anders = false
- if args[1] == "anders" then
- anders = true
- end
- for x = 1, xmax do
- for y = 1, ymax do
- term.setCursorPos(x,y)
- if (x == 1 or x == xmax) and ( y == 1 or y == 9) then
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.green)
- if anders then
- term.write("+")
- else
- term.write(" ")
- end
- elseif (y == 1 or y == 9) then
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.lime)
- if anders then
- term.write("-")
- else
- term.write(" ")
- end
- elseif (x == 1 or x == xmax) and (y > 1 and y < 9) then
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.lime)
- if anders then
- term.write("|")
- else
- term.write(" ")
- end
- elseif (x == 1 or x == xmax) then
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.black)
- if anders then
- term.write("#")
- else
- term.write(" ")
- end
- elseif (y == 10 or y == ymax) then
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.black)
- if anders then
- term.write("=")
- else
- term.write(" ")
- end
- else
- if y < 10 then
- term.setBackgroundColor(colors.cyan)
- else
- term.setBackgroundColor(colors.black)
- end
- term.write(" ")
- end
- end
- end
- term.setBackgroundColor(colors.lightBlue)
- term.setTextColor(colors.green)
- term.setCursorPos(6,3)
- term.write(" Random button1 ")
- term.setCursorPos(6,5)
- term.write(" Random button2 ")
- term.setCursorPos(6,7)
- term.write(" Random button3 ")
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.setCursorPos(3,12)
- term.write("Once upon a time I ate")
- term.setCursorPos(3,13)
- term.write("your cavia this mornin")
- term.setCursorPos(3,14)
- term.write("Once upon a time I ate")
- term.setCursorPos(3,15)
- term.write("your cavia this mornin")
- term.setCursorPos(3,16)
- term.write("Once upon a time I ate")
- term.setCursorPos(3,17)
- term.write("your cavia this mornin")
- os.pullEvent("key")
- term.clear()
- term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement