This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/docs/lua/tables/event.md
2023-07-02 00:59:02 +02:00

491 B

Table: event

Table for responding to various events. The list of events is available in the menu_event table.

Functions (1)

register_handler(menu_event, func)

Register a function that will be called each time the corresponding menu_event is triggered.

  • Parameters:
    • menu_event (menu_event): The menu_event that we want to respond to.
    • func (function): The function that will be called.

Exemple Usage:

event.register_handler(menu_event, func)