Guest User

Untitled

a guest
Apr 4th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.59 KB | None | 0 0
  1. -- 1 green
  2. -- 2 red
  3. -- 3 blue
  4. -- 4 light blue
  5. -- 5 white
  6.  
  7. output = 0
  8.  
  9. function menu()
  10.     shell.run("clear")
  11.     print(" __________________________")
  12.     print("                           ")
  13.     print("|     ELEVATOR CONTROL     |")
  14.     print("|_________________________ |")
  15.     print()
  16.     print("Type c to call elevator")
  17.     print("Input Floor Number")
  18.     print("1.Top")
  19.     print("2.Sorting/Chests")
  20.     print("3.Machines")
  21.     print("4.Refinery/Track")
  22.     print("5.Reactors")
  23.     print("6.PLACEHOLDER")
  24.     print("____________________________")
  25.     sleep(0.15)
  26.     print("")
  27.     write("ENTER NUMBER:")
  28.     user=io.read()
  29. end
  30.  
  31. function menuselect()
  32. menu()
  33.     if user == "1" then
  34.         numberone()
  35.     end
  36.     if user == "2" then
  37.         numbertwo()
  38.     end
  39.     if user == "3" then
  40.         numberthree()
  41.     end
  42.     if user == "4" then
  43.         numberfour()
  44.     end
  45.     if user == "5" then
  46.         numberfive()
  47.     end
  48.     if user == "6" then
  49.         numbersix()
  50.     end
  51.     if user == "7" then
  52.         numberseven()
  53.     end
  54.     if user == "edit" then
  55.         edit()
  56.     end
  57.     if user == "c" then
  58.         c()
  59.     end
  60.     end
  61.  
  62. function numberone()
  63.     shell.run("clear")
  64.     output = colors.subtract(output, colors.white + colors.blue + colors.red + colors.lightBlue)
  65.     output = colors.combine(output, colors.green)
  66.     rs.setBundledOutput("right", output)
  67.     shell.run("menu")
  68. end
  69.  
  70.  
  71.  
  72. function numbertwo()
  73.     shell.run("clear")
  74.     output = colors.subtract(output, colors.white + colors.blue + colors.lightBlue + colors.green)
  75.     output = colors.combine(output, colors.red)
  76.     rs.setBundledOutput("right", output)
  77.     shell.run("menu")
  78. end
  79.  
  80. function numberthree()
  81.     shell.run("clear")
  82.     output = colors.subtract(output, colors.white + colors.red + colors.lightBlue + colors.green)
  83.     output = colors.combine(output, colors.blue)
  84.     rs.setBundledOutput("right", output)
  85.     shell.run("menu")
  86. end
  87.  
  88. function numberfour()
  89.     shell.run("clear")
  90.     output = colors.subtract(output, colors.white + colors.blue + colors.red + colors.green)
  91.     output = colors.combine(output, colors.lightBlue)
  92.     rs.setBundledOutput("right", output)
  93.     shell.run("menu")
  94. end
  95.  
  96. function numberfive()
  97.     shell.run("clear")
  98.     output = colors.subtract(output, colors.blue + colors.red + colors.lightBlue + colors.green)
  99.     output = colors.combine(output, colors.white)
  100.     rs.setBundledOutput("right", output)
  101.     shell.run("menu")
  102. end
  103. function c()
  104.     shell.run("clear")
  105.     output = colors.subtract(output, colors.blue + colors.red + colors.lightBlue + colors.green)
  106.     output = colors.combine(output, colors.white)
  107.     rs.setBundledOutput("right", output)
  108.     shell.run("menu")
  109. end
  110.        
  111. function edit()
  112.         print("Starting Computer in Admin Mode...")
  113.         write("Enter Command: ")
  114.     end
  115. menuselect()
Advertisement
Add Comment
Please, Sign In to add comment