Advertisement
SansIsLazy

run

Jul 1st, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. --Functions
  2.  
  3. function clear()
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. end
  7.  
  8. function windowRun()
  9. run = paintutils.loadImage("os/bioswift/windows/win")
  10. paintutils.drawImage(run, 1, 1)
  11. term.setCursorPos(1, 2)
  12. term.setBackgroundColor(colors.white)
  13. term.setTextColor(colors.black)
  14. end
  15.  
  16. function run()
  17. term.setCursorPos(18,9)
  18. local input = read()
  19. term.setCursorPos(18,9)
  20. windowRun()
  21. shell.run(input)
  22. term.setTextColor(colors.black)
  23. print"Press any key to continue"
  24. os.pullEvent("key")
  25. term.setBackgroundColor(colors.black)
  26. end
  27.  
  28. function drawRun()
  29. window = paintutils.loadImage("os/bioswift/windows/runWin")
  30. paintutils.drawImage(window, 1, 1)
  31.  
  32. term.setBackgroundColor(colors.lightGray)
  33. term.setTextColor(colors.black)
  34. end
  35.  
  36. --Main Code
  37. drawRun()
  38. run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement