Module ui
Manage and draw UI using catui.
Functions
LoadUI () | Load every UI element. |
UpdateUIposition () | Update the position of every UI element. |
OpenUIonKeyPressed (keypressed) | Open UI elements. |
openDialog (text, t) | Open a dialog. |
finishDialog (text) | End the current dialog. |
Functions
- LoadUI ()
- Load every UI element.
- UpdateUIposition ()
- Update the position of every UI element.
- OpenUIonKeyPressed (keypressed)
-
Open UI elements.
Parameters:
- keypressed The key that has been pressed by the user
- openDialog (text, t)
-
Open a dialog.
Parameters:
- text The text in the dialog. You can use the @ character to separate the dialog in multiple windows.
- t Time between two characters. default: 20
- finishDialog (text)
-
End the current dialog.
Parameters:
- text The text that will be displayed instead of the current one.