Advertisement
tima_gt

tde-photospace 3.4-alpha

Aug 19th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. menu = paintutils.loadImage('photoMenu')
  2. while true do
  3. term.setBackgroundColor(colors.white)
  4. term.setTextColor(colors.blue)
  5. term.clear()
  6. paintutils.drawImage(menu, 2, 1)
  7. term.setBackgroundColor(colors.black)
  8. term.setTextColor(colors.white)
  9. term.setCursorPos(1, 1)
  10. write('<--')
  11. term.setCursorPos(6, 1)
  12. write('TDE Desktop')
  13. term.setBackgroundColor(colors.white)
  14. term.setTextColor(colors.blue)
  15. term.setCursorPos(38, 7)
  16. term.setBackgroundColor(colors.yellow)
  17. term.setTextColor(colors.gray)
  18. write('[][][]')
  19. term.setBackgroundColor(colors.black)
  20. term.setTextColor(colors.lightGray)
  21. term.setCursorPos(28, 8)
  22. write('TimaOS')
  23. term.setCursorPos(9, 16)
  24. term.setBackgroundColor(colors.white)
  25. term.setTextColor(colors.black)
  26. write('View Photos')
  27. term.setCursorPos(29, 16)
  28. write('Take photo')
  29. term.setCursorPos(3, 18)
  30. write("need ")
  31. term.setBackgroundColor(colors.lightGray)
  32. write("Computronics mod camera in back")
  33. local event, button, X, Y = os.pullEventRaw()
  34. if event == 'mouse_click' then
  35. if X >= 5 and X <= 22 and Y >= 5 and Y <= 14 then
  36. shell.run('tde-view')
  37. elseif X >= 26 and X <= 44 and Y >= 5 and Y <= 14 then
  38. term.setBackgroundColor(colors.black)
  39. shell.run('tde-photo')
  40. elseif X >= 1 and X <= 3 and Y == 1 then
  41. break
  42. end
  43. end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement