From 23e8ee01886faf8f1a77c79a2d93a52a860e6914 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期日, 24 八月 2025 22:41:12 +0800 Subject: [PATCH] 117 【武将】武将系统 - 重生 遣散 --- Main/System/Tip/ItemsConfirmWin.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Main/System/Tip/ItemsConfirmWin.cs b/Main/System/Tip/ItemsConfirmWin.cs index f231781..d05234e 100644 --- a/Main/System/Tip/ItemsConfirmWin.cs +++ b/Main/System/Tip/ItemsConfirmWin.cs @@ -33,7 +33,15 @@ { m_Title.text = ConfirmCancel.generalTitle; m_Info.text = ConfirmCancel.generalItemTip; - m_Info2.text = ConfirmCancel.generalItemTip2; + if (string.IsNullOrEmpty(ConfirmCancel.generalItemTip2)) + { + m_Info2.SetActive(false); + } + else + { + m_Info2.SetActive(true); + m_Info2.text = ConfirmCancel.generalItemTip2; + } m_Scroller.OnRefreshCell += OnRefreshCell; CreateScroller(); m_BtnText.text = string.IsNullOrEmpty(ConfirmCancel.OKName) ? Language.Get("L1001") : ConfirmCancel.OKName; @@ -44,7 +52,7 @@ else { moneyObj.SetActive(true); - moneyText.text = UIHelper.ShowUseMoney(ConfirmCancel.moneyType, (ulong)ConfirmCancel.moneyNeedCount); + moneyText.text = UIHelper.ShowUseMoney(ConfirmCancel.moneyType, ConfirmCancel.moneyNeedCount); moneyIcon.SetIconWithMoneyType(ConfirmCancel.moneyType); } } @@ -61,6 +69,7 @@ private void ConfirmBtn() { ConfirmCancel.OnPopConfirmClickEvent?.Invoke(true); + CloseWindow(); } -- Gitblit v1.8.0