Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.find("monitor")
- local image1 = paintutils.loadImage("icons/exit_icon.nfp")
- local image2 = paintutils.loadImage("icons/iron_icon.nfp")
- monitor.setTextScale(0.5)
- monitor.setCursorPos(1,1)
- paintutils.drawImage(image1, term.getCursorPos())
- monitor.setCursorPos(3,6)
- paintutils.drawImage(image2, term.getCursorPos())
- while true do
- local event, button, x, y = os.pullEvent("mouse_click")
- if (x < 6 and y < 6) then
- monitor.setBackgroundColor(32768)
- monitor.clear()
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement