ui.msg(msg, [title])function

Displays a message dialog box, and waits for the user to click the OK button.

Parameters

msg

A string that indicates the message to display to the user.

[title]

An optional string that indicates the title of the message dialog box (defaulting to "Message")

Return value

This function returns the string "ok" once the user has pressed the OK button or after having closed the dialog.

Example

--! luart-extensions import ui -- Displays a "Hello World !" message ui.msg("Hello World !")