コード例 #1
0
ファイル: UN_PopupMgr.cs プロジェクト: oldmannus/PitGit
 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;
 }
コード例 #2
0
ファイル: UN_PopupMgr.cs プロジェクト: oldmannus/PitGit
        // ----------------------------------------------------------------------------------------
        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);
        }