浏览代码

茶话会领取奖励

huangxiaoyue 1 年之前
父节点
当前提交
694e00c671
共有 21 个文件被更改,包括 198 次插入0 次删除
  1. 18 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueTeaPartyRewardUI.cs
  2. 80 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LinessRewardProcessItemBt.cs
  3. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LinessRewardProcessItemBt.cs.meta
  4. 89 0
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyRewardView.cs
  5. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0!a.png
  6. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0.png
  7. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_1!a.png
  8. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_1.png
  9. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_2!a.png
  10. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_2.png
  11. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_3!a.png
  12. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_3.png
  13. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_4!a.png
  14. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_4.png
  15. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_5!a.png
  16. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_5.png
  17. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_6!a.png
  18. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_6.png
  19. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_7!a.png
  20. 二进制
      GameClient/Assets/ResIn/UI/League/League_atlas0_7.png
  21. 二进制
      GameClient/Assets/ResIn/UI/League/League_fui.bytes

+ 18 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueTeaPartyRewardUI.cs

@@ -10,6 +10,12 @@ namespace UI.League
         public GImage m_bg;
         public GImage m_bg;
         public GGraph m_holderLeftTop;
         public GGraph m_holderLeftTop;
         public GGraph m_holderRightDowm;
         public GGraph m_holderRightDowm;
+        public GProgressBar m_barPerson;
+        public GProgressBar m_barGroups;
+        public GLoader m_EndIndex;
+        public GLoader m_StartIndex;
+        public GLoader m_EndLeagueIndex;
+        public GLoader m_StartLeagueIndex;
         public const string URL = "ui://tw70qm9dic4otpz";
         public const string URL = "ui://tw70qm9dic4otpz";
         public const string PACKAGE_NAME = "League";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "LeagueTeaPartyRewardUI";
         public const string RES_NAME = "LeagueTeaPartyRewardUI";
@@ -60,12 +66,24 @@ namespace UI.League
             m_bg = (GImage)comp.GetChild("bg");
             m_bg = (GImage)comp.GetChild("bg");
             m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
             m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
             m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
             m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
