registerGuiMouseRelease

open fun registerGuiMouseRelease(method: Any): EventTrigger

Registers a new trigger that runs whenever a mouse button is released with a gui open

Passes through five arguments:

  • The mouse x position

  • The mouse y position

  • The mouse button

  • The gui

  • The event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard