Class ConfirmationDialogManager
Responsible for spawning and keeping track of the currently used confirmation dialog. Use this class for interacting with our pop-up's via code.
Inheritance
Implements
Inherited Members
Namespace: AdrianMiasik.Components.Core
Assembly: Assembly-CSharp.dll
Syntax
public class ConfirmationDialogManager : ThemeElement, IColorHook
Methods
| Improve this Doc View SourceClearCurrentDialogPopup()
Clears and destroys the current timer popup so it's no longer visible to the user.
Declaration
public void ClearCurrentDialogPopup()
ClearDialogPopup(ConfirmationDialog)
Clear our current timer popup reference.
Declaration
public void ClearDialogPopup(ConfirmationDialog dialog)
Parameters
Type | Name | Description |
---|---|---|
ConfirmationDialog | dialog |
GetCurrentConfirmationDialog()
Declaration
public ConfirmationDialog GetCurrentConfirmationDialog()
Returns
Type | Description |
---|---|
ConfirmationDialog |
IsConfirmationDialogInterruptible()
Is our current ConfirmationDialog interruptible by our timer?
Declaration
public bool IsConfirmationDialogInterruptible()
Returns
Type | Description |
---|---|
System.Boolean |
SpawnConfirmationDialog(Action, Action, String, String, Boolean)
Creates a custom ConfirmationDialog if one is currently not present/visible.
Declaration
public void SpawnConfirmationDialog(Action onSubmit, Action onCancel = null, string topText = null, string bottomText = null, bool interruptible = true)
Parameters
Type | Name | Description |
---|---|---|
System.Action | onSubmit | What do you want to do when the user presses yes? |
System.Action | onCancel | What do you want to do when the user presses no? |
System.String | topText | What primary string do you want to display to the user? |
System.String | bottomText | What secondary string do you want to display to the user? |
System.Boolean | interruptible | Can this popup be closed by our timer? |
TryClearCurrentDialogPopup()
Declaration
public void TryClearCurrentDialogPopup()