Skip to content

Dialog

Functions

ShowOkDialog

 function Dialog.ShowOkDialog((string)Title , (string)Text, (function)Callback)
Parameter Type 📝 Description
Title string Title of the dialog screen
Text string text of the dialog box.
Callback function Function to callback when ok is pressed

Dialog.ShowOkDialog

Shows a dialog screen with a ok button to be pressed

Example
Dialog.ShowOkDialog("Dialog Title", "DialogText", Callback)

ShowYesNoDialog

 function Dialog.ShowYesNoDialog((string)Title , (string)Text, (function)Yes Callback, (function)No Callback)
Parameter Type 📝 Description
Title string Title of the dialog screen
Text string text of the dialog box.
Yes Callback function Function to call back when yes is pressed
No Callback function Function to call back when no is pressed

Dialog.ShowYesNoDialog

Shows a dialog screen with yes/no buttons to be pressed

Example
Dialog.ShowYesNoDialog("Dialog Title", "DialogText", CallbackYes, CallbackNo)

ShowInputDialog

 function Dialog.ShowInputDialog((string)Title , (string)Text, (string)Default Input Text, (int)Character limit, (function)Yes Callback, (function)No Callback)
Parameter Type 📝 Description
Title string Title of the dialog screen
Text string text of the dialog box.
Default Input Text string text that will be already written down on the input field.
Character limit int Max number of characters that can be written into the input field.
Yes Callback function Function to call back when yes is pressed. Will pass the input field text as a parameter.
No Callback function Function to call back when no is pressed. Will pass the input field text as a parameter.

Dialog.ShowInputDialog

Shows a dialog screen with a input field and yes/no buttons to be pressed

Example
Dialog.ShowInputDialog("Dialog Title", "DialogText", "Default Input text", 40, CallbackYes, CallbackNo)

Comments