Browse Source

Merge branch 'master' of http://10.108.64.190:3000/gfg/Client

* 'master' of http://10.108.64.190:3000/gfg/Client:
  限时累充时间报错
  物品tips适配
  对战技能表现
  月卡商店刷新
  抽奖
  替换按钮资源
  竞技场NPC头像
  效果限时礼包UI
Jae 2 năm trước cách đây
mục cha
commit
097136e7e4
47 tập tin đã thay đổi với 115 bổ sung77 xóa
  1. 11 4
      FGUIProject/assets/CommonGame/components/ComTipsBase.xml
  2. 2 2
      FGUIProject/assets/DailyWelfare/LimitChargeUI.xml
  3. 1 1
      FGUIProject/assets/DailyWelfare/components/Button1.xml
  4. 2 0
      FGUIProject/assets/EnduringGiftBox/SpecialOfferGiftBoxUI.xml
  5. 9 9
      FGUIProject/assets/LuckyBox/LuckyBoxActivityUI.xml
  6. 3 6
      FGUIProject/assets/LuckyBox/components/Button5.xml
  7. BIN
      FGUIProject/assets/LuckyBox/images/cj_mrth_db.png
  8. BIN
      FGUIProject/assets/LuckyBox/images/cj_zxjl_db.png
  9. BIN
      FGUIProject/assets/LuckyBox/images/cj_zxth_db.png
  10. 3 0
      FGUIProject/assets/LuckyBox/package.xml
  11. 5 4
      FGUIProject/assets/Main/StoryFightTargetScoreUI.xml
  12. 3 3
      FGUIProject/assets/Main/components/ComDeduction.xml
  13. BIN
      FGUIProject/assets/Main/imagesNew/zd_shanghai_db.png
  14. 1 0
      FGUIProject/assets/Main/package.xml
  15. 1 1
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs
  16. 1 1
      GameClient/Assets/Game/HotUpdate/Data/ArenaViewManager.cs
  17. 1 0
      GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs
  18. 13 0
      GameClient/Assets/Game/HotUpdate/Data/RoleInfoManager.cs
  19. 1 1
      GameClient/Assets/Game/HotUpdate/Data/ShopDataManager.cs
  20. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_LimitChargeUI.cs
  21. 6 6
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckyBoxActivityUI.cs
  22. 1 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/CommonSProxy.cs
  23. 1 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/LuckyBoxSProxy.cs
  24. 3 3
      GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs
  25. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaRankUpView.cs
  26. 5 5
      GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaRankView.cs
  27. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaResultQuickView.cs
  28. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaView.cs
  29. 3 3
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs
  30. 6 2
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/LimitChargeView.cs
  31. 18 18
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  32. 9 5
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs
  33. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes
  34. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes
  35. BIN
      GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_fui.bytes
  36. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png
  37. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png
  38. BIN
      GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes
  39. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png
  40. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0.png
  41. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png
  42. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png
  43. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png
  44. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png
  45. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png
  46. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png
  47. BIN
      GameClient/Assets/ResIn/UI/Main/Main_fui.bytes

+ 11 - 4
FGUIProject/assets/CommonGame/components/ComTipsBase.xml

@@ -10,8 +10,8 @@
     <text id="n9_si5z" name="txtDesc" xy="375,181" size="506,166" group="n24_u2u3" fontSize="30" color="#998a79" ubb="true" autoSize="none" autoClearText="true" text="手机课程很快就要开课咯!!同学们有没有很期待哇过 几天课上见昂!!28节课希望大家都可以跟下来一起度 过有趣儿的两个月吧。"/>
     <group id="n24_u2u3" name="n24" xy="56,50" size="850,320" group="n25_u2u3" advanced="true"/>
     <image id="n11_si5z" name="n11" src="842s6h" fileName="imagesNew/kp_sx_1.png" xy="75,400" size="50,50" group="n19_si5z"/>
-    <image id="n12_si5z" name="n12" src="842s6i" fileName="imagesNew/kp_sx_2.png" xy="300,400" size="50,50" group="n19_si5z"/>
-    <image id="n13_si5z" name="n13" src="842s6j" fileName="imagesNew/kp_sx_3.png" xy="525,400" size="50,50" group="n19_si5z"/>
+    <image id="n12_si5z" name="n12" src="842s6i" fileName="imagesNew/kp_sx_3.png" xy="300,400" size="50,50" group="n19_si5z"/>
+    <image id="n13_si5z" name="n13" src="842s6j" fileName="imagesNew/kp_sx_2.png" xy="525,400" size="50,50" group="n19_si5z"/>
     <image id="n14_si5z" name="n14" src="842s6k" fileName="imagesNew/kp_sx_4.png" xy="750,400" size="50,50" group="n19_si5z"/>
     <text id="n15_si5z" name="txtGong" xy="135,404" size="61,41" group="n19_si5z" fontSize="30" color="#aa865f" autoClearText="true" text="5000"/>
     <text id="n16_si5z" name="txtShang" xy="360,404" size="61,41" group="n19_si5z" fontSize="30" color="#aa865f" autoClearText="true" text="5000"/>
@@ -22,12 +22,19 @@
       <item/>
       <item/>
     </list>
-    <list id="n26_l500" name="listItem" xy="196,551" pivot="0.5,0" size="569,131" group="n25_u2u3" layout="row" colGap="20" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
+    <list id="n26_l500" name="listItem" xy="58,551" pivot="0.5,0" size="851,131" group="n25_u2u3" layout="row" overflow="scroll" scroll="horizontal" colGap="15" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
       <item/>
       <item/>
       <item/>
     </list>
-    <group id="n25_u2u3" name="n25" xy="56,50" size="850,632" advanced="true" layout="vt" lineGap="30" excludeInvisibles="true"/>
+    <group id="n25_u2u3" name="n25" xy="56,50" size="853,632" advanced="true" layout="vt" lineGap="30" excludeInvisibles="true"/>
   </displayList>
   <relation target="n25_u2u3" sidePair="height-height"/>
 </component>

+ 2 - 2
FGUIProject/assets/DailyWelfare/LimitChargeUI.xml

@@ -6,8 +6,8 @@
     </loader>
     <component id="n10_idkd" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,80"/>
     <image id="n7_idkd" name="n7" src="nyhm5" fileName="imagesNew/sj_db.png" pkg="eg2y0ldp" xy="736,59" group="n6_idkd"/>
-    <text id="n5_idkd" name="txtTime" xy="820,58" pivot="0.5,0" size="193,44" group="n6_idkd" fontSize="32" color="#fffbf9" align="center" text="00天00时00分"/>
-    <group id="n6_idkd" name="n6" xy="736,58" size="366,45" advanced="true">
+    <text id="n5_idkd" name="txtTime" xy="820,58" pivot="0.5,0" size="193,44" group="n6_idkd" fontSize="32" color="#fffbf9" align="center" autoClearText="true" text="00天00时00分"/>
+    <group id="n6_idkd" name="grpTime" xy="736,58" size="366,45" advanced="true">
       <relation target="" sidePair="top-top"/>
     </group>
     <image id="n8_idkd" name="n8" src="nyhm8" fileName="imagesNew/qrhd_db.png" pkg="eg2y0ldp" xy="0,791" group="n12_idkd">

+ 1 - 1
FGUIProject/assets/DailyWelfare/components/Button1.xml

@@ -19,7 +19,7 @@
     </loader>
     <image id="n4_vols" name="n4" src="vols1r" fileName="images/hdbn_zsx.png" xy="0,27"/>
     <image id="n7_vols" name="n7" src="vols1v" fileName="images/hd_sj_dkuang.png" xy="425,263" group="n8_vols"/>
-    <text id="n6_vols" name="txtTime" xy="596,268" pivot="0.5,0" size="260,42" group="n8_vols" font="ui://eg2y0ldpa0cftkx" fontSize="30" color="#fffcf7" text="剩余时间:5天30分"/>
+    <text id="n6_vols" name="txtTime" xy="604,268" pivot="0.5,0" size="244,42" group="n8_vols" font="ui://eg2y0ldpa0cftkx" fontSize="30" color="#fffcf7" autoClearText="true" text="剩余时间:0天0分"/>
     <group id="n8_vols" name="grpTime" xy="425,263" size="493,54" advanced="true">
       <gearDisplay controller="c1" pages="1"/>
     </group>

+ 2 - 0
FGUIProject/assets/EnduringGiftBox/SpecialOfferGiftBoxUI.xml

@@ -2,6 +2,7 @@
 <component size="1080,1116">
   <displayList>
     <image id="n0_yjmk" name="n0" src="yjmk2v" fileName="images/bg02.png" xy="-9,142"/>
+    <image id="n28_fter" name="n28" src="qqhz4" fileName="images/tape.png" xy="-3,626"/>
     <image id="n1_yjmk" name="n1" src="yjmk2u" fileName="images/bg01.png" xy="29,15"/>
     <graph id="n25_fter" name="holderBaby" xy="261,161" size="97,73"/>
     <image id="n2_yjmk" name="n2" src="yjmk2g" fileName="images/wz_thlb.png" xy="76,39"/>
@@ -26,6 +27,7 @@
     <item time="0" type="Alpha" target="n23_droi" tween="true" startValue="0" endValue="1" duration="15" ease="Quad.InOut"/>
     <item time="0" type="Alpha" target="n24_droi" value="0"/>
     <item time="0" type="Alpha" target="n25_fter" tween="true" startValue="0" endValue="1" duration="15"/>
+    <item time="0" type="Alpha" target="n28_fter" tween="true" startValue="0" endValue="1" duration="15" ease="Quad.In"/>
     <item time="0" type="Alpha" target="n2_yjmk" tween="true" startValue="0" endValue="1" duration="15"/>
     <item time="0" type="Alpha" target="n5_yjmk" tween="true" startValue="0" endValue="1" duration="15" ease="Quad.In"/>
     <item time="0" type="Alpha" target="n6_yjmk" tween="true" startValue="0" endValue="1" duration="15" ease="Quad.In"/>

+ 9 - 9
FGUIProject/assets/LuckyBox/LuckyBoxActivityUI.xml

@@ -13,18 +13,18 @@
     <group id="n55_mbf1" name="n55" xy="416,105" size="247,44" advanced="true">
       <relation target="" sidePair="top-top"/>
     </group>
-    <component id="n46_mbf1" name="btnReward" src="mbf1taf" fileName="components/Button5.xml" xy="35,213" group="n52_mbf1">
-      <Button icon="ui://drx9d1usmbf1tai"/>
+    <component id="n47_mbf1" name="btnGiftBag" src="mbf1taf" fileName="components/Button5.xml" xy="9,504" size="151,201" group="n51_mbf1" visible="false">
+      <Button icon="ui://drx9d1ust6j1tck"/>
     </component>
-    <component id="n45_mbf1" name="btnShop" src="mbf1taf" fileName="components/Button5.xml" xy="35,328" group="n52_mbf1">
-      <Button icon="ui://drx9d1usmbf1taj"/>
+    <component id="n57_droi" name="comBagTime" src="droitan" fileName="components/ComBagTime.xml" xy="24,625" group="n51_mbf1" visible="false"/>
+    <group id="n51_mbf1" name="n51" xy="9,504" size="151,201" group="n52_mbf1" advanced="true"/>
+    <component id="n45_mbf1" name="btnShop" src="mbf1taf" fileName="components/Button5.xml" xy="9,375" group="n52_mbf1">
+      <Button icon="ui://drx9d1ust6j1tcm"/>
     </component>
-    <component id="n47_mbf1" name="btnGiftBag" src="mbf1taf" fileName="components/Button5.xml" xy="35,443" group="n51_mbf1" visible="false">
-      <Button icon="ui://drx9d1usmbf1tak"/>
+    <component id="n46_mbf1" name="btnReward" src="mbf1taf" fileName="components/Button5.xml" xy="9,246" group="n52_mbf1">
+      <Button icon="ui://drx9d1ust6j1tcl"/>
     </component>
-    <component id="n57_droi" name="comBagTime" src="droitan" fileName="components/ComBagTime.xml" xy="18,523" group="n51_mbf1" visible="false"/>
-    <group id="n51_mbf1" name="n51" xy="18,443" size="130,112" group="n52_mbf1" advanced="true"/>
-    <group id="n52_mbf1" name="n52" xy="18,213" size="130,342" advanced="true" layout="vt" lineGap="20" excludeInvisibles="true"/>
+    <group id="n52_mbf1" name="n52" xy="9,246" size="151,459" advanced="true"/>
     <image id="n56_mbf1" name="n56" src="mbf1tam" fileName="images/cj_tswz_db.png" xy="136,1497" group="n54_mbf1"/>
     <image id="n53_mbf1" name="n53" src="mbf1tam" fileName="images/cj_tswz_db.png" xy="136,1497" group="n54_mbf1"/>
     <text id="n44_mbf1" name="txtCount" xy="240,1496" pivot="0.5,0" size="600,41" group="n54_mbf1" font="ui://eg2y0ldpa0cftkz" fontSize="30" color="#fff7d4" align="center" vars="true" text="{value=15}次摘星内必得{name=沧海月明}限定部件或对应词牌"/>

+ 3 - 6
FGUIProject/assets/LuckyBox/components/Button5.xml

@@ -1,12 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="94,95" extention="Button">
+<component size="151,133" extention="Button">
   <controller name="button" pages="0,up,1,down" selected="0"/>
   <displayList>
-    <loader id="n1_vek8" name="icon" xy="0,0" size="94,95" url="ui://drx9d1usvek8v" autoSize="true"/>
-    <text id="n4_mbf1" name="title" xy="27,26" pivot="0.5,0.5" size="40,42" fontSize="30" align="center" vAlign="middle" text="">
-      <relation target="" sidePair="center-center,middle-middle"/>
-    </text>
+    <loader id="n1_vek8" name="icon" xy="0,-69" size="151,201" url="ui://drx9d1ust6j1tcm" autoSize="true"/>
+    <text id="n4_mbf1" name="title" xy="55,45" pivot="0.5,0.5" size="40,42" fontSize="30" align="center" vAlign="middle" text=""/>
   </displayList>
   <Button/>
-  <relation target="n1_vek8" sidePair="width-width,height-height"/>
 </component>

BIN
FGUIProject/assets/LuckyBox/images/cj_mrth_db.png


BIN
FGUIProject/assets/LuckyBox/images/cj_zxjl_db.png


BIN
FGUIProject/assets/LuckyBox/images/cj_zxth_db.png


+ 3 - 0
FGUIProject/assets/LuckyBox/package.xml

@@ -140,6 +140,9 @@
     <image id="volstch" name="zx_lianxian_lan_shang.png" path="/imageNews/"/>
     <image id="volstci" name="zx_zhuangshi_xinggui.png" path="/imageNews/"/>
     <image id="volstcj" name="cj_wz_jhsy.png" path="/imageNews/"/>
+    <image id="t6j1tck" name="cj_mrth_db.png" path="/images/"/>
+    <image id="t6j1tcl" name="cj_zxjl_db.png" path="/images/"/>
+    <image id="t6j1tcm" name="cj_zxth_db.png" path="/images/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/LuckyBox" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 5 - 4
FGUIProject/assets/Main/StoryFightTargetScoreUI.xml

@@ -21,15 +21,16 @@
       <ProgressBar value="100" max="100"/>
     </component>
     <component id="n54_psph" name="comTargetCard" src="volsov" fileName="components/ComTargetSkillShow.xml" xy="1180,420" pivot="0.5,0.5" anchor="true" aspect="true" scale="0.3,0.3"/>
-    <component id="n55_psph" name="comDeduction" src="psphix" fileName="components/ComDeduction.xml" xy="102,500" pivot="0.5,0.5" anchor="true" scale="0,0"/>
+    <component id="n55_psph" name="comDeduction" src="psphix" fileName="components/ComDeduction.xml" xy="45,292" size="325,53"/>
   </displayList>
   <transition name="t1">
     <item time="0" type="Scale" target="n54_psph" value="0.3,0.3"/>
     <item time="0" type="XY" target="n54_psph" tween="true" startValue="1180,420" endValue="995,420" duration="6" ease="Linear"/>
-    <item time="24" type="Scale" target="n54_psph" tween="true" startValue="0.3,0.3" endValue="0,0" duration="6" ease="Linear"/>
+    <item time="48" type="Scale" target="n54_psph" tween="true" startValue="0.3,0.3" endValue="0,0" duration="6" ease="Linear"/>
   </transition>
   <transition name="t2">
-    <item time="0" type="Scale" target="n55_psph" tween="true" startValue="0,0" endValue="1,1" duration="6" ease="Linear"/>
-    <item time="24" type="Scale" target="n55_psph" tween="true" startValue="1,1" endValue="0,0" duration="6" ease="Linear"/>
+    <item time="0" type="Alpha" target="n55_psph" value="1"/>
+    <item time="0" type="Size" target="n55_psph" tween="true" startValue="0,53" endValue="325,53" duration="9" ease="Linear"/>
+    <item time="45" type="Alpha" target="n55_psph" tween="true" startValue="1" endValue="0" duration="9" ease="Linear"/>
   </transition>
 </component>

+ 3 - 3
FGUIProject/assets/Main/components/ComDeduction.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="196,196">
+<component size="325,53" overflow="hidden">
   <displayList>
-    <image id="n55_psph" name="n55" src="v3k9cf" fileName="imagesStory/zd_jineng_4.png" xy="0,0"/>
-    <text id="n56_psph" name="txtDeduction" xy="54,76" pivot="0.5,0" size="77,46" fontSize="34" align="center" text="-666"/>
+    <image id="n55_psph" name="n55" src="t6j1ox" fileName="imagesNew/zd_shanghai_db.png" xy="0,0"/>
+    <text id="n56_psph" name="txtDeduction" xy="113,2" pivot="0.5,0" size="80,49" fontSize="36" color="#fff6e3" align="center" text="-666"/>
   </displayList>
 </component>

BIN
FGUIProject/assets/Main/imagesNew/zd_shanghai_db.png


+ 1 - 0
FGUIProject/assets/Main/package.xml

@@ -645,6 +645,7 @@
     <component id="volsou" name="ComAdSelectItem.xml" path="/components/"/>
     <component id="volsov" name="ComTargetSkillShow.xml" path="/components/"/>
     <component id="t6j1ow" name="BtnModle2.xml" path="/components/"/>
+    <image id="t6j1ox" name="zd_shanghai_db.png" path="/imagesNew/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Main" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -112,7 +112,7 @@ namespace GFGGame
             await StudioSProxy.ReqStudioInfos();
             await RoleInfoSProxy.ReqPersonalInfo();
             await ActivityGlobalSProxy.GetActivityInfo();
-
+            await LuckyBoxSProxy.ReqGetLuckyBoxRotatingInfo();
 
             GameGlobal.lastLoginTime = StorageDataManager.Instance.GetStorageValue(ConstStorageId.LAST_LOGIN_TIME);
             long lastTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/ArenaViewManager.cs

@@ -75,7 +75,7 @@ namespace GFGGame
             }
             else
             {
-                RoleInfoManager.Instance.UpdateNpcHead(item.m_comTargetHead, res);
+                RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comTargetHead, res);
             }
             isWin = myScore > targetScore;
             UI_ListResultItem.ProxyEnd();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs

@@ -18,6 +18,7 @@ namespace GFGGame
         private Dictionary<int, List<LuckyBoxBonusData>> _dicShowList = new Dictionary<int, List<LuckyBoxBonusData>>();
 
         public List<int> luckyBoxIds = new List<int>();//奖池列表
+        public int RotatingId = 0;//轮换活动id。0为未开启
         public long startTime = 1668873600000;
         public long endTime = 1672156799000;
 

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Data/RoleInfoManager.cs

@@ -198,6 +198,19 @@ namespace GFGGame
             UI_ComHead.ProxyEnd();
 
         }
+        public void UpdateArenaNpcHead(GComponent component, string res)
+        {
+            UI_ComHead comHead = UI_ComHead.Proxy(component);
+            if (string.IsNullOrEmpty(res))
+            {
+                comHead.m_comHead.m_loaIcon.url = res;
+            }
+            else
+            {
+                comHead.m_comHead.m_loaIcon.url = ResPathUtil.GetHeadPath(res);
+            }
+            UI_ComHead.ProxyEnd();
+        }
         public void UpdateNpcHead(GComponent component, string res)
         {
             UI_ComHead comHead = UI_ComHead.Proxy(component);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/ShopDataManager.cs

@@ -16,7 +16,7 @@ namespace GFGGame
             _goodsDic.Clear();
         }
 
-        public void UpdateGiftData(int giftId, int num)
+        public void UpdateGoodsData(int giftId, int num)
         {
             if (!_goodsDic.ContainsKey(giftId))
             {

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_LimitChargeUI.cs

@@ -10,6 +10,7 @@ namespace UI.DailyWelfare
         public GLoader m_loaBg;
         public GButton m_btnBack;
         public GTextField m_txtTime;
+        public GGroup m_grpTime;
         public GList m_list;
         public GButton m_btnCharge;
         public const string URL = "ui://t8nwuj7iidkd14";
@@ -62,6 +63,7 @@ namespace UI.DailyWelfare
             m_loaBg = (GLoader)comp.GetChild("loaBg");
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_grpTime = (GGroup)comp.GetChild("grpTime");
             m_list = (GList)comp.GetChild("list");
             m_btnCharge = (GButton)comp.GetChild("btnCharge");
         }
@@ -70,6 +72,7 @@ namespace UI.DailyWelfare
             m_loaBg = null;
             m_btnBack = null;
             m_txtTime = null;
+            m_grpTime = null;
             m_list = null;
             m_btnCharge = null;
             if(disposeTarget && target != null)

+ 6 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckyBoxActivityUI.cs

@@ -11,10 +11,10 @@ namespace UI.LuckyBox
         public GButton m_btnBack;
         public GComponent m_valueBar;
         public GTextField m_txtTime;
-        public GButton m_btnReward;
-        public GButton m_btnShop;
         public GButton m_btnGiftBag;
         public UI_ComBagTime m_comBagTime;
+        public GButton m_btnShop;
+        public GButton m_btnReward;
         public GTextField m_txtCount;
         public const string URL = "ui://drx9d1usmbf1tad";
         public const string PACKAGE_NAME = "LuckyBox";
@@ -67,10 +67,10 @@ namespace UI.LuckyBox
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_valueBar = (GComponent)comp.GetChild("valueBar");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
-            m_btnReward = (GButton)comp.GetChild("btnReward");
-            m_btnShop = (GButton)comp.GetChild("btnShop");
             m_btnGiftBag = (GButton)comp.GetChild("btnGiftBag");
             m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime"));
+            m_btnShop = (GButton)comp.GetChild("btnShop");
+            m_btnReward = (GButton)comp.GetChild("btnReward");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
         }
         public void Dispose(bool disposeTarget = false)
@@ -80,11 +80,11 @@ namespace UI.LuckyBox
             m_btnBack = null;
             m_valueBar = null;
             m_txtTime = null;
-            m_btnReward = null;
-            m_btnShop = null;
             m_btnGiftBag = null;
             m_comBagTime.Dispose();
             m_comBagTime = null;
+            m_btnShop = null;
+            m_btnReward = null;
             m_txtCount = null;
             if(disposeTarget && target != null)
             {

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/CommonSProxy.cs

@@ -56,6 +56,7 @@ namespace GFGGame
                     FieldSProxy.ReqFieldInstanceInfos().Coroutine();
                     ArenaSproxy.ReqArenaInfos().Coroutine();
                     EnduringGiftBoxSProxy.ReqGetAllGiftBagRebateStatus().Coroutine();
+                    LuckyBoxSProxy.ReqGetLuckyBoxRotatingInfo().Coroutine();
                     PromptController.Instance.ShowFloatTextPrompt("每日次数已重置", MessageType.SUCCESS);
                 }
             }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/LuckyBoxSProxy.cs

@@ -36,6 +36,7 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
+                    LuckyBoxDataManager.Instance.RotatingId = response.RotatingId;
                     return response.RotatingId;
                 }
             }

+ 3 - 3
GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

@@ -15,7 +15,7 @@ namespace GFGGame
                 {
                     for (int i = 0; i < response.ks.Count; i++)
                     {
-                        ShopDataManager.Instance.UpdateGiftData(response.ks[i], response.vs[i]);
+                        ShopDataManager.Instance.UpdateGoodsData(response.ks[i], response.vs[i]);
                     }
                     return true;
                 }
@@ -30,7 +30,7 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    ShopDataManager.Instance.UpdateGiftData(response.BuyId, response.TotalTimes);
+                    ShopDataManager.Instance.UpdateGoodsData(response.BuyId, response.TotalTimes);
                     ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(response.BuyId);
                     ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(shopCfg.itemId);
                     if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL && shopCfg.costType == CostType.RMB)
@@ -48,7 +48,7 @@ namespace GFGGame
                     {
                         itemDatas = ItemUtil.CreateItemDataList(itemCfg.id, response.Times * shopCfg.itemNum);
                     }
-                    
+
                     EventAgent.DispatchEvent(ConstMessage.CONTINUOUS_REBATE_GIFT_SHOP_BUY, shopCfg);
                     BonusController.TryShowBonusList(itemDatas);
                     EventAgent.DispatchEvent(ConstMessage.SHOP_BUY);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaRankUpView.cs

@@ -75,7 +75,7 @@ namespace GFGGame
             }
             else
             {
-                RoleInfoManager.Instance.UpdateNpcHead(comDanSimpleInfo.m_comHead, res);
+                RoleInfoManager.Instance.UpdateArenaNpcHead(comDanSimpleInfo.m_comHead, res);
             }
 
             UI_ComDanSimpleInfo.ProxyEnd();

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaRankView.cs

@@ -232,7 +232,7 @@ namespace GFGGame
                 item.m_txtDanRank.text = "段位排名:--";
                 // item.m_loaDanIcon.url = "";
                 RoleInfoManager.Instance.UpdateLv(item.m_comLv, 0);
-                RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, "");
+                RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, "");
             }
             else
             {
@@ -249,7 +249,7 @@ namespace GFGGame
                 {
                     //上榜的机器人不一定战斗过,所以不一定有飞花令战力数据,所以机器人需要重新计算
                     item.m_txtFightScore.text = string.Format("飞花令战力:{0}", ArenaDataManager.Instance.GetAllFightScore(arenaData.FightDatas));
-                    RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
+                    RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
                 }
                 // item.m_txtFightScore.text = string.Format("飞花令战力:{0}", fightScore);
                 item.m_txtDanRank.text = string.Format("段位排名:{0}", arenaData.RankInGrade);
@@ -261,7 +261,7 @@ namespace GFGGame
                 }
                 else
                 {
-                    RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
+                    RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
                 }
             }
             item.m_btnLook.visible = _rankType != ArenaRankType.LAST_SEASON;
@@ -287,7 +287,7 @@ namespace GFGGame
                 item.m_txtDanRank.text = "--";
                 // item.m_loaDanIcon.url = "";
                 RoleInfoManager.Instance.UpdateLv(item.m_comLv, 0);
-                RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, "");
+                RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, "");
 
             }
             else
@@ -308,7 +308,7 @@ namespace GFGGame
                 {
                     //上榜的机器人不一定战斗过,所以不一定有飞花令战力数据,所以机器人需要重新计算
                     item.m_txtFightScore.text = string.Format("飞花令战力:{0}", ArenaDataManager.Instance.GetAllFightScore(arenaData.FightDatas));
-                    RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
+                    RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, arenaData.RoleInfo.headRes);
                 }
             }
             item.m_btnLook.visible = _rankType != ArenaRankType.LAST_SEASON;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaResultQuickView.cs

@@ -53,7 +53,7 @@ namespace GFGGame
             }
             else
             {
-                RoleInfoManager.Instance.UpdateNpcHead(_ui.m_comTargetHead, _targetData.RoleInfo.headRes);
+                RoleInfoManager.Instance.UpdateArenaNpcHead(_ui.m_comTargetHead, _targetData.RoleInfo.headRes);
             }
             _ui.m_list.numItems = ArenaDataManager.Instance.myScore.Count;
             ArenaViewManager.Instance.UpdateAllScoreResult(_ui.m_comResult.target, ArenaDataManager.Instance.myScore, ArenaDataManager.Instance.targetScore);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaView.cs

@@ -396,7 +396,7 @@ namespace GFGGame
             }
             else
             {
-                RoleInfoManager.Instance.UpdateNpcHead(item.m_comHead, targetData.RoleInfo.headRes);
+                RoleInfoManager.Instance.UpdateArenaNpcHead(item.m_comHead, targetData.RoleInfo.headRes);
             }
 
             item.m_txtName.text = targetData.RoleInfo.roleName;

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

@@ -68,9 +68,9 @@ namespace GFGGame
             || (ActivityDataManager.Instance.sevenDayLoginLoginId >= 7 && ActivityDataManager.Instance.sevenDayLoginBonusStatus == ConstBonusStatus.GOT));
 
             _ui.m_comList.m_btnLimitChargeAddUp.target.visible = ActivityDataManager.Instance.actLimitChargeId > 0;
+            ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
             if (ActivityDataManager.Instance.actLimitChargeId > 0)
             {
-                ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
                 _ui.m_comList.m_btnLimitChargeAddUp.m_loaIcon.url = "ui://DailyWelfare/hdbn_xslc_" + openCfg.res;
                 _ui.m_comList.m_btnLimitChargeAddUp.m_loaTitle.url = "ui://DailyWelfare/hdbn_wz_xslc_" + openCfg.res;
             }
@@ -95,9 +95,9 @@ namespace GFGGame
         {
             if (ActivityDataManager.Instance.actLimitChargeId > 0)
             {
-                ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
+                ActivityInfo activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfo(ActivityDataManager.Instance.actLimitChargeId);
                 long curTime = TimeHelper.ServerNow();
-                long endTime = TimeUtil.DateTimeToTimestamp(openCfg.endTime);
+                long endTime = activityInfo.endTime;
                 if (curTime < endTime)
                 {
                     _ui.m_comList.m_btnLimitChargeAddUp.m_txtTime.text = string.Format("剩余时间:{0}", TimeUtil.FormattingTimeTo_DDHHmm(endTime - curTime));

+ 6 - 2
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/LimitChargeView.cs

@@ -53,7 +53,11 @@ namespace GFGGame
             base.OnShown();
             _rechargeCfgs = ActivityRechargeCfgArray.Instance.GetCfgsByactivityId(ActivityDataManager.Instance.actLimitChargeId);
             UpdateView();
+
+            ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
+
             Timers.inst.Add(1, 0, UpdateTime);
+
         }
         protected override void OnHide()
         {
@@ -73,9 +77,9 @@ namespace GFGGame
         }
         private void UpdateTime(object param)
         {
-            ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
+            ActivityInfo activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfo(ActivityDataManager.Instance.actLimitChargeId);
             long curTime = TimeHelper.ServerNow();
-            long endTime = TimeUtil.DateTimeToTimestamp(openCfg.endTime);
+            long endTime = activityInfo.endTime;
             _ui.m_txtTime.text = TimeUtil.FormattingTimeTo_DDHHmm(endTime - curTime);
         }
 

+ 18 - 18
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -12,7 +12,7 @@ namespace GFGGame
     {
         private UI_LuckyBoxUI _ui;
         private ValueBarController _valueBarController;
-        private List<LuckyBoxController> _lcukyBoxCtrl = new List<LuckyBoxController>();
+        private Dictionary<int, LuckyBoxController> _lcukyBoxCtrl = new Dictionary<int, LuckyBoxController>();
 
         //private GameObject _gameObject;
         //private GoWrapper _wrapper;
@@ -43,9 +43,9 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-            for (int i = 0; i < _lcukyBoxCtrl.Count; i++)
+            foreach (int key in _lcukyBoxCtrl.Keys)
             {
-                _lcukyBoxCtrl[i].Dispose();
+                _lcukyBoxCtrl[key].Dispose();
             }
             _lcukyBoxCtrl.Clear();
             if (_dressUpObjUIXiHe != null)
@@ -104,7 +104,7 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, OnListBgScroll);
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, OnListBgScroll);
         }
-        protected override async void OnShown()
+        protected override void OnShown()
         {
             base.OnShown();
 
@@ -112,10 +112,9 @@ namespace GFGGame
             LuckyBoxDataManager.Instance.luckyBoxIds.Add(LuckyBoxDataManager.BOX_ID_2);
             LuckyBoxDataManager.Instance.luckyBoxIds.Add(LuckyBoxDataManager.BOX_ID_3);
             _activeBoxId = 0;
-            int result = await LuckyBoxSProxy.ReqGetLuckyBoxRotatingInfo();
-            if (result > 0)
+            if (LuckyBoxDataManager.Instance.RotatingId > 0)
             {
-                RotatingLuckyBoxCfg rotatingLuckyBox = RotatingLuckyBoxCfgArray.Instance.GetCfg(result);
+                RotatingLuckyBoxCfg rotatingLuckyBox = RotatingLuckyBoxCfgArray.Instance.GetCfg(LuckyBoxDataManager.Instance.RotatingId);
                 _activeBoxId = rotatingLuckyBox.luckyBoxId;
                 LuckyBoxDataManager.Instance.endTime = TimeUtil.GetTimestamp(rotatingLuckyBox.endTime);
                 LuckyBoxDataManager.Instance.luckyBoxIds.Insert(0, _activeBoxId);
@@ -173,15 +172,15 @@ namespace GFGGame
 
             UI_ComBox comBox = UI_ComBox.Proxy(obj);
             comBox.m_comModel.m_loaBg.url = ResPathUtil.GetBgImgPath(cfg.resArr[_bgIndex]);
-            if (_lcukyBoxCtrl.Count <= index)
+            if (!_lcukyBoxCtrl.ContainsKey(boxId))
             {
-                _lcukyBoxCtrl.Add(new LuckyBoxController(comBox.m_comModel.target));
-                if (_ui.m_listBg.ChildIndexToItemIndex(0) == index)
-                {
-                    _lcukyBoxCtrl[index].OnShown(boxId);
-                }
+                _lcukyBoxCtrl.Add(boxId, new LuckyBoxController(comBox.m_comModel.target));
+                // if (_ui.m_listBg.ChildIndexToItemIndex(0) == index)
+                // {
+                //     _lcukyBoxCtrl[index].OnShown(boxId);
+                // }
             }
-
+            if (_lcukyBoxCtrl.ContainsKey(boxId)) _lcukyBoxCtrl[boxId].OnShown(boxId);
             comBox.m_btnPreview.m_c1.selectedIndex = boxId;
             LuckyBoxDataManager.Instance.GetOwnedCount(boxId, out int count, out int totalCount);
             comBox.m_txtOwned.SetVar("v1", "" + count).FlushVars();
@@ -262,12 +261,13 @@ namespace GFGGame
 
         private void OnListBgScroll()
         {
-            _lcukyBoxCtrl[_curIndex].OnHide();
+            _lcukyBoxCtrl[LuckyBoxDataManager.Instance.currentBoxId].OnHide();
             _curIndex = _ui.m_listBg.ChildIndexToItemIndex(0);
             LuckyBoxDataManager.Instance.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[_curIndex];
+
             _bgIndex = 0;
             _valueBarController.UpdateCJ();
-            _lcukyBoxCtrl[_curIndex].OnShown(LuckyBoxDataManager.Instance.currentBoxId);
+            _lcukyBoxCtrl[LuckyBoxDataManager.Instance.currentBoxId].OnShown(LuckyBoxDataManager.Instance.currentBoxId);
             _ui.m_btnLeft.grayed = _curIndex <= 0;
             _ui.m_btnRight.grayed = _curIndex >= _ui.m_listBg.numItems - 1;
 
@@ -376,9 +376,9 @@ namespace GFGGame
         {
             base.OnHide();
             _valueBarController.OnHide();
-            for (int i = 0; i < _lcukyBoxCtrl.Count; i++)
+            foreach (int key in _lcukyBoxCtrl.Keys)
             {
-                _lcukyBoxCtrl[i].OnHide();
+                _lcukyBoxCtrl[key].OnHide();
             }
 
             Timers.inst.Remove(CheckTime);

+ 9 - 5
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs

@@ -47,7 +47,7 @@ namespace GFGGame
         protected override void AddEventListener()
         {
             base.AddEventListener();
-            EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateView);
+            EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpdateView);
 
         }
         protected override void OnShown()
@@ -67,7 +67,7 @@ namespace GFGGame
         protected override void RemoveEventListener()
         {
             base.RemoveEventListener();
-            EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateView);
+            EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpdateView);
         }
         private void OnBtnBlackRewardClick()
         {
@@ -173,15 +173,19 @@ namespace GFGGame
             ShopViewManager.Instance.UptadeItem(obj, shopCfg);
         }
 
-        private void OnClickBtnBuy(EventContext context)
+        private async void OnClickBtnBuy(EventContext context)
         {
             GObject obj = context.sender as GObject;
             int index = (int)obj.data;
             ShopCfg itemData = _shopCfgs[index];
             if (!AntiAddictionController.CheckAntiAddictionRecharge(itemData.price))
             {
-                ShopSProxy.ReqShopBuy(itemData.id, 1).Coroutine();
-                LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHANG_CHENG, 2);
+                bool result = await ShopSProxy.ReqShopBuy(itemData.id, 1);
+                if (result)
+                {
+                    UpdateView();
+                    LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.SHANG_CHENG, 2);
+                }
             }
         }
     }

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes


BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_fui.bytes


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png


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