Advertisement
tima_gt

tde-desktop 3.2

Dec 25th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.57 KB | None | 0 0
  1. os.loadAPI("advPrint")
  2.  
  3. function aloadImage()
  4. end
  5. --[[ THIS IS SPARTAA!
  6. local function wallpaper()
  7. term.setBackgroundColor(colors.white)
  8. term.setTextColor(colors.black)
  9. term.clear()
  10. term.setCursorPos(1, 1)
  11. --wallpaper = paintutils.loadImage("tde-wallpaper")
  12. paintutils.drawImage(wallpaper, 3, 2)
  13. end
  14. Don't enable this option, this very bug function!
  15. ]]
  16.  
  17. local function menu()
  18. term.setBackgroundColor(colors.black)
  19. term.setTextColor(colors.white)
  20. advPrint.tout(1, "[S] [Menu]")
  21. advPrint.tout(18, "[Exit]")
  22. term.setBackgroundColor(colors.white)
  23. end
  24. aloadImage()
  25. term.setBackgroundColor(colors.white)
  26. term.setTextColor(colors.black)
  27. term.clear()
  28. term.setCursorPos(1, 1)
  29. wallpaper = paintutils.loadImage("tde-wallpaper")
  30. paintutils.drawImage(wallpaper, 3, 2)
  31. while true do
  32. menu()
  33. x1, y1, x2, y2 = 1, 18, 6, 18
  34. local event, button, X, Y = os.pullEventRaw()
  35.   if event == "mouse_click" then
  36. if X >= 1 and X <= 6 and Y >= 18 and Y <= 18 then
  37. term.setBackgroundColor(colors.black)
  38. term.setTextColor(colors.white)
  39. term.clear()
  40. advPrint.tout(1, "* * * TDE-DESKTOP * * *")
  41. print("  Thank's for using!")
  42. break
  43. elseif X >= 1 and Y >= 1 and X<= 3 and Y <= 1 then
  44. shell.run("tde-settings")
  45. term.setBackgroundColor(colors.white)
  46. term.setTextColor(colors.black)
  47. term.clear()
  48. term.setCursorPos(1, 1)
  49. paintutils.drawImage(wallpaper, 3, 2)
  50. menu()
  51. elseif X>=5 and Y>= 1 and X<= 10 and Y<= 1 then
  52. shell.run("tde-menu")
  53. term.setBackgroundColor(colors.white)
  54. term.setTextColor(colors.black)
  55. term.clear()
  56. term.setCursorPos(1, 1)
  57. paintutils.drawImage(wallpaper, 3, 2)
  58. end
  59. end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement