Advertisement
jonnathonchristopher

floorsMenu

Mar 10th, 2015
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.61 KB | None | 0 0
  1. os.loadAPI("/req/menuApi")
  2. os.loadAPI("/req/config")
  3.  
  4. local menu = {
  5. [1] = { text = "How many floors do you have?", handler = function() shell.run("/setupParts/floorsMenu") end},
  6. [2] = { text = "2 Floors", handler = function() shell.run("setupParts/Floors2") end},
  7. [3] = { text = "3 Floors", handler = function() shell.run("setupParts/Floors3") end},
  8. [4] = { text = "4 Floors", handler = function() shell.run("setupParts/Floors4") end},
  9. [5] = { text = "5 Floors", handler = function() shell.run("setupParts/Floors5") end},
  10. [6] = { text = "6 Floors", handler = function() shell.run("setupParts/Floors6") end},
  11. [7] = { text = "7 Floors", handler = function() shell.run("setupParts/Floors7") end},
  12. [8] = { text = "8 Floors", handler = function() shell.run("setupParts/Floors8") end},
  13. [9] = { text = "9 Floors", handler = function() shell.run("setupParts/Floors9") end},
  14. [10] = { text = "10 Floors", handler = function() shell.run("setupParts/Floors10") end},
  15. [11] = { text = "11 Floors", handler = function() shell.run("setupParts/Floors11") end},
  16. [12] = { text = "12 Floors", handler = function() shell.run("setupParts/Floors12") end},
  17. [13] = { text = "13 Floors", handler = function() shell.run("setupParts/Floors13") end},
  18. [14] = { text = "14 Floors", handler = function() shell.run("setupParts/Floors14") end},
  19. [15] = { text = "15 Floors", handler = function() shell.run("setupParts/Floors15") end},
  20. [16] = { text = "16 Floors", handler = function() shell.run("setupParts/Floors16") end}
  21. }
  22.  
  23. menuApi.setBarTextColor(32768)
  24. menuApi.setTextColor(1)
  25. menuApi.setBarColor(1)
  26. menuApi.setBackgroundColor(32768)
  27.  
  28. menuApi.runMenu(menu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement