Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- mon = peripheral.wrap("top")
- _dt = paintutils.loadImage("/backgrounds/dt")
- --Functions
- drawDeskTop = function()
- term.clear()
- paintutils.drawImage(_dt, 1, 1)
- end
- Event = function()
- while true do
- event, side, x, y = os.pullEvent()
- if redstone.testBundledInput("back", colors.magenta) then
- term.clear()
- term.setCursorPos(5, 1)
- mon.setTextScale(0.5)
- mon.setTextColor(colors.purple)
- print("M e n u")
- term.setCursorPos(5, 3)
- mon.setTextColor(colors.white)
- print("Reactor")
- end
- if redstone.testBundledInput("back", colors.cyan) then
- init()
- end
- if event == "monitor_touch" then
- if x >= 5 and x <= 11 then
- term.clear()
- term.setCursorPos(1, 1)
- print("Das ist der Reaktor control")
- end
- end
- --if event == "monitor_touch" then
- --backButton()
- --end
- --end
- end
- end
- backButton = function()
- term.setCursorPos(8, 10)
- term.write("Back")
- end
- init = function()
- GutenTag()
- drawDeskTop()
- Event()
- end
- GutenTag = function()
- term.clear()
- term.setCursorPos(1, 1)
- textutils.slowPrint("Guten Tag, ich bin Kyra.")
- sleep(1.5)
- end
- --Main
- init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement