Advertisement
VdanielV

Apka oswietlenia (IFX)

Apr 14th, 2021 (edited)
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. modem = peripheral.wrap("back")
  2. local tlo = paintutils.loadImage("/aplikacje/IFX/background.nfp")
  3. paintutils.drawImage(tlo, 1, 1)
  4. term.setCursorPos(8,10)
  5. term.setBackgroundColor(colors.blue)
  6. term.setTextColor(colors.black)
  7. io.write("W")
  8. term.setBackgroundColor(colors.cyan)
  9. io.write("l")
  10. term.setBackgroundColor(colors.blue)
  11. io.write("acz/Wyla")
  12. term.setBackgroundColor(colors.cyan)
  13. io.write("c")
  14. term.setBackgroundColor(colors.blue)
  15. io.write("z")
  16. term.setCursorPos(1,1)
  17. term.setTextColor(colors.white)
  18. io.write("IFX - Application")
  19. term.setCursorPos(26,1)
  20. io.write("X")
  21. term.setCursorPos(1,1)
  22. term.setTextColor(colors.black)
  23. while true do
  24.     local event, button, x, y = os.pullEvent( "mouse_click" )
  25.     if (button==1) and (x>=8) and (x<=19) and (y>=6) and (y<=13) then
  26.         modem.transmit(5, 1, "sygnal")
  27.     elseif (button==1) and (x==26) and (y==1) then
  28.         term.setBackgroundColor(colors.black)
  29.         term.setCursorPos(1,1)
  30.         term.clear()
  31.         term.setTextColor(colors.yellow)
  32.         print("CraftOS 1.8")
  33.         term.setTextColor(colors.white)
  34.         break
  35.     end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement