Advertisement
thegreatstudio

ins.gui.ins

Jul 6th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. function check()
  2. if not fs.isDir(".Firewolf_Data") then
  3. print("Scanning to apps!!")
  4. sleep(2)
  5. installno()
  6. else
  7. print("All of the apps has been already installed!")
  8.  
  9. if not fs.isDir(".ccYouTube") then
  10. sleep(2)
  11. installno()
  12. else
  13. print("All of the apps has been already installed!")
  14. end
  15. end
  16. end
  17.  
  18. local screenX, screenY = term.getSize()
  19.  
  20. function installno()
  21. print("Welcome to Isaax Install Program! I.I.P")
  22. sleep(2)
  23.  
  24. while true do
  25. term.setBackgroundColor(colors.cyan)
  26. term.clear()
  27. paintutils.drawLine(1, 1, screenX, 1, colors.lightGray)
  28. term.setCursorPos(1, 1)
  29. term.setTextColor(colors.black)
  30. print("[Exit]")
  31. term.setCursorPos(1, 3)
  32. term.setTextColor(colors.black)
  33. term.setBackgroundColor(colors.cyan)
  34. print("[ccyoutube]")
  35. term.setCursorPos(1, 4)
  36. term.setTextColor(colors.black)
  37. term.setBackgroundColor(colors.cyan)
  38. print("[firewolf]")
  39. local event, button, X, Y = os.pullEvent("mouse_click")
  40. if event == "mouse_click" then
  41. if X >= 1 and X <= 20 and Y == 1 and button == 1 then
  42. break
  43. elseif X >= 1 and X <= 19 and Y == 3 and button == 1 then
  44. shell.run("/apps/ccyoutube.install")
  45. elseif X >= 1 and X <= 18 and Y == 4 and button == 1 then
  46. shell.run("/apps/firewolf.install")
  47. end
  48. end
  49. end
  50. end
  51.  
  52. check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement