Example #1
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="title"></param>
        /// <param name="message"></param>
        /// <param name="flags"></param>
        /// <param name="callback"></param>
        /// <param name="options"></param>
        public static void Show(string title, string message, AlertButtonFlag flags, Action <string> callback, params AlertOption[] options)
        {
            AlertInstance instance = new AlertInstance {
                Message = message, Title = title, Flags = flags, Callback = callback
            };

            instance.ApplyOptions(options);
            PopupManager.Instance.AddPopup(instance, true);
            Popups.Add(instance);
        }
Example #2
0
        /// <summary>
        /// Shows the alert
        /// </summary>
        /// <param name="callback"></param>
        /// <param name="options"></param>
        public static void Show(Action <string> callback, params AlertOption[] options)
        {
            AlertInstance instance = new AlertInstance {
                Callback = callback
            };

            instance.ApplyOptions(options);
            PopupManager.Instance.AddPopup(instance, true);
            Popups.Add(instance);
        }
Example #3
0
 /// <summary>
 /// Shows the alert
 /// </summary>
 /// <param name="title"></param>
 /// <param name="message"></param>
 /// <param name="flags"></param>
 /// <param name="callback"></param>
 /// <param name="options"></param>
 public static void Show(string title, string message, AlertButtonFlag flags, Action<string> callback, params AlertOption[] options)
 {
     AlertInstance instance = new AlertInstance { Message = message, Title = title, Flags = flags, Callback = callback };
     instance.ApplyOptions(options);
     PopupManager.Instance.AddPopup(instance, true);
     Popups.Add(instance);
 }
Example #4
0
 /// <summary>
 /// Shows the alert
 /// </summary>
 /// <param name="callback"></param>
 /// <param name="options"></param>
 public static void Show(Action<string> callback, params AlertOption[] options)
 {
     AlertInstance instance = new AlertInstance {Callback = callback};
     instance.ApplyOptions(options);
     PopupManager.Instance.AddPopup(instance, true);
     Popups.Add(instance);
 }