MessageDialog

From Vendetta Lua
Jump to: navigation, search

A borderless iup dialog with a message and a button. Display with :show() or ShowDialog(). Examples CancelLoadoutPurchaseDialog, ConnectingDialog, CharCreateFailedDialog, CharSelectFailedDialog

Functions

SetMessage

Definition:
SetMessage(userdata dialog, string message, string buttontitle, function cb) -> nil

Description:
Sets message, title of button and a callback.

Arguments:
dialog this dialog
message message to display in the dialog
buttontitle text to display on button (optional default is "Cancel")
cb function to call on button click (optional)