Browse Source

修改套装图鉴的跳转
更新图鉴图片

leiyasi 1 year ago
parent
commit
7ea4bb7af2

+ 2 - 2
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_SuitStoryItem.cs

@@ -7,7 +7,7 @@ namespace UI.FieldGuide
     public partial class UI_SuitStoryItem
     {
         public GComponent target;
-        public GImage m_icon;
+        public GLoader m_icon;
         public GTextField m_title;
         public GTextField m_progressNum;
         public Transition m_In;
@@ -58,7 +58,7 @@ namespace UI.FieldGuide
 
         private void Init(GComponent comp)
         {
-            m_icon = (GImage)comp.GetChild("icon");
+            m_icon = (GLoader)comp.GetChild("icon");
             m_title = (GTextField)comp.GetChild("title");
             m_progressNum = (GTextField)comp.GetChild("progressNum");
             m_In = comp.GetTransition("In");

+ 11 - 3
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs

@@ -13,6 +13,7 @@ namespace GFGGame
         private UI_SuitGuideUI _ui;
         private Dictionary<int, List<int>> _menuTypeAllDataDic;
         private List<UI_SuitTypeItem> _suitTypeItems;
+        private bool _needRefresh;
 
         public override void Dispose()
         {
@@ -41,6 +42,7 @@ namespace GFGGame
             _ui.m_suitType2Items.onClickItem.Add(OnClickListSuitType2Item);
             _ui.m_suitTypeList.onClick.Add(OnClickListSuitType);
             InitSuitGuideType();
+            _needRefresh = true;
         }
         protected override void AddEventListener()
         {
@@ -50,8 +52,13 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
-            UpdateItemsByType(1);
-            UpdateListSuitTypeRedDots();
+            if (_needRefresh)
+            {
+                _needRefresh = false;
+                UpdateItemsByType(1);
+                UpdateListSuitTypeRedDots();
+            }
+
             Timers.inst.StartCoroutine(UpdateRedDot());
         }
 
@@ -204,9 +211,10 @@ namespace GFGGame
 
         private void OnClickBtnBack()
         {
+            _needRefresh = true;
             _ui.m_c1.SetSelectedIndex(0);
             _ui.m_suitTypeItems.target.scrollPane.ScrollTop();
-            ViewManager.GoBackFrom(typeof(SuitGuideView).FullName);
+            Hide();
         }
 
         private IEnumerator UpdateRedDot()

BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0.png


BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_fui.bytes