Browse Source

战斗倍速动效修改

zhangyuqian 1 year ago
parent
commit
49923804ba

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComScoreResult.cs

@@ -19,11 +19,11 @@ namespace UI.Main
         public GGraph m_starEffect;
         public GGraph m_starEffect2;
         public GGraph m_starEffect3;
+        public GTextField m_txtCount0;
         public GGraph m_holder0;
         public GGraph m_holder1;
         public GGraph m_holder2;
         public GLoader m_numBg;
-        public GTextField m_txtCount0;
         public GTextField m_txtCount1;
         public GTextField m_txtCount2;
         public GGroup m_grpResult;
@@ -92,11 +92,11 @@ namespace UI.Main
             m_starEffect = (GGraph)comp.GetChild("starEffect");
             m_starEffect2 = (GGraph)comp.GetChild("starEffect2");
             m_starEffect3 = (GGraph)comp.GetChild("starEffect3");
+            m_txtCount0 = (GTextField)comp.GetChild("txtCount0");
             m_holder0 = (GGraph)comp.GetChild("holder0");
             m_holder1 = (GGraph)comp.GetChild("holder1");
             m_holder2 = (GGraph)comp.GetChild("holder2");
             m_numBg = (GLoader)comp.GetChild("numBg");
-            m_txtCount0 = (GTextField)comp.GetChild("txtCount0");
             m_txtCount1 = (GTextField)comp.GetChild("txtCount1");
             m_txtCount2 = (GTextField)comp.GetChild("txtCount2");
             m_grpResult = (GGroup)comp.GetChild("grpResult");
@@ -121,11 +121,11 @@ namespace UI.Main
             m_starEffect = null;
             m_starEffect2 = null;
             m_starEffect3 = null;
+            m_txtCount0 = null;
             m_holder0 = null;
             m_holder1 = null;
             m_holder2 = null;
             m_numBg = null;
-            m_txtCount0 = null;
             m_txtCount1 = null;
             m_txtCount2 = null;
             m_grpResult = null;

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/ActivityAfternoonTea/ActivityVisitNpcView.cs

@@ -110,6 +110,8 @@ namespace GFGGame
             {
                 bool result = await ActivityTeaSProxy.ReqGetNPCVisitReward(activityId, npcId + 1);
                 if (!result) return;
+                bool res = await ActivityTeaSProxy.ReqGetNPCVisitInfo(activityId);
+                if (!res) return;
                 RedDotController.Instance.SetComRedDot(_ui.m_taskIcon.target, false);
             }
             else
@@ -193,6 +195,9 @@ namespace GFGGame
             int id = (int)btnGet.data;
             var result = await TaskSProxy.GetTaskBonus(id);
             if (!result) return;
+            bool res = await ActivityTeaSProxy.ReqGetNPCVisitInfo(activityId);
+            if (!res) return;
+            RedDotController.Instance.SetComRedDot(_ui.m_taskIcon.target, MiniGameDateManager.Instance.NpcInfoList[npcId].RewrdStatus == 1);
             _ui.m_taskList.numItems = ActivityVisitCfgArray.Instance.dataArray[npcId].taskIdArr.Length;
         }
         private void OnBtnGoClick(EventContext context)
@@ -233,7 +238,6 @@ namespace GFGGame
         private void OnTasksChange(EventContext context)
         {
             _ui.m_taskList.numItems = ActivityVisitCfgArray.Instance.dataArray[npcId].taskIdArr.Length;
-            RedDotController.Instance.SetComRedDot(_ui.m_taskIcon.target, MiniGameDateManager.Instance.NpcInfoList[npcId].RewrdStatus == 1);
         }
         private void SetTypeWriting()
         {

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