/// <summary> /// Show ok dialog /// </summary> /// <param name="messages">System.Object</param> /// <param name="okCallback">ok button callback</param> /// <returns>suuccess</returns> // ---------------------------------------------------------------------------------------- public virtual bool showOkDialog(System.Object messages, Action okCallback, OkDialogSelectable selectable = OkDialogSelectable.Ok) { if (this.m_nowShowing && !this.m_consecutiveShowing) { return(false); } // set { this.m_nowShowing = true; this.m_okButtonCallback = okCallback; this.m_yesButtonCallback = null; this.m_noButtonCallback = null; } // addErrorStackIfError { this.addErrorStackIfError(messages); } // sendPauseSignalIfNeeded { this.sendPauseSignalIfNeeded(); } // show { if (this.m_refInputBlocker) { this.m_refInputBlocker.startShowing(); } if (this.m_refOkDialog) { this.m_refOkDialog.setMessages(messages); this.m_refOkDialog.startShowing(() => { #if !(UNITY_IOS || UNITY_ANDROID) if (this.m_refOkButtonSelectable && selectable == OkDialogSelectable.Ok) { this.m_refOkButtonSelectable.Select(); } #endif }); } } return(true); }
/// <summary> /// Show ok dialog /// </summary> /// <param name="messages">System.Object</param> /// <param name="okCallback">ok button callback</param> /// <returns>suuccess</returns> // ---------------------------------------------------------------------------------------- public override bool showOkDialog(System.Object messages, Action okCallback, OkDialogSelectable selectable = OkDialogSelectable.Ok) { return(base.showOkDialog(messages, okCallback, selectable)); }