示例#1
0
 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");
     }
 }
示例#2
0
 public static void Show(DialogCloseDelegate callback, string message, MessageBoxUI ui)
 {
     Show(callback, message, "", MessageBoxButtons.OK, null, ui);
 }
示例#3
0
 public static void Show(DialogCloseDelegate callback, string message, string title, MessageBoxButtons buttons, MessageBoxUI ui)
 {
     Show(callback, message, title, buttons, null, ui);
 }
示例#4
0
 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);
 }