zhaoyang 2 жил өмнө
parent
commit
7f75cbd927

+ 7 - 5
FGUIProject/assets/RoleInfo/ChangeNameUI.xml

@@ -4,13 +4,15 @@
     <image id="n4_xt5s" name="bg" src="r9riw" fileName="images/xgnc_dik_1.png" xy="0,0"/>
     <image id="n11_hpgr" name="n11" src="r9riv" fileName="images/xgnc_btkuang.png" xy="282,83"/>
     <text id="n12_r9ri" name="n12" xy="387,87" size="186,61" font="ui://eg2y0ldpwonotja" fontSize="46" color="#a98151" text="修改昵称"/>
-    <image id="n13_r9ri" name="n13" src="r9rix" fileName="images/xgnc_dik_2.png" xy="99,238"/>
-    <text id="n10_xt5s" name="inputName" xy="128,248" size="526,56" fontSize="38" color="#ac8450" autoSize="none" text="" input="true" prompt="[color=#C3B4A6]请输入新角色名称[/color]" maxLength="7"/>
-    <component id="n14_r9ri" name="btnDice" src="r9ri1p" fileName="components/Button5.xml" xy="678,234"/>
-    <text id="n15_r9ri" name="txtNeed" xy="357,422" size="191,44" fontSize="32" color="#b99f7b" text="改名卡:0/1"/>
-    <loader id="n16_r9ri" name="loaIcon" xy="561,414" size="60,60" url="ui://eg2y0ldpkztethq" autoSize="true"/>
+    <image id="n13_r9ri" name="n13" src="r9rix" fileName="images/xgnc_dik_2.png" xy="200,238"/>
+    <text id="n10_xt5s" name="inputName" xy="217,248" size="526,56" fontSize="38" color="#ac8450" autoSize="none" text="" input="true" prompt="[color=#C3B4A6]请输入新角色名称[/color]" maxLength="7"/>
     <component id="n5_xt5s" name="btnSure" src="r9ritjq" fileName="components/Button19.xml" pkg="eg2y0ldp" xy="338,490">
       <Button title="确定" titleColor="#ffffff" titleFontSize="42"/>
     </component>
+    <text id="n15_r9ri" name="txtNeed" xy="357,422" size="191,44" group="n17_v95q" fontSize="32" color="#b99f7b" text="改名卡:0/1"/>
+    <loader id="n16_r9ri" name="loaIcon" xy="561,411" size="60,60" group="n17_v95q" url="ui://eg2y0ldpkztethq" autoSize="true"/>
+    <group id="n17_v95q" name="n17" xy="357,411" size="264,60" advanced="true" layout="hz" colGap="13" excludeInvisibles="true">
+      <relation target="" sidePair="center-center"/>
+    </group>
   </displayList>
 </component>

+ 1 - 1
FGUIProject/assets/RoleInfo/components/ComPhoto.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="482,432" overflow="hidden">
   <displayList>
-    <loader id="n49_r9ri" name="loaPhoto" xy="0,4" pivot="0.5,0.5" size="482,593" url="ui://374k3dwvr9ri1n" align="center" vAlign="middle" fill="scaleNoBorder"/>
+    <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"/>
   </displayList>
 </component>

+ 3 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ChangeNameUI.cs

@@ -9,10 +9,9 @@ namespace UI.RoleInfo
         public GComponent target;
         public GImage m_bg;
         public GTextInput m_inputName;
-        public GButton m_btnDice;
+        public GButton m_btnSure;
         public GTextField m_txtNeed;
         public GLoader m_loaIcon;
-        public GButton m_btnSure;
         public const string URL = "ui://374k3dwvnjmnfz";
         public const string PACKAGE_NAME = "RoleInfo";
         public const string RES_NAME = "ChangeNameUI";
@@ -62,19 +61,17 @@ namespace UI.RoleInfo
         {
             m_bg = (GImage)comp.GetChild("bg");
             m_inputName = (GTextInput)comp.GetChild("inputName");
-            m_btnDice = (GButton)comp.GetChild("btnDice");
+            m_btnSure = (GButton)comp.GetChild("btnSure");
             m_txtNeed = (GTextField)comp.GetChild("txtNeed");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
-            m_btnSure = (GButton)comp.GetChild("btnSure");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_bg = null;
             m_inputName = null;
-            m_btnDice = null;
+            m_btnSure = null;
             m_txtNeed = null;
             m_loaIcon = null;
-            m_btnSure = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -28,7 +28,7 @@ namespace GFGGame
             this.modal = true;
 
             _ui.m_btnSure.onClick.Add(OnClickBtnSureAsync);
-            _ui.m_btnDice.onClick.Add(RandomRoleName);
+            // _ui.m_btnDice.onClick.Add(RandomRoleName);
 
         }
 

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

@@ -80,7 +80,10 @@ namespace GFGGame
             {
                 if (_showPictureId == 0)//添加:原来未展示图片
                 {
-                    RoleDataManager.photoDatas[_showIndex] = selectPictureId;
+                    if (RoleDataManager.photoDatas.IndexOf(selectPictureId) < 0)//选中的图片未被选中
+                    {
+                        RoleDataManager.photoDatas[_showIndex] = selectPictureId;
+                    }
                 }
                 else//原来有展示图片
                 {

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


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