Naev

Module vntk

Small wrapper around vn to do toolkit type stuff.

Is similar to the builtin tk module but with much more functionality.

Functions

msg ([title], text, params) Creates a series of message boxes to be displayed.
yesno ([title], text, params) Creates a series of message boxes with a yes or no prompt to be displayed.


Functions

msg ([title], text, params)
Creates a series of message boxes to be displayed. Works similar to tk.msg but is more configurable and can handle chaining messages.

Parameters:

  • title string Title of the message boxes. (optional)
  • text string or table String or table of strings for the text of each consecutive text box.
  • params table Table of parameters. Currently supports the transition field which sets up parameters passed to vn.transition.
yesno ([title], text, params)
Creates a series of message boxes with a yes or no prompt to be displayed.

Note that due to internally using the vn library inside, this can not be used while the vn library is running.

Parameters:

  • title string Title of the message boxes. (optional)
  • text string or table String or table of strings for the text of each consecutive text box.
  • params table Table of parameters

Returns:

    boolean true if yes was pressed or false otherwise.
generated by LDoc 1.5.0 Last updated 2024-12-13 16:37:51