Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Engine Fuel Overlay Notstorm
- mon = peripheral.wrap("back")
- mon.clear()
- mon.setTextScale(0.5)
- function button_notstrom()
- mon.setBackgroundColor(colors.green)
- mon.setCursorPos(9,23)
- mon.write(" NtSt ")
- mon.setBackgroundColor(colors.black)
- end
- function button_EMG()
- mon.setBackgroundColor(colors.red)
- mon.setCursorPos(2,23)
- mon.write(" STOP ")
- mon.setBackgroundColor(colors.black)
- end
- function text_notstrom()
- mon.setBackgroundColor(colors.orange)
- mon.setCursorPos(2,12)
- mon.write(" Not Strom ")
- mon.setCursorPos(2,13)
- mon.write(" Protokoll ")
- mon.setCursorPos(2,14)
- mon.write(" Aktiv ")
- mon.setBackgroundColor(colors.black)
- end
- function overlay()
- mon.setBackgroundColor(colors.black)
- zeile01 = "+-------------+"
- zeile02 = "| Engine Fuel |"
- zeile03 = "| RF Overlay |"
- zeile04 = "+-------------+"
- zeile05 = "| |"
- zeile06 = "| |"
- zeile07 = "| |"
- zeile08 = "| |"
- zeile09 = "| |"
- zeile10 = "| |"
- zeile11 = "+-------------+"
- zeile12 = "| |"
- zeile13 = "| |"
- zeile14 = "| |"
- zeile15 = "+-------------+"
- zeile16 = "| |"
- zeile17 = "| |"
- zeile18 = "| |"
- zeile19 = "| |"
- zeile20 = "| |"
- zeile21 = "| |"
- zeile22 = "+------+------+"
- zeile23 = "| | |"
- zeile24 = "+------+------+"
- mon.setCursorPos(1,1)
- mon.write(zeile01)
- mon.setCursorPos(1,2)
- mon.write(zeile02)
- mon.setCursorPos(1,3)
- mon.write(zeile03)
- mon.setCursorPos(1,4)
- mon.write(zeile04)
- mon.setCursorPos(1,5)
- mon.write(zeile05)
- mon.setCursorPos(1,6)
- mon.write(zeile06)
- mon.setCursorPos(1,7)
- mon.write(zeile07)
- mon.setCursorPos(1,8)
- mon.write(zeile08)
- mon.setCursorPos(1,9)
- mon.write(zeile09)
- mon.setCursorPos(1,10)
- mon.write(zeile10)
- mon.setCursorPos(1,11)
- mon.write(zeile11)
- mon.setCursorPos(1,12)
- mon.write(zeile12)
- mon.setCursorPos(1,13)
- mon.write(zeile13)
- mon.setCursorPos(1,14)
- mon.write(zeile14)
- mon.setCursorPos(1,15)
- mon.write(zeile15)
- mon.setCursorPos(1,16)
- mon.write(zeile16)
- mon.setCursorPos(1,17)
- mon.write(zeile17)
- mon.setCursorPos(1,18)
- mon.write(zeile18)
- mon.setCursorPos(1,19)
- mon.write(zeile19)
- mon.setCursorPos(1,20)
- mon.write(zeile20)
- mon.setCursorPos(1,21)
- mon.write(zeile21)
- mon.setCursorPos(1,22)
- mon.write(zeile22)
- mon.setCursorPos(1,23)
- mon.write(zeile23)
- mon.setCursorPos(1,24)
- mon.write(zeile24)
- button_EMG()
- text_notstrom()
- button_notstrom()
- redstone.setBundledOutput("bottom", colors.white)
- end
- overlay()
- while true do
- -- button_EMG
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 1 and x < 8 and y == 23 then
- mon.clear()
- sleep(5)
- shell.run("reboot")
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment