Advertisement
Guest User

new

a guest
Jun 29th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. rednet.open("back")
  2. local cell = peripheral.wrap("tile_thermalexpansion_cell_resonant_name_15")
  3.  
  4.  
  5. local function main()
  6.   term.setCursorPos(9,2)
  7.   term.setTextColor(colors.lightBlue)
  8.   write("Uebersicht")
  9.   term.setCursorPos(1,3)
  10.   write("--------------------------")
  11.   -- Verbraucher
  12.   term.setTextColor(colors.red)
  13.   term.setCursorPos(2,5)
  14.   write("1 ... Quarry")
  15.   term.setCursorPos(2,6)
  16.   write("2 ... ME - System")
  17.   term.setCursorPos(2,7)
  18.   write("3 ... Dimensionen")
  19.   term.setCursorPos(2,8)
  20.   write("4 ... Sonstige Maschinen")
  21.   term.setCursorPos(2,9)
  22.   write("5 ... Thermal Expansion")
  23.   term.setCursorPos(2,10)
  24.   write("6 ... Schaf Farm")
  25.   -- Erzeuger
  26.   term.setTextColor(colors.green)
  27.   term.setCursorPos(2,11)
  28.   write("7 ... Reaktor 1")
  29.   term.setCursorPos(2,12)
  30.   write("8 ... Notreaktor")
  31.   term.setCursorPos(2,13)
  32.   write("9 ... Solar Panels")
  33.   -- Eingabe des Benutzers
  34.   term.setCursorPos(2,15)
  35.   term.setTextColor(colors.yellow)
  36.   write("Ihre Eingabe: ")
  37.   input = read()
  38.   rednet.broadcast(input)
  39. end
  40.  
  41. local function buttonInterface()
  42.   term.setCursorPos(4,17)
  43.  -- term.setBackgroundColor(colors.red)
  44.   term.setTextColor(colors.white)
  45.   write(" Akt.")
  46.   term.setCursorPos(12,17)
  47.   write(" ON ")
  48.   term.setCursorPos(19,17)
  49.   write(" OFF ")
  50.   term.setCursorPos(8,19)
  51.   write(" Main Menu ")
  52. end
  53.  
  54. local function info()
  55.   term.setCursorPos(5,14)
  56.   term.setTextColor(colors.magenta)
  57.   write("0 ... Aus")
  58.   term.setCursorPos(5,15)
  59.   write("1 ... Ein")
  60.   term.setCursorPos(5,16)
  61.   write("2 ... Aktualisieren")
  62.   term.setCursorPos(5,17)
  63.   write("3 ... Main Menu")
  64.   term.setCursorPos(5,19)
  65.   term.setTextColor(colors.yellow)
  66.   write("Ihre Eingabe: ")
  67.   input2 = read()
  68.   rednet.broadcast(input2)
  69. end
  70.  
  71.     main()
  72.     term.clear()
  73.     info()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement