瀏覽代碼

搭配赛显示修改

zhangyuqian 11 月之前
父節點
當前提交
e0db4456dc

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/MatchingCompetition/UI_Component6.cs

@@ -12,6 +12,7 @@ namespace UI.MatchingCompetition
         public GComponent m_head;
         public GTextField m_nameText;
         public GTextField m_countText;
+        public GTextField m_descText;
         public const string URL = "ui://ri3cveycp3ft1q";
         public const string PACKAGE_NAME = "MatchingCompetition";
         public const string RES_NAME = "Component6";
@@ -64,6 +65,7 @@ namespace UI.MatchingCompetition
             m_head = (GComponent)comp.GetChild("head");
             m_nameText = (GTextField)comp.GetChild("nameText");
             m_countText = (GTextField)comp.GetChild("countText");
+            m_descText = (GTextField)comp.GetChild("descText");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -72,6 +74,7 @@ namespace UI.MatchingCompetition
             m_head = null;
             m_nameText = null;
             m_countText = null;
+            m_descText = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MatchingCompetition/MatchingCompetitionWorkListView.cs

@@ -79,6 +79,7 @@ namespace GFGGame
             item.m_nameText.text = otherInfo.RoleName.ToString();
             item.m_countText.text = otherInfo.Score.ToString();
             item.m_playerImage.texture = otherdata.Ntexture;
+            item.m_descText.text = (index+1).ToString();
             if (item.target.data == null)
             {
                 item.target.onClick.Add(OnClickBtnItem);

二進制
GameClient/Assets/ResIn/UI/MatchingCompetition/MatchingCompetition_fui.bytes