From 4fdabfb10883c3977b1eb4f8613539a4ee3606e8 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 27 八月 2018 16:48:48 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
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