Advertisement
GhostTV

GhostOS

Apr 3rd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2. mon.clear()
  3. mon.setTextScale(2)
  4.  
  5. mon.setCursorPos(2,2)
  6. mon.write("Welcome to GhostOS")
  7. mon.setCursorPos(5,7)
  8. mon.write("Reaktor =")
  9. mon.setCursorPos(5,14)
  10. mon.write("Yellorium Iput =")
  11.  
  12. while true do
  13.     event,side,x,y=os.pullEvent("monitor_touch")
  14.    
  15.     if x > 3 and x < 24 and y == 7 and rs.getOutput("back") == false then
  16.         rs.setOutput("back",true)
  17.         mon.setCursorPos(5,7)
  18.         mon.clearLine()
  19.         mon.blit("Reaktor = ON","000000000000","dddddddddddd")
  20.        
  21.     elseif x > 3 and x < 24 and y == 7 and rs.getOutput("back") == true then
  22.         rs.setOutput("back",false)
  23.         mon.setCursorPos(5,7)
  24.         mon.clearLine()
  25.         mon.blit("Reaktor = OFF","0000000000000","eeeeeeeeeeeee")
  26.  
  27.        
  28.        
  29.        
  30.        
  31.        
  32.        
  33.        
  34.        
  35.         end
  36.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement