zhangyuqian 11 сар өмнө
parent
commit
00c0af3a85

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

@@ -10,6 +10,7 @@ namespace UI.MatchingCompetition
         public GLoader m_bg;
         public GTextField m_titleText;
         public GList m_worksList;
+        public GTextField m_descText;
         public GButton m_BtnBack;
         public const string URL = "ui://ri3cveycp3ft1n";
         public const string PACKAGE_NAME = "MatchingCompetition";
@@ -61,6 +62,7 @@ namespace UI.MatchingCompetition
             m_bg = (GLoader)comp.GetChild("bg");
             m_titleText = (GTextField)comp.GetChild("titleText");
             m_worksList = (GList)comp.GetChild("worksList");
+            m_descText = (GTextField)comp.GetChild("descText");
             m_BtnBack = (GButton)comp.GetChild("BtnBack");
         }
         public void Dispose(bool disposeTarget = false)
@@ -68,6 +70,7 @@ namespace UI.MatchingCompetition
             m_bg = null;
             m_titleText = null;
             m_worksList = null;
+            m_descText = null;
             m_BtnBack = null;
             if(disposeTarget && target != null)
             {

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/poem/UI_PoemPhotoUI.cs

@@ -23,6 +23,7 @@ namespace UI.Poem
         public GTextField m_txtCount;
         public GButton m_btnChooseAll;
         public GButton m_btnRule;
+        public GTextField m_descText;
         public const string URL = "ui://iyz778gkv4825";
         public const string PACKAGE_NAME = "Poem";
         public const string RES_NAME = "PoemPhotoUI";
@@ -86,6 +87,7 @@ namespace UI.Poem
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_btnChooseAll = (GButton)comp.GetChild("btnChooseAll");
             m_btnRule = (GButton)comp.GetChild("btnRule");
+            m_descText = (GTextField)comp.GetChild("descText");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -105,6 +107,7 @@ namespace UI.Poem
             m_txtCount = null;
             m_btnChooseAll = null;
             m_btnRule = null;
+            m_descText = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/MatchingCompetition/MatchingCompetitionWorksView.cs

@@ -57,6 +57,14 @@ namespace GFGGame
         }
         private void UpdateView()
         {
+            if(MatchingCompetitionDataManager.Instance._BeforeWorksList.Count == 0)
+            {
+                _ui.m_descText.visible = true;
+            }
+            else
+            {
+                _ui.m_descText.visible = false;
+            }
             _ui.m_worksList.numItems = MatchingCompetitionDataManager.Instance._BeforeWorksList.Count;
         }
         private void RenderRankList(int index, GObject obj)

+ 10 - 2
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemPhotoView.cs

@@ -165,7 +165,7 @@ namespace GFGGame
             if (_ui.m_c1.selectedIndex == 0)
             {
                 _ui.m_listTravel.numItems = 0;
-
+                _ui.m_descText.visible = false;
                 _photoInfos = PoemPhotoDataManager.Instance.PersonalPhotoInfos;
                 _sourceType = (int)PictureSourceType.PersonalAlbum;
                 _ui.m_list.numItems = _photoInfos.Count;
@@ -174,7 +174,7 @@ namespace GFGGame
             else if(_ui.m_c1.selectedIndex == 1)
             {
                 _ui.m_list.numItems = 0;
-
+                _ui.m_descText.visible = false;
                 _photoInfos = PoemPhotoDataManager.Instance.WsqsPhotoInfos;
                 _sourceType = (int)PictureSourceType.WanShuiQianShan;
                 _ui.m_listTravel.numItems = _photoInfos.Count;
@@ -188,6 +188,14 @@ namespace GFGGame
                 _photoInfos = MatchingCompetitionDataManager.Instance.MatchingPhotoInfos;
                 _sourceType = 2;
                 _ui.m_listCompetion.numItems = _photoInfos.Count;
+                if (_photoInfos.Count == 0)
+                {
+                    _ui.m_descText.visible = true;
+                }
+                else
+                {
+                    _ui.m_descText.visible = false;
+                }
                 _ui.m_txtCount.text = "";
 
                 _ui.m_btnDelete.visible = false;

BIN
GameClient/Assets/ResIn/UI/MatchingCompetition/MatchingCompetition_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Poem/Poem_fui.bytes