hch
8 小时以前 03942026b95aba9f0af1c637749ad27de399b932
Main/System/Tip/ItemsConfirmWin.cs
@@ -24,8 +24,8 @@
        m_ConfirmBtn.AddListener(ConfirmBtn);
        m_CancleBtn.AddListener( ()=>
        {
            ConfirmCancel.OnPopConfirmClickEvent?.Invoke(false);
            CloseWindow();
            ConfirmCancel.OnPopConfirmClickEvent?.Invoke(false);
        });
    }
@@ -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);
        }
    }
@@ -60,6 +68,7 @@
    private void ConfirmBtn()
    {
        CloseWindow();
        ConfirmCancel.OnPopConfirmClickEvent?.Invoke(true);
    }
@@ -67,7 +76,7 @@
    void OnRefreshCell(ScrollerDataType type, CellView cell)
    {
        var _cell = cell as ItemsConfirmCell;
        _cell?.Display(cell.index);
        _cell?.Display(cell.index, ConfirmCancel.replaceItemName);
    }
    void CreateScroller()