Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("back")
- local tlo = paintutils.loadImage("/aplikacje/IFX/background.nfp")
- paintutils.drawImage(tlo, 1, 1)
- term.setCursorPos(8,10)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.black)
- io.write("W")
- term.setBackgroundColor(colors.cyan)
- io.write("l")
- term.setBackgroundColor(colors.blue)
- io.write("acz/Wyla")
- term.setBackgroundColor(colors.cyan)
- io.write("c")
- term.setBackgroundColor(colors.blue)
- io.write("z")
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- io.write("IFX - Application")
- term.setCursorPos(26,1)
- io.write("X")
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- while true do
- local event, button, x, y = os.pullEvent( "mouse_click" )
- if (button==1) and (x>=8) and (x<=19) and (y>=6) and (y<=13) then
- modem.transmit(5, 1, "sygnal")
- elseif (button==1) and (x==26) and (y==1) then
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1,1)
- term.clear()
- term.setTextColor(colors.yellow)
- print("CraftOS 1.8")
- term.setTextColor(colors.white)
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement