Пример #1
0
            public bool ShowNoticeDlg(
                UINoticeWindow.EWindowType window_type = UINoticeWindow.EWindowType.WT_OK,
                string title   = "",
                string content = "",
                xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate ok_callback = null,
                System.Object ok_callback_param = null,
                xc.ui.ugui.UINoticeWindow.CancelBtnClickedDelegate cancel_callback = null,
                System.Object cancel_callback_param = null,
                string ok_btn_text     = "",
                string cancel_btn_text = "",
                string toggle_text     = "",
                bool toggle_isOn       = false,
                xc.ui.ugui.UINoticeWindow.OkBtnWithToggleClickedDelegate ok_with_toggle_callback = null,
                string wnd_name = "UINoticeWindow",
                xc.ui.ugui.UINoticeWindow.OnClickToggleDelegate on_click_toggle_delegate = null
                )
            {
                if (BlockOtherNoticeDlg)
                {
                    return(false);
                }
                if (string.IsNullOrEmpty(ok_btn_text))
                {
                    ok_btn_text = xc.TextHelper.BtnConfirm;
                }
                if (string.IsNullOrEmpty(cancel_btn_text))
                {
                    cancel_btn_text = xc.TextHelper.BtnCancel;
                }
                ShowNoticeDlgImpl(window_type, title, content, ok_callback, ok_callback_param, cancel_callback, cancel_callback_param,
                                  ok_btn_text, cancel_btn_text, toggle_text, toggle_isOn, ok_with_toggle_callback, wnd_name, on_click_toggle_delegate);

                return(true);
            }
Пример #2
0
 void ShowNoticeDlgImpl(UINoticeWindow.EWindowType window_type, string title, string content,
                        xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate ok_callback, System.Object ok_callback_param,
                        xc.ui.ugui.UINoticeWindow.CancelBtnClickedDelegate cancel_callback, System.Object cancel_callback_param,
                        string ok_btn_text, string cancel_btn_text, string toggle_text, bool toggle_isOn, xc.ui.ugui.UINoticeWindow.OkBtnWithToggleClickedDelegate ok_with_toggle_callback, string wnd_name,
                        UINoticeWindow.OnClickToggleDelegate on_click_toggle_delegate)
 {
     xc.ui.ugui.UIManager.GetInstance().ShowWindow(wnd_name, new object[] {
         window_type, title, content, ok_callback, ok_callback_param, cancel_callback, cancel_callback_param, ok_btn_text, cancel_btn_text, toggle_text, toggle_isOn, ok_with_toggle_callback, on_click_toggle_delegate
     });
 }
Пример #3
0
        public void ShowAttachmentsTipsDialog(string tips)
        {
            if (SceneHelp.Instance.IsInInstance /* || InstanceManager.Instance.InstanceType == GameConst.WAR_TYPE_MULTI*/)
            {
                UINotice.Instance.ShowMessage(tips);
                return;
            }

            xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate confirmDelegate = (param) =>
            {
                //RouterManager.Instance.GoToMailWnd();
            };

            UIWidgetHelp.Instance.ShowNoticeDlg(xc.ui.ugui.UINoticeWindow.EWindowType.SH_OKBtn, tips, confirmDelegate, null);
        }
Пример #4
0
 public void ShowNoticeDlg(string text, xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate ok_callback = null, System.Object ok_callback_param = null)
 {
     ShowNoticeDlg(xc.ui.ugui.UINoticeWindow.EWindowType.WT_OK, "", text, ok_callback, ok_callback_param);
 }
Пример #5
0
 public bool ShowNoticeDlg(UINoticeWindow.EWindowType window_type, string text, xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate ok_callback, System.Object ok_callback_param, string wnd_name)
 {
     return(ShowNoticeDlg(window_type, "", text, ok_callback, ok_callback_param, null, null, xc.TextHelper.BtnConfirm, xc.TextHelper.BtnCancel, "", false, null, wnd_name, null));
 }
Пример #6
0
 public bool ShowNoticeDlg(UINoticeWindow.EWindowType window_type, string text, xc.ui.ugui.UINoticeWindow.OkBtnClickedDelegate ok_callback, System.Object ok_callback_param)
 {
     return(ShowNoticeDlg(window_type, "", text, ok_callback, ok_callback_param));
 }