Explorar el Código

开服活动剧情关卡补充

huangxiaoyue hace 1 año
padre
commit
31e6fc950f

+ 0 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/OpenServerActivity/UI_OpenServerStoryUI.cs

@@ -8,7 +8,6 @@ namespace UI.OpenServerActivity
     {
         public GComponent target;
         public GLoader m_loaBg;
-        public GComponent m_valueBar;
         public GButton m_btnBack;
         public GList m_list;
         public const string URL = "ui://b8ha2mnspll2g";
@@ -59,14 +58,12 @@ namespace UI.OpenServerActivity
         private void Init(GComponent comp)
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
-            m_valueBar = (GComponent)comp.GetChild("valueBar");
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_list = (GList)comp.GetChild("list");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
-            m_valueBar = null;
             m_btnBack = null;
             m_list = null;
             if(disposeTarget && target != null)

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/OpenServerActivity/UI_StoryItem.cs

@@ -10,6 +10,8 @@ namespace UI.OpenServerActivity
         public Controller m_storyImageType;
         public Controller m_posType;
         public GTextField m_txtTitle;
+        public GTextField m_txtNumber;
+        public GTextField m_txtNotOpenTitle;
         public const string URL = "ui://b8ha2mnsebioi";
         public const string PACKAGE_NAME = "OpenServerActivity";
         public const string RES_NAME = "StoryItem";
@@ -60,12 +62,16 @@ namespace UI.OpenServerActivity
             m_storyImageType = comp.GetController("storyImageType");
             m_posType = comp.GetController("posType");
             m_txtTitle = (GTextField)comp.GetChild("txtTitle");
+            m_txtNumber = (GTextField)comp.GetChild("txtNumber");
+            m_txtNotOpenTitle = (GTextField)comp.GetChild("txtNotOpenTitle");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_storyImageType = null;
             m_posType = null;
             m_txtTitle = null;
+            m_txtNumber = null;
+            m_txtNotOpenTitle = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 5 - 4
GameClient/Assets/Game/HotUpdate/Views/OpenServerActivity/OpenServerStoryView.cs

@@ -80,17 +80,18 @@ namespace GFGGame
             UI_StoryItem item = UI_StoryItem.Proxy(obj);
 
             var activityStoryCfg = ActivityStoryCfgArray.Instance.GetCfg(_activityCfg.params4Arr[index]);
+            var storyLevelCfg = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(activityStoryCfg.type, activityStoryCfg.subType, _activityCfg.params4Arr[index]);
+            _storyLevelCfgs.Add(index, storyLevelCfg);
 
             item.m_posType.selectedIndex = index % 2;
+            item.m_txtTitle.text = activityStoryCfg.name;
+            item.m_txtNumber.text = "0" + (index + 1);
 
             if (index > 0 && !InstanceZonesDataManager.CheckLevelPass(_storyLevelCfgs[index - 1][0].id))
                 item.m_storyImageType.selectedIndex = 0;
             else
                 item.m_storyImageType.selectedIndex = index+1;
-
-            var storyLevelCfg = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(activityStoryCfg.type, activityStoryCfg.subType, _activityCfg.params4Arr[index]);
-            _storyLevelCfgs.Add(index, storyLevelCfg);
-
+         
             if (item.target.data == null)
                 item.target.onClick.Add(OnClickBtnPlay);
 

BIN
GameClient/Assets/ResIn/UI/OpenServerActivity/OpenServerActivity_fui.bytes