Table of Contents

Class Modal

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class Modal : RetrievableResourceSingleton<Modal>
Inheritance
Modal
Inherited Members
Extension Methods

Constructors

Modal()

public Modal()

Fields

BodyText

public TextMeshProUGUI BodyText

Field Value

TextMeshProUGUI

ButtonContainer

public Transform ButtonContainer

Field Value

Transform

TitleText

public TextMeshProUGUI TitleText

Field Value

TextMeshProUGUI

m_buttonPrefab

public GameObject m_buttonPrefab

Field Value

GameObject

m_canvasGroup

public CanvasGroup m_canvasGroup

Field Value

CanvasGroup

m_show

public bool m_show

Field Value

bool

Properties

Open

public bool Open { get; }

Property Value

bool

Methods

OnCreated()

protected override void OnCreated()

Show(string, string, ModalOption[], Action)

public static void Show(string title, string body, ModalOption[] options, Action onClosed = null)

Parameters

title string
body string
options ModalOption[]
onClosed Action

ShowError(string, string)

public static void ShowError(string title, string body)

Parameters

title string
body string

ShowModal(string, string, ModalOption[], Action)

public void ShowModal(string title, string body, ModalOption[] options, Action onClosed)

Parameters

title string
body string
options ModalOption[]
onClosed Action

ShowTest()

[ConsoleCommand]
public static void ShowTest()

Update()

public void Update()