Removed debug

This commit is contained in:
MEFRREEX
2024-01-18 21:47:49 +02:00
parent e9c65c5310
commit 9a123f35be
2 changed files with 3 additions and 49 deletions

View File

@@ -57,10 +57,10 @@ $form = new ModalForm("Test modal form");
$form->addContent("New content line");
$form->setPositiveButton("Positive button")
->setNegativeButton("Negative button");
->setNegativeButton("Negative button");
// Setting the form handler
// Result returns true if a positive button was ckicked and false if a negative button was ckicked
// Result returns true if a positive button was clicked and false if a negative button was clicked
$form->setHandler(function (Player $pl, bool $result) {
$pl->sendMessage("You clicked " . ($result ? "correct" : "wrong") . " button!");
});