This commit is contained in:
ZareMate 2022-06-06 20:22:58 +02:00
parent 3b80547458
commit 846dac82fe
2 changed files with 8 additions and 4 deletions

View File

@ -274,7 +274,7 @@ while true do
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
break os.reboot()
end end
elseif events[3] >= 39 and events[3] <= 43 then elseif events[3] >= 39 and events[3] <= 43 then
if events[4] >= 7 and events[4] <= 9 then if events[4] >= 7 and events[4] <= 9 then

View File

@ -45,8 +45,11 @@ end
function AlarmOff() function AlarmOff()
lightSystem("off", colors.red) lightSystem("off", colors.red)
end end
function AllOn()
lightSystem("on", 65407)
end
function AllOff() function AllOff()
lightSystem("off", 65535) lightSystem("off", 65407)
end end
function LightsBack() function LightsBack()
inLightsMenu = false inLightsMenu = false
@ -101,8 +104,9 @@ lightsMenu={
[4]= { text="Orange Off", handler=OrangeOff }, [4]= { text="Orange Off", handler=OrangeOff },
[5]= { text="Alarm On", handler=AlarmOn }, [5]= { text="Alarm On", handler=AlarmOn },
[6]= { text="Alarm Off", handler=AlarmOff }, [6]= { text="Alarm Off", handler=AlarmOff },
[7]= { text="All Off", handler=AllOff }, [7]= { text="All On", handler=AllOn },
[8]= { text="Back", handler=LightsBack } [8]= { text="All Off", handler=AllOff },
[9]= { text="Back", handler=LightsBack }
} }
--[[Printing Methods]]-- --[[Printing Methods]]--