Advertisement
Guest User

startup

a guest
Jul 29th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. _x, _y = term.getSize()
  2. function drawMenu()
  3.    paintutils.drawFilledBox(1, 1, 100, 100, colors.white)
  4.    paintutils.drawFilledBox(1, 2, 10, 100, colors.lightGray)
  5.    paintutils.drawLine(1, 1, 100, 1, colors.gray)
  6.    paintutils.drawLine(1, 13, 10, 13, colors.gray)
  7. end
  8.  
  9. function drawMenu1()
  10.    drawMenu()
  11.    term.setCursorPos(_x/2-4, 1)
  12.    term.write("Obsidian")
  13.    term.setBackgroundColor(colors.lightGray)
  14.    term.setCursorPos(2, 15)
  15.    term.write("Games")
  16.    term.setCursorPos(2, 17)
  17.    term.write("Settings")
  18.    term.setCursorPos(2, 19)
  19.    term.write("Exit")
  20. end
  21.  
  22. drawMenu1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement