GUI Events

List of events that will be called on the shown GUI

on_render_screen

This event will be called when the GUI screen is being rendered

Key

Type

Description

mouse_x

Number

X Mouse coordinates

mouse_y

Number

Y Mouse coordinates

on_click

This event will be called when a mouse button is pressed in the GUI

Key

Type

Description

mouse_x

Number

X Mouse coordinates

mouse_y

Number

Y Mouse coordinates

mouse_button

Number

ID of the mouse button clicked

on_drag_click

This event will be called when the mouse is being hold and dragged around

Key

Type

Description

mouse_x

Number

X Mouse coordinates

mouse_y

Number

Y Mouse coordinates

mouse_button

Number

ID of the mouse button clicked

time_since

Number

Time since the mouse click has happened

on_mouse_released

This event will be called when a mouse button is released

on_key_typed

This event will be called when a key is pressed on the keyboard

Key

Type

Description

typed_char

Character

Character pressed

key_code

Number

Code of the pressed key

on_gui_close

This event will be called when the GUI is closed

Last updated

Was this helpful?