Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- local cell = peripheral.wrap("tile_thermalexpansion_cell_resonant_name_15")
- local function main()
- term.setCursorPos(9,2)
- term.setTextColor(colors.lightBlue)
- write("Uebersicht")
- term.setCursorPos(1,3)
- write("--------------------------")
- -- Verbraucher
- term.setTextColor(colors.red)
- term.setCursorPos(2,5)
- write("1 ... Quarry")
- term.setCursorPos(2,6)
- write("2 ... ME - System")
- term.setCursorPos(2,7)
- write("3 ... Dimensionen")
- term.setCursorPos(2,8)
- write("4 ... Sonstige Maschinen")
- term.setCursorPos(2,9)
- write("5 ... Thermal Expansion")
- term.setCursorPos(2,10)
- write("6 ... Schaf Farm")
- -- Erzeuger
- term.setTextColor(colors.green)
- term.setCursorPos(2,11)
- write("7 ... Reaktor 1")
- term.setCursorPos(2,12)
- write("8 ... Notreaktor")
- term.setCursorPos(2,13)
- write("9 ... Solar Panels")
- -- Eingabe des Benutzers
- term.setCursorPos(2,15)
- term.setTextColor(colors.yellow)
- write("Ihre Eingabe: ")
- input = read()
- end
- local function buttonInterface()
- term.setCursorPos(4,17)
- -- term.setBackgroundColor(colors.red)
- term.setTextColor(colors.white)
- write(" Akt.")
- term.setCursorPos(12,17)
- write(" ON ")
- term.setCursorPos(19,17)
- write(" OFF ")
- term.setCursorPos(8,19)
- write(" Main Menu ")
- end
- local function info()
- term.setCursorPos(4,14)
- term.setTextColor(colors.magenta)
- write("0 ... Aus")
- term.setCursorPos(4,15)
- write("1 ... Ein")
- term.setCursorPos(5,16)
- write("2 ... Aktualisieren")
- term.setCursorPos(5,17)
- write("3 ... Main Menu")
- end
- local function diversifyButtons()
- info()
- while true do
- if input == "1" then
- id, msg, dis = rednet.receive()
- id, msg2, dis = rednet.receive()
- term.setCursorPos(2,3)
- term.setTextColor(colors.red)
- write(msg)
- term.setTextColor(colors.lightBlue) write(" / ")
- term.setTextColor(colors.green)
- write(msg2)
- end
- end
- end
- main()
- term.clear()
- diversifyButtons()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement