appendClick

fun Button.appendClick(callback: (Player) -> Unit): Button

Adds a click handler to the button without overwriting the existing one. The new click handler is called after the existing click handler when the button is clicked.

Return

The updated Button with the new click handler appended.

Parameters

callback

A lambda function to be executed when the button is clicked. The function receives the Player who clicked as a parameter.