Advertisement
tima_gt

tde-applications

Sep 15th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.81 KB | None | 0 0
  1. --startup config
  2. slc = 0
  3. backColor = colors.white
  4. term.setBackgroundColor(backColor)
  5. term.clear()
  6. --functions|
  7. --         V
  8. function applicationslist()
  9. applist = paintutils.loadImage("/tde/program")
  10. paintutils.drawImage(applist, 2, 2)
  11. term.setCursorPos(4, 18)
  12. write("   Back  ")
  13. term.setCursorPos(3, 5)
  14. write(">_")
  15. end
  16.  
  17. --button-home-touch= [Y1=16 X1=1] [Y1=18 X2=14]
  18. --terminal-touch= [Y1=1 X1=1] [Y2=5 X2=9]
  19. --redstone-touch= [Y1=1 X1=11] [Y2=5 X2=20]
  20. --pictures-touch= [Y1=1 X1=23] [Y2=5 X2=31]
  21. applicationslist()
  22. while true do
  23. local event, button, X, Y = os.pullEventRaw()
  24.   if slc == 0 then
  25.     if event == "mouse_click" then
  26.       if X >=1 and X <=14 and Y >=16 and Y <=19 and button ==1 then slc = 0
  27.       shell.run("pastebin run nCN4nL7A")
  28.        elseif X >=2 and X <=10 and button == 1 and Y >=2 and Y <=5 then slc = 0
  29.        shell.run("pastebin run AK50tpr8")
  30.        shell.run("pastebin run nCN4nL7A")
  31.        term.setTextColor(colors.white)
  32.         shell.run("pastebin run nCN4nL7A")
  33.          elseif X >=12 and X <=21 and button == 1 and Y >=2 and Y <=6 then slc = 0
  34.           shell.run("pastebin run zatzDfJr")
  35.            shell.run("pastebin run nCN4nL7A")
  36.             elseif X >=24 and X <=32 and button == 1 and Y >=2 and Y <=6 then slc = 0
  37.              shell.run("pastebin run b0ru1L6Z") --painter
  38.               shell.run("pastebin run nCN4nL7A")
  39.                elseif X >=27 and X<=46 and button == 1 and Y >=2 and Y <=7 then slc = 0
  40.                 shell.run("/ccYoutube")
  41.                  shell.run("pastebin run nCN4nL7A")
  42.                   elseif X >=2 and X <=14 and Y >=8 and Y <=14 and button == 1 then slc = 0
  43.                    shell.run("pastebin run vyAZc6tJ")
  44.                     shell.run("pastebin run nCN4nL7A")
  45.         else
  46.         applicationslist()
  47.       end
  48.     end
  49.   end
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement