Advertisement
Muzze77

startStandart

Mar 26th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. shell.run("clear")
  2.  
  3. mon = peripheral.wrap("back")
  4. white = colors.white
  5. blue = colors.blue
  6. sbcol = white
  7. stcol = blue
  8. gx, gy = mon.getSize()
  9.  
  10. function cbut(cx,cy,text,bcol,tcol)
  11. if bcol == nil then
  12. bcol = sbcol
  13. end
  14. if tcol == nil then
  15. tcol = stcol
  16. end
  17.  
  18. mon.setCursorPos(cx,cy)
  19. mon.setBackgroundColor(bcol)
  20. mon.setTextColor(tcol)
  21. mon.write(text)
  22. mon.setBackgroundColor(sbcol)
  23. mon.setTextColor(stcol)
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement