Beispiel #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);
            }
Beispiel #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
     });
 }