Class Dialogs
A helper class to open and manage Dialogs.
Inheritance
System.Object
Dialogs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LLBML.UI
Assembly: LLBModdingLib.dll
Syntax
public class Dialogs
Methods
OpenConfirmationDialog(String, String, Action, Action)
Opens a confirmation dialog with confirm and cancel buttons.
Declaration
public static void OpenConfirmationDialog(string title, string text, Action onClickOK = null, Action onClickCancel = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | The dialog's title. |
| System.String | text | The dialog's message. |
| System.Action | onClickOK | The callback that will be invoked when the OK button is clicked. |
| System.Action | onClickCancel | The callback that will be invoked when the Cancel button is clicked. |
OpenDialog(String, String, String, Action)
Opens a dialog with customisable text, action and an optional button.
Declaration
public static void OpenDialog(string title, string message, string buttonText = null, Action onClickButton = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | title | The dialog's title. |
| System.String | message | The dialog's message. |
| System.String | buttonText | The button's label. Ommiting it will keep the button hidden |
| System.Action | onClickButton | The callback that will be invoked when the button is clicked. |