소스 검색

摘星刷新界面修改

huangxiaoyue 1 년 전
부모
커밋
fc94653494

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Constant/ConstMessage.cs

@@ -186,6 +186,9 @@ namespace GFGGame
         //摘星抽奖展示界面关闭
         public const string LUCKY_BOX_SHOW_VIEW_CLOSE = "LUCKY_BOX_SHOW_VIEW_CLOSE";
 
+        //摘星抽奖奖品界面关闭
+        public const string LUCKY_BOX_BONUS_VIEW_CLOSE = "LUCKY_BOX_BONUS_VIEW_CLOSE";
+
         //词牌升级刷新
         public const string CARD_LEVEL_UP = "CARD_LEVEL_UP";
 

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxActivityView.cs

@@ -75,6 +75,7 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.ACTIVITY_LUCKY_BOX, UpdateView);
             EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
             EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpLuckyDiscount);
+            EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_BONUS_VIEW_CLOSE, UpLuckyDiscount);
         }
         protected override void OnShown()
         {
@@ -338,6 +339,7 @@ namespace GFGGame
             EventAgent.RemoveEventListener(ConstMessage.ACTIVITY_LUCKY_BOX, UpdateView);
             EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
             EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpLuckyDiscount);
+            EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_BONUS_VIEW_CLOSE, UpLuckyDiscount);
         }
 
         private void OnClickBtnBack()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -78,7 +78,6 @@ namespace GFGGame
             _ui = UI_LuckBoxBonusShowUI.Create();
             this.viewCom = _ui.target;
             isfullScreen = true;
-            isReturnView = true;
 
             _ui.m_loaBg.onClick.Add(OnClickLoaBg);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zx_bg");
@@ -179,6 +178,7 @@ namespace GFGGame
             }
 
             _effectUIDic.Clear();
+            EventAgent.DispatchEvent(ConstMessage.LUCKY_BOX_BONUS_VIEW_CLOSE);
         }
 
         private void UpdateItem(GComponent com, int index, int countType)

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes