Aidan428

AE Management

Jan 14th, 2022
972
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.  
  3. function Menu()
  4.   term.setBackgroundColor(colors.black)
  5.   term.setTextColor(colors.red)
  6.   term.clear()
  7.   term.setCursorPos(1, 1)
  8.   print("Spaldotech AE Channel Management Interface v1.0")
  9.   sleep(2)
  10.   term.setTextColor(colours.white)
  11.   print("If you require help, type 'help'")
  12.   term.setTextColor(colours.orange)
  13.   write("Please enter command: ")
  14.   choice = read()
  15.   end
  16.  
  17.  
  18.  
  19.    
  20.      
  21. Menu()
  22.  
  23. if choice == "locations" then
  24.  print("Channel colour point to the following locations: ")
  25.  sleep(2)
  26.  shell.run("locations.lua")
  27.  term.setTextColor(colors.orange)
  28.  print("Press any key to continue")
  29.  os.pullEvent("key")
  30.  end
  31.  
  32.  
  33. if choice == "help" then
  34.  print("Commands include: ")
  35.  print("locations")
  36.  print("exit")
  37.  print("help")
  38.  term.setBackgroundColor(colours.red)
  39.  print("Press any key to continue")
  40.  os.pullEvent("key")
  41.  end
  42.  
  43. if choice == "test" then
  44.  print("test")
  45.  sleep(2)
  46.  break
  47.  end
  48.  
  49.  
  50. if choice == "exit" then
  51. term.setBackgroundColor(colors.black)
  52. term.setTextColor(colours.white)
  53. term.clear()
  54. term.setCursorPos(1, 1)
  55. print("Goodbye")
  56. sleep(2)
  57.  break
  58.   end
  59.  
  60. end
  61.  
RAW Paste Data