Parcourir la source

章节增加名字长度

zhangyuqian il y a 1 an
Parent
commit
76844902c6

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComponentListChapterItem.cs

@@ -15,6 +15,7 @@ namespace UI.Main
         public GTextField m_txtChapterName2;
         public GTextField m_txtChapterName3;
         public GTextField m_txtChapterName4;
+        public GTextField m_txtChapterName5;
         public GLoader m_numBg;
         public GTextField m_txtCurProgress;
         public GTextField m_txtMaxProgress;
@@ -76,6 +77,7 @@ namespace UI.Main
             m_txtChapterName2 = (GTextField)comp.GetChild("txtChapterName2");
             m_txtChapterName3 = (GTextField)comp.GetChild("txtChapterName3");
             m_txtChapterName4 = (GTextField)comp.GetChild("txtChapterName4");
+            m_txtChapterName5 = (GTextField)comp.GetChild("txtChapterName5");
             m_numBg = (GLoader)comp.GetChild("numBg");
             m_txtCurProgress = (GTextField)comp.GetChild("txtCurProgress");
             m_txtMaxProgress = (GTextField)comp.GetChild("txtMaxProgress");
@@ -94,6 +96,7 @@ namespace UI.Main
             m_txtChapterName2 = null;
             m_txtChapterName3 = null;
             m_txtChapterName4 = null;
+            m_txtChapterName5 = null;
             m_numBg = null;
             m_txtCurProgress = null;
             m_txtMaxProgress = null;

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -211,6 +211,7 @@ namespace GFGGame
                 listItem.m_content.m_txtChapterName2.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
                 listItem.m_content.m_txtChapterName3.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
                 listItem.m_content.m_txtChapterName4.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
+                listItem.m_content.m_txtChapterName5.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
                 listItem.m_content.m_txtChapter.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
                 //listItem.m_content.m_txtCurProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
                 //listItem.m_content.m_txtMaxProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
@@ -225,6 +226,7 @@ namespace GFGGame
                 listItem.m_content.m_txtChapterName2.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
                 listItem.m_content.m_txtChapterName3.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
                 listItem.m_content.m_txtChapterName4.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
+                listItem.m_content.m_txtChapterName5.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
                 listItem.m_content.m_txtChapter.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
                 //listItem.m_content.m_txtCurProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f); 
                 //listItem.m_content.m_txtMaxProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f);
@@ -245,6 +247,7 @@ namespace GFGGame
             listItem.m_content.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
             listItem.m_content.m_txtChapterName3.text = chapterCfg.name.Length > 3 ? chapterCfg.name[3].ToString() : "";
             listItem.m_content.m_txtChapterName4.text = chapterCfg.name.Length > 4 ? chapterCfg.name[4].ToString() : "";
+            listItem.m_content.m_txtChapterName5.text = chapterCfg.name.Length > 5 ? chapterCfg.name[5].ToString() : "";
             int order = StoryUtil.GetChapterOrder(chapterCfg.id);
             listItem.m_content.m_txtChapter.text = order < 10 ? "0" + order : order.ToString();
 

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes