Advertisement
minif

mpaint

Jan 23rd, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. --Minif OS Paint Tool
  2.  
  3. --Functions and Variables
  4. local function drawWindow()
  5. paintutils.drawFilledBox(3,3,osScreenSizeX-2,osScreenSizeY-2,colors.white)
  6. paintutils.drawBox(3,3,osScreenSizeX-2,5,colors.lightGray)
  7. term.setBackgroundColor(colors.white)
  8. term.setTextColor(colors.black)
  9. term.setCursorPos(4,4)
  10. term.write("Enter name of picture:")
  11. end
  12.  
  13. local function editFile()
  14. term.setCursorPos(4,7)
  15. local file = read()
  16. shell.run("paint user/".. osEnteredUser.."/"..file)
  17. end
  18. --Execution
  19.  
  20. drawWindow()
  21. editFile()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement