浏览代码

个人信息

zhaoyang 2 年之前
父节点
当前提交
ba0a345f59

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Data/VO/RoleInfoData.cs

@@ -19,6 +19,8 @@ namespace GFGGame
         public string slogan;//个性签名
         public CustomSuitData customSuitData; //当前搭配套装
         public int RoleLvl = 1; //玩家等级
+        public int RoleExp = 1; //玩家经验
+        public string SuitCollectPer = "0%"; //套装收集度
         public List<PoemPhotoData> showPhotoList = new List<PoemPhotoData>();//会返回固定四个图片信息,未展示则为null
     }
 }

+ 2 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/RoleInfoSProxy.cs

@@ -39,6 +39,8 @@ namespace GFGGame
                     OtherRoleInfoDetailData roleInfoDetail = new OtherRoleInfoDetailData();
                     roleInfoDetail.slogan = response.Signature;
                     roleInfoDetail.RoleLvl = response.RoleLvl;
+                    roleInfoDetail.RoleExp = response.Exp;
+                    roleInfoDetail.SuitCollectPer = response.SuitCollectPer;
                     for (int i = 0; i < response.PictureInfoList.Count; i++)
                     {
                         if (roleInfoDetail.showPhotoList.Count == i)

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/OtherRoleInfoView.cs

@@ -51,7 +51,7 @@ namespace GFGGame
             RoleLevelCfg roleLevelCfg = RoleLevelCfgArray.Instance.GetCfg(_roleInfo.roleLv);
             if (roleLevelCfg.exp > 0)
             {
-                _ui.m_txtExp.text = string.Format("{0}/{1}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Exp), roleLevelCfg.exp);
+                _ui.m_txtExp.text = string.Format("{0}/{1}", _roleDetailInfo.RoleExp, roleLevelCfg.exp);
             }
             else
             {
@@ -59,7 +59,7 @@ namespace GFGGame
             }
 
             _ui.m_txtSlogan.text = _roleDetailInfo.slogan;
-            _ui.m_btnFieldGuide.title = string.Format("收集度:{0}%", RoleInfoManager.Instance.GetGuideProgress());
+            _ui.m_btnFieldGuide.title = string.Format("套装收集度:{0}", _roleDetailInfo.SuitCollectPer);
             _ui.m_list.numItems = _roleDetailInfo.showPhotoList.Count;
             UpdateHead();
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs

@@ -67,7 +67,7 @@ namespace GFGGame
             }
 
             _ui.m_txtSlogan.text = RoleDataManager.slogan;
-            _ui.m_btnFieldGuide.title = string.Format("收集度:{0}%", RoleInfoManager.Instance.GetGuideProgress());
+            _ui.m_btnFieldGuide.title = string.Format("套装收集度:{0}%", RoleInfoManager.Instance.GetGuideProgress());
             _ui.m_list.numItems = RoleDataManager.photoDatas.Count;
             UpdateHead();
         }