public PopupInfo(string popUpText, string popUpLabel = "", PopupDialogButtonCallback onClose = null, PopupType mode = PopupType.Notification, bool closeOnFinish = true, params string[] stringArgs) { PopUpLabel = popUpLabel; PopUpText = popUpText; Callback = onClose; Mode = mode; CloseOnFinish = closeOnFinish; StringArgs = stringArgs; }
// ---------------------------------------------------------------------------------------- public bool ShowPopup(string popupText, string popupLabel = "", PopupDialogButtonCallback onClose = null, PopupType mode = PopupType.Notification, bool closeOnFinish = true, params string[] stringArgs) // ---------------------------------------------------------------------------------------- { PopupInfo info = new PopupInfo(popupText, popupLabel, onClose, mode, closeOnFinish, stringArgs); _waitingPopups.Add(info); if (_currentPopup == null) { ShowNextPopup(); } return(true); }