+            m_barPerson = (GProgressBar)comp.GetChild("barPerson");
+            m_barGroups = (GProgressBar)comp.GetChild("barGroups");
+            m_EndIndex = (GLoader)comp.GetChild("EndIndex");
+            m_StartIndex = (GLoader)comp.GetChild("StartIndex");
+            m_EndLeagueIndex = (GLoader)comp.GetChild("EndLeagueIndex");
+            m_StartLeagueIndex = (GLoader)comp.GetChild("StartLeagueIndex");
         }
         }
         public void Dispose(bool disposeTarget = false)
         public void Dispose(bool disposeTarget = false)
         {
         {
             m_bg = null;
             m_bg = null;
             m_holderLeftTop = null;
             m_holderLeftTop = null;
             m_holderRightDowm = null;
             m_holderRightDowm = null;
+            m_barPerson = null;
+            m_barGroups = null;
+            m_EndIndex = null;
+            m_StartIndex = null;
+            m_EndLeagueIndex = null;
+            m_StartLeagueIndex = null;
             if(disposeTarget && target != null)
             if(disposeTarget && target != null)
             {
             {
                 target.RemoveFromParent();
                 target.RemoveFromParent();

+ 80 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LinessRewardProcessItemBt.cs

@@ -0,0 +1,80 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.League
+{
+    public partial class UI_LinessRewardProcessItemBt
+    {
+        public GButton target;
+        public Controller m_c1;
+        public GLoader m_loaIcon;
+        public GTextField m_Score;
+        public GTextField m_Num;
+        public const string URL = "ui://tw70qm9dwd7qtqj";
+        public const string PACKAGE_NAME = "League";
+        public const string RES_NAME = "LinessRewardProcessItemBt";
+        private static UI_LinessRewardProcessItemBt _proxy;
+
+        public static UI_LinessRewardProcessItemBt Create(GObject gObject = null)
+        {
+            var ui = new UI_LinessRewardProcessItemBt();
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_LinessRewardProcessItemBt Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_LinessRewardProcessItemBt();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_c1 = comp.GetController("c1");
+            m_loaIcon = (GLoader)comp.GetChild("loaIcon");
+            m_Score = (GTextField)comp.GetChild("Score");
+            m_Num = (GTextField)comp.GetChild("Num");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_c1 = null;
+            m_loaIcon = null;
+            m_Score = null;
+            m_Num = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LinessRewardProcessItemBt.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e322e400a1b794247ad301aaf47c6b91
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 89 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyRewardView.cs

@@ -11,6 +11,10 @@ namespace GFGGame
     {
     {
         private UI_LeagueTeaPartyRewardUI _ui;
         private UI_LeagueTeaPartyRewardUI _ui;
 
 
+        private List<GComponent> componentsPerson = new List<GComponent>();
+        private List<GComponent> componentsLeague = new List<GComponent>();
+
+
         public override void Dispose()
         public override void Dispose()
         {
         {
             if (_ui != null)
             if (_ui != null)
@@ -39,6 +43,8 @@ namespace GFGGame
         protected override void OnShown()
         protected override void OnShown()
         {
         {
             base.OnShown();
             base.OnShown();
+            SetPersonScoreList();
+            SetLeagueScoreList();
         }
         }
         protected override void OnHide()
         protected override void OnHide()
         {
         {
@@ -54,5 +60,88 @@ namespace GFGGame
         {
         {
             ViewManager.GoBackFrom(typeof(LeagueView).FullName);
             ViewManager.GoBackFrom(typeof(LeagueView).FullName);
         }
         }
+
+
+        //角色评选奖励
+        private void SetPersonScoreList()
+        {
+            var teapartyRewardRoleCfg = TeapartyRewardRoleCfgArray.Instance.dataArray;
+            var maxCfg = teapartyRewardRoleCfg[teapartyRewardRoleCfg.Length - 1];
+            var maxCfgID = maxCfg.id;
+            var maxScore = maxCfg.targetScore;
+            var pos = _ui.m_StartIndex.position;
+            var endX = _ui.m_EndIndex.position.x;
+            _ui.m_barPerson.max = maxScore;
+            //循环设置UI
+            foreach (var cfg in teapartyRewardRoleCfg)
+            {
+                var cfgScore = cfg.targetScore;
+                var item = UI_LinessRewardProcessItemBt.Create();
+                var target = item.target;
+                componentsPerson.Add(target);
+                _ui.target.AddChild(target);
+                 //根据 maxScore  cfgScore pos.y endY 设置target 位置 x,z不变,y根据比例设置 
+                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.stageRewardArr;
+                var itemCfg = ItemCfgArray.Instance.GetCfg(cfgBonusArr[0][0]);
+                item.m_loaIcon.url = string.IsNullOrEmpty(itemCfg.res) ? "" : ResPathUtil.GetIconPath(itemCfg);
+                item.m_Num.text = cfgBonusArr[0][1].ToString();
+                //item.m_c1.selectedIndex = cfg.id == maxCfgID ? 1 : 0;
+                //item.target.data = cfg;
+                //item.target.onClick.Add(OnClickReward);
+            }
+            FreshGetStatus();
+        }
+
+        private void FreshGetStatus()
+        {
+            componentsPerson.ForEach(com =>
+            {
+                //var item = UI_ExpProcessItem.Proxy(com);
+                //var cfg = (Activity7DaysCfg)item.target.data;
+                //var cfgID = cfg.id;
+                //var state = ActivityDay7DataManager.Instance.GetActivityDay7RewardState(cfgID);
+                //item.m_c2.selectedIndex = state ? 1 : 0;
+                //RedDotController.Instance.SetComRedDot(item.target,
+                //    ActivityDay7DataManager.Instance.CheckActivityDay7RewardCanGet(cfgID), "", -90);
+                //UI_ExpProcessItem.ProxyEnd();
+            });
+        }
+
+        //雅集评选奖励
+        private void SetLeagueScoreList()
+        {
+            var teapartyRewardLeagueCfgs = TeapartyRewardLeagueCfgArray.Instance.GetCfgsByid(1);  //LeagueDataManager.Instance.TeaPartyId
+            var maxCfg = teapartyRewardLeagueCfgs[teapartyRewardLeagueCfgs.Count - 1];
+            var maxCfgID = maxCfg.id;
+            var maxScore = maxCfg.targetScore;
+            var pos = _ui.m_StartLeagueIndex.position;
+            var endX = _ui.m_EndLeagueIndex.position.x;
+            _ui.m_barPerson.max = maxScore;
+            //循环设置UI
+            foreach (var cfg in teapartyRewardLeagueCfgs)
+            {
+                var cfgScore = cfg.targetScore;
+                var item = UI_LinessRewardProcessItemBt.Create();
+                var target = item.target;
+                componentsLeague.Add(target);
+                _ui.target.AddChild(target);
+                //根据 maxScore  cfgScore pos.y endY 设置target 位置 x,z不变,y根据比例设置 
+                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.stageRewardArr;
+                var itemCfg = ItemCfgArray.Instance.GetCfg(cfgBonusArr[0][0]);
+                item.m_loaIcon.url = string.IsNullOrEmpty(itemCfg.res) ? "" : ResPathUtil.GetIconPath(itemCfg);
+                item.m_Num.text = cfgBonusArr[0][1].ToString();
+                //item.m_c1.selectedIndex = cfg.id == maxCfgID ? 1 : 0;
+                //item.target.data = cfg;
+                //item.target.onClick.Add(OnClickReward);
+            }
+            FreshGetStatus();
+        }
+
     }
     }
 }
 }

二进制
GameClient/Assets/ResIn/UI/League/League_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_1!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_2!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_2.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_3!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_3.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_4!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_4.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_5!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_5.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_6!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_6.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_7!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0_7.png


二进制
GameClient/Assets/ResIn/UI/League/League_fui.bytes