![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The system-dialog interface.
The ISystemDialog object can be created by the ISystemDialogControl object.
Get the title string.
String GetTitle()
Get the message string.
String GetMessage()
Get the number of buttons.
Integer GetNumberOfButtons()
Get a button label string by index. A valid button index is [0 .. GetNumberOfButtons() - 1].
String GetButtonLabel(Integer index)
index | The zero-based index of the button. |
Add a button to the dialog. Button appearance is platform dependent but it is ensured that the negative button is always button 0 on dialogs with more than 1 button. On Android the maximum number of visible dialog buttons is limited to 3.
Boolean AddButton(String label)
label | The button label string. |
Open (show) the dialog.
Boolean Open()
Close (hide) the dialog. A valid button index is [0 .. GetNumberOfButtons() - 1].
Boolean Close(Integer clickedButtonIndex)
clickedButtonIndex | The zero-based index of the clicked button. |
Check if the dialog is open.
Boolean IsOpen()
Check if the dialog was closed in the most recent tick.
Boolean WasClosed()
Get the clicked button index. ButtonIndex 0 is the default (selected) button, button appearance is right to left or bottom up.
Integer GetClickedButtonIndex()