public static void Show(DialogCloseDelegate callback, string message, string title, MessageBoxButtons buttons, Sprite icon, MessageBoxUI ui) { if (ui != null) { new MessageBox(callback, message, title, buttons, icon, ui); } else { Debug.LogError("Missing message box UI"); } }
public static void Show(DialogCloseDelegate callback, string message, MessageBoxUI ui) { Show(callback, message, "", MessageBoxButtons.OK, null, ui); }
public static void Show(DialogCloseDelegate callback, string message, string title, MessageBoxButtons buttons, MessageBoxUI ui) { Show(callback, message, title, buttons, null, ui); }
protected MessageBox(DialogCloseDelegate callback, string message, string title, MessageBoxButtons buttons, Sprite icon, MessageBoxUI ui) { _closeDelegate += callback; Message = message; Title = title; Buttons = buttons; Icon = icon; UI = ui; UI.Owner = this; UI.gameObject.SetActive(true); ShowMessageOn(UI); }