Răsfoiți Sursa

个人信息

zhaoyang 2 ani în urmă
părinte
comite
9e90137fb1

+ 1 - 1
FGUIProject/assets/RoleInfo/RoleInfoUI.xml

@@ -32,7 +32,7 @@
       <relation target="" sidePair="height-height"/>
     </image>
     <image id="n43_r9ri" name="n43" src="r9ri18" fileName="images/grxx_grxcxc.png" xy="327,640" group="n49_r9ri"/>
-    <list id="n47_r9ri" name="list" xy="44,791" size="994,974" group="n49_r9ri" layout="flow_hz" overflow="scroll" lineGap="42" colGap="28" defaultItem="ui://374k3dwvr9ri1m" autoClearItems="true">
+    <list id="n47_r9ri" name="list" xy="43,791" size="994,974" group="n49_r9ri" layout="flow_hz" overflow="scroll" lineGap="58" colGap="51" defaultItem="ui://374k3dwvr9ri1m" align="center" autoClearItems="true">
       <relation target="" sidePair="bottomext-bottom"/>
       <item/>
       <item/>

+ 4 - 2
FGUIProject/assets/RoleInfo/components/ComPhoto.xml

@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="482,432" overflow="hidden">
+<component size="440,580" overflow="hidden">
   <displayList>
-    <loader id="n49_r9ri" name="loaPhoto" xy="0,-63" pivot="0.5,0.5" size="482,795" url="ui://374k3dwvr9ri1n" align="center" vAlign="middle" fill="scaleNoBorder"/>
+    <loader id="n49_r9ri" name="loaPhoto" xy="0,-44" pivot="0.5,0.5" size="440,814" url="ui://374k3dwvr9ri1n" align="center" vAlign="middle" fill="scaleNoBorder">
+      <relation target="" sidePair="width-width"/>
+    </loader>
   </displayList>
 </component>

+ 2 - 2
FGUIProject/assets/RoleInfo/components/ListPhotoItem.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="482,596">
+<component size="448,590">
   <displayList>
     <image id="n48_r9ri" name="n48" src="r9ri15" fileName="images/grxx_zyjiah.png" xy="0,0"/>
-    <component id="n49_r9ri" name="comPhoto" src="r9ri1o" fileName="ComPhoto.xml" xy="5,5" size="472,586"/>
+    <component id="n49_r9ri" name="comPhoto" src="r9ri1o" fileName="components/ComPhoto.xml" xy="2,2" size="444,586"/>
   </displayList>
 </component>

BIN
FGUIProject/assets/RoleInfo/images/grxx_zyjiah.png


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

@@ -111,6 +111,7 @@ namespace GFGGame
             await ActivitySProxy.ReqDailyLoginInfos();
             await RechargeSProxy.ReqRequestGiftBagInfo();
             await StudioSProxy.ReqStudioInfos();
+            await RoleInfoSProxy.ReqPersonalInfo();
 
             GameGlobal.lastLoginTime = StorageDataManager.Instance.GetStorageValue(ConstStorageId.LAST_LOGIN_TIME);
             long lastTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
@@ -241,7 +242,6 @@ namespace GFGGame
             NoticeSProxy.ReqSystemNoticeList().Coroutine();
             MailSProxy.ReqMailCount().Coroutine();
             FriendSProxy.ReqAllFriendInfos().Coroutine();
-            RoleInfoSProxy.ReqPersonalInfo().Coroutine();
             PoemPhotoSProxy.ReqAllPhotoInfos().Coroutine();
             TravelSProxy.ReqTravelInfo().Coroutine();
             TravelSProxy.ReqTravelGuideInfo().Coroutine();

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

@@ -52,6 +52,7 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_NAME, UpdateRoleName);
             EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
             EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
+            EventAgent.AddEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateList);
 
         }
         protected override void OnShown()
@@ -71,8 +72,8 @@ namespace GFGGame
 
             _ui.m_txtSlogan.text = RoleDataManager.slogan;
             _ui.m_btnFieldGuide.title = string.Format("套装收集度:{0}%", RoleInfoManager.Instance.GetGuideProgress());
-            _ui.m_list.numItems = RoleDataManager.photoDatas.Count;
             UpdateHead();
+            UpdateList();
             UpdateRedDot();
         }
 
@@ -101,6 +102,10 @@ namespace GFGGame
         {
             RoleInfoManager.Instance.UpdateHead(_ui.m_comHead, RoleDataManager.headId, RoleDataManager.headBorderId);
         }
+        private void UpdateList()
+        {
+            _ui.m_list.numItems = RoleDataManager.photoDatas.Count;
+        }
         private void RenderListItem(int index, GObject obj)
         {
             long pictureId = RoleDataManager.photoDatas[index];

BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes