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.
2023-07-02 00:59:02 +02:00

1.1 KiB

Table: gui

Table containing functions for modifying the menu GUI.

Functions (5)

get_tab(tab_name)

  • Parameters:

    • tab_name (string): Name of the tab to get.
  • Returns:

    • tab: A tab instance which corresponds to the tab in the GUI.

Exemple Usage:

tab = gui.get_tab(tab_name)

show_message(title, message)

Shows a message to the user with the given title and message.

  • Parameters:
    • title (string)
    • message (string)

Exemple Usage:

gui.show_message(title, message)

show_warning(title, message)

Shows a warning to the user with the given title and message.

  • Parameters:
    • title (string)
    • message (string)

Exemple Usage:

gui.show_warning(title, message)

show_error(title, message)

Shows an error to the user with the given title and message.

  • Parameters:
    • title (string)
    • message (string)

Exemple Usage:

gui.show_error(title, message)

is_open()

  • Returns:
    • bool: Returns true if the GUI is open.

Exemple Usage:

bool = gui.is_open()