Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --requires button API pastebin: fuFAH9kZ
- --erase all buttons and clear the screen
- button.monDefault()
- --define the button with label: "test", that displays the text: testing, x: 5, y:5, text color: white, background color: red, and has a border
- button.newButton("test","testing",5,5,colors.white,colors.red,true)
- --draw the button with label "test", "all" can also be used to draw all the buttons
- button.drawButton("test")
- --wait for a button to be clicked then print the label or print: "timed out" when 10 seconds pass
- print(button.getClick(10))
- --remove and erase the button with the label "test", "all" can be used here as well
- button.eraseButton("test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement