浏览代码

竞技场添加升段对手标签

zhaoyang 2 年之前
父节点
当前提交
6c917fd6ac

+ 5 - 4
FGUIProject/assets/Arena/components/ListTargetItem.xml

@@ -2,15 +2,16 @@
 <component size="573,196">
   <displayList>
     <loader id="n45_jcej" name="loaBg" xy="0,0" size="573,196" url="ui://4lc5fhlbjcej3b" autoSize="true"/>
-    <image id="n37_jcej" name="n37" src="jcej3n" fileName="images/jzsjzs_xxxtxt.png" xy="192,80"/>
+    <image id="n37_jcej" name="n37" src="jcej3n" fileName="images/jzsjzs_xxxtxt.png" xy="192,85"/>
     <component id="n31_psph" name="comHead" src="r9ri1h" fileName="components/ComHead.xml" pkg="eg2y0ldp" xy="106,95" pivot="0.5,0.5" anchor="true" group="n42_jcej" scale="0.725,0.725"/>
     <image id="n40_jcej" name="n40" src="jcej33" fileName="images/jzsjzs_txktx.png" xy="44,38" group="n42_jcej"/>
     <component id="n43_jcej" name="comLv" src="psphq" fileName="components/ComLv.xml" pkg="eg2y0ldp" xy="124,122" group="n42_jcej"/>
     <group id="n42_jcej" name="n42" xy="-9,-20" size="230,230"/>
     <text id="n32_psph" name="txtName" xy="193,30" size="148,49" font="ui://eg2y0ldpwonotjc" fontSize="36" color="#927550" text="对手名字"/>
-    <text id="n35_psph" name="txtDanTitle" xy="193,90" size="100,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="段位名称"/>
-    <text id="n33_psph" name="txtRank" xy="352,90" size="200,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="段位排名:10000"/>
-    <text id="n34_psph" name="txtFightScore" xy="192,125" size="224,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="竞技场战力:10000"/>
     <component id="n44_jcej" name="btnLook" src="jcej2w" fileName="components/BtnLook.xml" xy="124,30" size="41,41" aspect="true"/>
+    <text id="n35_psph" name="txtDanTitle" xy="193,96" size="100,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="段位名称"/>
+    <text id="n33_psph" name="txtRank" xy="352,96" size="200,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="段位排名:10000"/>
+    <text id="n34_psph" name="txtFightScore" xy="192,131" size="224,34" font="ui://eg2y0ldpwonotjc" fontSize="24" color="#9b7c56" text="竞技场战力:10000"/>
+    <image id="n46_u2u3" name="imgUpDan" src="u2u353" fileName="images/jjsy_jjjj.png" xy="519,15"/>
   </displayList>
 </component>

二进制
FGUIProject/assets/Arena/images/jjsy_jjjj.png


+ 1 - 0
FGUIProject/assets/Arena/package.xml

@@ -165,6 +165,7 @@
     <image id="v4614z" name="tz_yuexiazy.png" path="/components/"/>
     <component id="u10a51" name="BtnTab11.xml" path="/components/"/>
     <component id="u10a52" name="BtnTab22.xml" path="/components/"/>
+    <image id="u2u353" name="jjsy_jjjj.png" path="/images/"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\Arena" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 6 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Arena/UI_ListTargetItem.cs

@@ -11,10 +11,11 @@ namespace UI.Arena
         public GComponent m_comHead;
         public GComponent m_comLv;
         public GTextField m_txtName;
+        public GButton m_btnLook;
         public GTextField m_txtDanTitle;
         public GTextField m_txtRank;
         public GTextField m_txtFightScore;
-        public GButton m_btnLook;
+        public GImage m_imgUpDan;
         public const string URL = "ui://4lc5fhlbpsph1m";
         public const string PACKAGE_NAME = "Arena";
         public const string RES_NAME = "ListTargetItem";
@@ -66,10 +67,11 @@ namespace UI.Arena
             m_comHead = (GComponent)comp.GetChild("comHead");
             m_comLv = (GComponent)comp.GetChild("comLv");
             m_txtName = (GTextField)comp.GetChild("txtName");
+            m_btnLook = (GButton)comp.GetChild("btnLook");
             m_txtDanTitle = (GTextField)comp.GetChild("txtDanTitle");
             m_txtRank = (GTextField)comp.GetChild("txtRank");
             m_txtFightScore = (GTextField)comp.GetChild("txtFightScore");
-            m_btnLook = (GButton)comp.GetChild("btnLook");
+            m_imgUpDan = (GImage)comp.GetChild("imgUpDan");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -77,10 +79,11 @@ namespace UI.Arena
             m_comHead = null;
             m_comLv = null;
             m_txtName = null;
+            m_btnLook = null;
             m_txtDanTitle = null;
             m_txtRank = null;
             m_txtFightScore = null;
-            m_btnLook = null;
+            m_imgUpDan = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaView.cs

@@ -418,7 +418,7 @@ namespace GFGGame
             long fightScore = _dataManager.GetAllFightScore(targetData.FightDatas);
             item.m_txtFightScore.text = string.Format("竞技场战力:{0}", fightScore);
             item.m_txtRank.text = string.Format("段位排名:{0}", targetData.RankInGrade);
-
+            item.m_imgUpDan.visible = targetData.Grade > ArenaDataManager.Instance.Grade;
             if (item.m_loaBg.data == null)
             {
                 item.m_loaBg.onClick.Add(OnSelectRoleClick);

二进制
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0.png


二进制
GameClient/Assets/ResIn/UI/Arena/Arena_fui.bytes