private void ResponseChargeGetSign(ScChargeDailyRebateGet msg)
    {
        if (msg.result != 0)
        {
            moduleGlobal.ShowMessage(9855, msg.result);
            return;
        }

        if (m_currentControl != null && m_currentControl.Info.id == msg.whichday)
        {
            m_currentControl.Info.draw = true;
            m_currentControl.InitData(m_chargeItem, m_currentControl.Info, msg.whichday);
            Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 30), m_currentControl.Info.reward);
        }
        else
        {
            var dailyInfo = m_rewards.oneinfo.Find(item => item.id == msg.whichday);
            if (null != dailyInfo)
            {
                dailyInfo.draw = true;
                RefreshList();
                Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 30), dailyInfo.reward);
            }
        }
    }
Beispiel #2
0
 void _Packet(ScChargeDailyRebateGet msg)
 {
     moduleGlobal.UnLockUI();
     DispatchModuleEvent(NoticeChargeGetSign, msg);
 }