Merge branch 'master' of http://mobile.173on.com:10010/r/snxxz_scripts
| | |
| | | m_LDListView.SetActive(false);
|
| | | Language.Id = lgId;
|
| | | m_LDLabel.text = label;
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("language_tip_info"), (yes) =>
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("language_tip_info"), Language.Get("language_tip_btn2"), Language.Get("language_tip_btn1"), (yes) =>
|
| | | {
|
| | | Debug.LogFormat("退出!:{0}", yes);
|
| | | if (yes)
|
| | |
| | | public static string popConfirmInfo { get; private set; }
|
| | | public static bool IsSingleConfirm { get; private set; }
|
| | | public static string OKName { get; private set; }
|
| | | public static string CancelName { get; private set; }
|
| | | public static void ShowPopConfirm(string title, string info, Action<bool> func)
|
| | | {
|
| | | popConfirmTitle = title;
|
| | |
| | | OnPopConfirmClickEvent = func;
|
| | | OnPopSingleConfirmEvent = null;
|
| | | IsSingleConfirm = false;
|
| | | OKName = null;
|
| | | CancelName = null;
|
| | | if (!WindowCenter.Instance.IsOpen<PopConfirmWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<PopConfirmWin>();
|
| | |
| | | OnPopConfirmClickEvent = null;
|
| | | OnPopSingleConfirmEvent = func;
|
| | | IsSingleConfirm = true;
|
| | | OKName = null;
|
| | | CancelName = null;
|
| | | if (!WindowCenter.Instance.IsOpen<PopConfirmWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<PopConfirmWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | public static void ShowPopConfirm(string title, string info, string okName, string cancelName, Action<bool> func)
|
| | | {
|
| | | popConfirmTitle = title;
|
| | | popConfirmInfo = info;
|
| | | OnPopConfirmClickEvent = func;
|
| | | OnPopSingleConfirmEvent = null;
|
| | | IsSingleConfirm = false;
|
| | | OKName = okName;
|
| | | CancelName = cancelName;
|
| | | if (!WindowCenter.Instance.IsOpen<PopConfirmWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<PopConfirmWin>();
|
| | |
| | | |
| | | popConfirmTitle.text = ConfirmCancel.popConfirmTitle; |
| | | popConfirmInfo.text = ConfirmCancel.popConfirmInfo; |
| | | |
| | | if (string.IsNullOrEmpty(ConfirmCancel.OKName)) |
| | | (popConfirmBtn.FindComponent("Text", "Text") as Text).text = Language.Get("PopConfirmWin_OK"); |
| | | else |
| | | (popConfirmBtn.FindComponent("Text", "Text") as Text).text = ConfirmCancel.OKName; |
| | | if (string.IsNullOrEmpty(ConfirmCancel.CancelName)) |
| | | (popCancelBtn.FindComponent("Text", "Text") as Text).text = Language.Get("PopConfirmWin_Cancel"); |
| | | else |
| | | (popCancelBtn.FindComponent("Text", "Text") as Text).text = ConfirmCancel.CancelName; |
| | | } |
| | | |
| | | protected override void OnAfterOpen() |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | void OnPopConfirmOkBtn() |
| | | { |
| | |
| | | void OnPopConfirmCancelBtn() |
| | | { |
| | | CloseClick(); |
| | | if (ConfirmCancel.OnPopConfirmClickEvent != null) { |
| | | if (ConfirmCancel.OnPopConfirmClickEvent != null) |
| | | { |
| | | ConfirmCancel.OnPopConfirmClickEvent(false); |
| | | } |
| | | } |