/// <summary> /// 单按钮,提示信息 /// </summary> /// <param name="title"></param> /// <param name="msg"></param> internal static void OpenPopUpOK(string title, string msg, string okTitle, Action okAction = null, bool pushToStack = false) { PopUpPanelParams m_Params = new PopUpPanelParams(); m_Params.Init(title, msg, CommonEnum.MessageBoxStyleType.OK, okTitle, okAction, null, null, false, null, 0, null); UIManager.Instance.OpenUI <PopUpWindow>(ConStr.PopUpPanel, paramList: m_Params); }
/// <summary> /// 双按钮,没有关闭x按钮 /// </summary> /// <param name="title"></param> /// <param name="msg"></param> /// <param name="okAction"></param> /// <param name="cancleAction"></param> internal static void OpenPopUpX(string title, string msg, Action okAction, Action cancelAction = null) { PopUpPanelParams m_Params = new PopUpPanelParams(); m_Params.Init(title, msg, CommonEnum.MessageBoxStyleType.OK_CANCLE, "确定", okAction, "取消", cancelAction, true, null, 0, null); UIManager.Instance.OpenUI <PopUpWindow>(ConStr.PopUpPanel, paramList: m_Params); }
/// <summary> /// 双按钮, /// </summary> /// <param name="title"></param> /// <param name="msg"></param> /// <param name="okAction"></param> /// <param name="okTitle"></param> internal static void OpenPopUp(string title, string msg, Action okAction, string okTitle, string cancleTitle = "", System.Action cancleAction = null) { PopUpPanelParams m_Params = new PopUpPanelParams(); m_Params.Init(title, msg, CommonEnum.MessageBoxStyleType.OK_CANCLE, okTitle, okAction, "取消", null, false, null, 0, null); UIManager.Instance.OpenUI <PopUpWindow>(ConStr.PopUpPanel, paramList: m_Params); }
/// <summary> /// 打开弹窗 /// </summary> /// <param name="title">标题</param> /// <param name="msg">文本</param> /// <param name="styleType">类型中间按钮,左右按钮,没有按钮</param> /// <param name="okTitle">右边,或者中间按钮文字</param> /// <param name="okAction">右边,或者中间按钮回调</param> /// <param name="cancleTitle">左边按钮文字</param> /// <param name="cancleAction">左边按钮回调</param> /// <param name="hideCloseBtn">是否隐藏右上角的关闭按钮</param> /// <param name="closeAction">关闭按钮回调</param> /// <param name="remainTime">左边按钮能按的倒计时</param> /// <param name="timeoutAction">左边按钮倒计时结束后的回调</param> /// <param name="showFullMask">是否显示遮罩</param> /// <param name="blowGuide"></param> internal static void OpenPopUp(string title, string msg, CommonEnum.MessageBoxStyleType styleType = CommonEnum.MessageBoxStyleType.OK, string okTitle = "", System.Action okAction = null, string cancelTitle = "", System.Action cancelAction = null, bool hideCloseBtn = false, System.Action closeAction = null, int remainTime = 0, System.Action timeoutAction = null) { PopUpPanelParams m_Params = new PopUpPanelParams(); m_Params.Init(title, msg, CommonEnum.MessageBoxStyleType.OK_CANCLE, okTitle, okAction, cancelTitle, cancelAction, hideCloseBtn, closeAction, remainTime, timeoutAction); UIManager.Instance.OpenUI <PopUpWindow>(ConStr.PopUpPanel, paramList: m_Params); }