From 65fd48d1dc7336d829e82ef70b082ee5081aee2f Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 27 八月 2018 15:00:27 +0800
Subject: [PATCH] [2614]神兽开发
---
System/Strengthening/GodBeastSlidingList.cs | 42 +++++++++++++++++++++++++++++++++++++++---
1 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/System/Strengthening/GodBeastSlidingList.cs b/System/Strengthening/GodBeastSlidingList.cs
index c2a2ebc..cd63258 100644
--- a/System/Strengthening/GodBeastSlidingList.cs
+++ b/System/Strengthening/GodBeastSlidingList.cs
@@ -132,11 +132,13 @@
}
private void OnEnable()
{
-
- }
+ playerPack.RefreshItemCountAct += RefreshItemCountAct;
+ playerPack.ItemCntReduceAct += ItemCntReduceAct;
+ }
private void OnDisable()
{
-
+ playerPack.RefreshItemCountAct -= RefreshItemCountAct;
+ playerPack.ItemCntReduceAct -= ItemCntReduceAct;
}
public void Init()
@@ -162,7 +164,41 @@
{
m_ScrollerController.OnRefreshCell -= OnRefreshGridCell;
}
+ private void ItemCntReduceAct(PackType arg1, int arg2, int arg3)
+ {
+ if (arg1 == PackType.rptDogzItem)
+ {
+ if (m_ToggleAll.isOn)
+ {
+ m_ToggleAll.isOn = false;
+ }
+ GetGodBeastBag();
+ FilterQuality();
+ m_ScrollerController.m_Scorller.RefreshActiveCellViews();//鍒锋柊鍙
+ if (AbsorbEvent != null)
+ {
+ AbsorbEvent(AbsorptionDic);
+ }
+ }
+ }
+ private void RefreshItemCountAct(PackType arg1, int arg2, int arg3)
+ {
+ if (arg1 == PackType.rptDogzItem)
+ {
+ if (m_ToggleAll.isOn)
+ {
+ m_ToggleAll.isOn = false;
+ }
+ GetGodBeastBag();
+ FilterQuality();
+ m_ScrollerController.m_Scorller.RefreshActiveCellViews();//鍒锋柊鍙
+ if (AbsorbEvent != null)
+ {
+ AbsorbEvent(AbsorptionDic);
+ }
+ }
+ }
private void GetGodBeastBag()//鑾峰彇绁炲吔鑳屽寘鏁版嵁鎺掑簭
{
GodBeastBagList.Clear();
--
Gitblit v1.8.0