Show / Hide Table of Contents

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
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ThemeElement
ConfirmationDialogManager
Implements
IColorHook
Inherited Members
ThemeElement.Timer
ThemeElement.Initialize(PomodoroTimer, Boolean)
ThemeElement.IsInitialized()
ThemeElement.ColorUpdate(Theme)
ThemeElement.OnDestroy()
Namespace: AdrianMiasik.Components.Core
Assembly: Assembly-CSharp.dll
Syntax
public class ConfirmationDialogManager : ThemeElement, IColorHook

Methods

| Improve this Doc View Source

ClearCurrentDialogPopup()

Clears and destroys the current timer popup so it's no longer visible to the user.

Declaration
public void ClearCurrentDialogPopup()
| Improve this Doc View Source

ClearDialogPopup(ConfirmationDialog)

Clear our current timer popup reference. Should be done when destroying our popup dialog.

Declaration
public void ClearDialogPopup(ConfirmationDialog dialog)
Parameters
Type Name Description
ConfirmationDialog dialog
| Improve this Doc View Source

GetCurrentConfirmationDialog()

Declaration
public ConfirmationDialog GetCurrentConfirmationDialog()
Returns
Type Description
ConfirmationDialog
| Improve this Doc View Source

IsConfirmationDialogInterruptible()

Is our current ConfirmationDialog interruptible by our timer?

Declaration
public bool IsConfirmationDialogInterruptible()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

SpawnConfirmationDialog(Action, Action, String, String, Boolean)

Creates a custom ConfirmationDialog if one is currently not present/visible. Either the submit/close buttons will trigger the dialog to close.

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?

| Improve this Doc View Source

TryClearCurrentDialogPopup()

Declaration
public void TryClearCurrentDialogPopup()

Implements

IColorHook
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX