Bladeren bron

七日活动换ui

huangxiaoyue 1 jaar geleden
bovenliggende
commit
f4b00b44cf
29 gewijzigde bestanden met toevoegingen van 13 en 9 verwijderingen
  1. 6 3
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityDay7/UI_ActivityDay7UI.cs
  2. 5 5
      GameClient/Assets/Game/HotUpdate/Views/ActivityDay7/ActivityDay7View.cs
  3. 2 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs
  4. BIN
      GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_atlas0!a.png
  5. BIN
      GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_atlas0.png
  6. BIN
      GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_fui.bytes
  7. BIN
      GameClient/Assets/ResIn/UI/Card/Card_fui.bytes
  8. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png
  9. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png
  10. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1!a.png
  11. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png
  12. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_2!a.png
  13. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_2.png
  14. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_3!a.png
  15. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_3.png
  16. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_4!a.png
  17. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_4.png
  18. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_6!a.png
  19. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_6.png
  20. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes
  21. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0!a.png
  22. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0.png
  23. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_1!a.png
  24. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_1.png
  25. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_2!a.png
  26. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_2.png
  27. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_3!a.png
  28. BIN
      GameClient/Assets/ResIn/UI/Task/Task_atlas0_3.png
  29. BIN
      GameClient/Assets/ResIn/UI/Task/Task_fui.bytes

+ 6 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityDay7/UI_ActivityDay7UI.cs

@@ -12,11 +12,12 @@ namespace UI.ActivityDay7
         public GTextField m_TimeStr;
         public GButton m_tip;
         public GProgressBar m_ExpProcess;
-        public GTextField m_Score;
         public GList m_DayList;
         public GList m_TaskList;
         public GLoader m_EndIndex;
         public GLoader m_StartIndex;
+        public GTextField m_Score;
+        public GTextField m_txtLevel;
         public const string URL = "ui://kupdwln7nyhm1";
         public const string PACKAGE_NAME = "ActivityDay7";
         public const string RES_NAME = "ActivityDay7UI";
@@ -69,11 +70,12 @@ namespace UI.ActivityDay7
             m_TimeStr = (GTextField)comp.GetChild("TimeStr");
             m_tip = (GButton)comp.GetChild("tip");
             m_ExpProcess = (GProgressBar)comp.GetChild("ExpProcess");
-            m_Score = (GTextField)comp.GetChild("Score");
             m_DayList = (GList)comp.GetChild("DayList");
             m_TaskList = (GList)comp.GetChild("TaskList");
             m_EndIndex = (GLoader)comp.GetChild("EndIndex");
             m_StartIndex = (GLoader)comp.GetChild("StartIndex");
+            m_Score = (GTextField)comp.GetChild("Score");
+            m_txtLevel = (GTextField)comp.GetChild("txtLevel");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -82,11 +84,12 @@ namespace UI.ActivityDay7
             m_TimeStr = null;
             m_tip = null;
             m_ExpProcess = null;
-            m_Score = null;
             m_DayList = null;
             m_TaskList = null;
             m_EndIndex = null;
             m_StartIndex = null;
+            m_Score = null;
+            m_txtLevel = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/ActivityDay7/ActivityDay7View.cs

@@ -239,7 +239,7 @@ namespace GFGGame
             var maxCfgID = maxCfg.id;
             var maxScore = maxCfg.score;
             var pos = _ui.m_StartIndex.position;
-            var endY = _ui.m_EndIndex.position.y;
+            var endX = _ui.m_EndIndex.position.x;
             _ui.m_ExpProcess.max = maxScore;
             //循环设置UI
             foreach (var cfg in activity7DaysCfgs)
@@ -250,8 +250,8 @@ namespace GFGGame
                 components.Add(target);
                 _ui.target.AddChild(target);
                 // 根据 maxScore  cfgScore pos.y endY 设置target 位置 x,z不变,y根据比例设置 
-                var y = pos.y + (endY - pos.y) * cfgScore / maxScore;
-                target.SetPosition(pos.x, y, pos.z);
+                var x = pos.x + (endX - pos.x) * cfgScore / maxScore;
+                target.SetPosition(x, pos.y, pos.z);
                 item.m_Score.text = cfgScore.ToString();
                 var cfgBonusArr = cfg.bonusArr;
                 var itemCfg = ItemCfgArray.Instance.GetCfg(cfgBonusArr[0][0]);
@@ -284,8 +284,8 @@ namespace GFGGame
                 var state = ActivityDay7DataManager.Instance.GetActivityDay7RewardState(cfgID);
                 item.m_c2.selectedIndex = state ? 1 : 0;
                 RedDotController.Instance.SetComRedDot(item.target,
-                    ActivityDay7DataManager.Instance.CheckActivityDay7RewardCanGet(cfgID));
-                UI_ExpProcessItem.ProxyEnd();
+                    ActivityDay7DataManager.Instance.CheckActivityDay7RewardCanGet(cfgID),"",-90);
+                UI_ExpProcessItem.ProxyEnd();   
             });
         }
 

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -708,7 +708,8 @@ namespace GFGGame
             refDodgeStar = true;
 
             _comFosterBottom.m_btnRule.onClick.Add(RuleController.ShowRuleView);
-            _comFosterBottom.m_btnRule.data = 300015;
+            _comFosterBottom.m_btnRule.data = 300021;
+
             if (CardDataManager.isFullStar(_cardData.id, _cardData.star, false))
             {
                 _comFosterBottom.m_ctrlFullStar.selectedIndex = 1;

BIN
GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_atlas0.png


BIN
GameClient/Assets/ResIn/UI/ActivityDay7/ActivityDay7_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_3!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_3.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_4!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_4.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_6!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_6.png


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


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_3!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_3.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_fui.bytes