Browse Source

修改bug

lzx 17 hours ago
parent
commit
6fd9e7eea3

+ 1 - 1
Assets/Art/VFX/Materials/UIMat/ui_ob_yindao_glow_add.mat

@@ -57,7 +57,7 @@ Material:
         m_Offset: {x: 0, y: 0}
     m_Ints: []
     m_Floats:
-    - _Alpha: 0.7765688
+    - _Alpha: 0.50849044
     - _AlphaCutoff: 0.5
     - _ColorMask: 15
     - _EnableExternalAlpha: 0

+ 1 - 1
Assets/Art/VFX/Materials/UIMat/ui_ob_yindao_quan.mat

@@ -57,7 +57,7 @@ Material:
         m_Offset: {x: 0, y: 0}
     m_Ints: []
     m_Floats:
-    - _Alpha: 0.59746575
+    - _Alpha: 0.21287966
     - _AlphaCutoff: 0.5
     - _ColorMask: 0
     - _EnableExternalAlpha: 0

+ 32 - 32
Assets/Res/Config/LanguageChineseConfig.json

@@ -13342,111 +13342,111 @@
     },
     {
       "ID": 4076,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4077,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4078,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4079,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4080,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4081,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4082,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4083,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4084,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4085,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4086,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4087,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4088,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4089,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4090,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4091,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4092,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4093,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4094,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4095,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4096,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4097,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4098,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4099,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4100,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4101,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4102,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4103,
@@ -13494,7 +13494,7 @@
     },
     {
       "ID": 4114,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4115,
@@ -13558,11 +13558,11 @@
     },
     {
       "ID": 4130,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4131,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4132,
@@ -13806,7 +13806,7 @@
     },
     {
       "ID": 4192,
-      "txt": ""
+      "txt": "0"
     },
     {
       "ID": 4193,
@@ -38382,7 +38382,7 @@
     },
     {
       "ID": 10336,
-      "txt": "0"
+      "txt": "返回"
     },
     {
       "ID": 10337,

+ 12 - 6
Assets/Res/Config/ShopGroupConfig.json

@@ -3,32 +3,38 @@
     {
       "ID": 1,
       "shopName": 1900,
-      "pageSortNum": 2
+      "pageSortNum": 2,
+      "isShow": true
     },
     {
       "ID": 2,
       "shopName": 1904,
-      "pageSortNum": 4
+      "pageSortNum": 4,
+      "isShow": true
     },
     {
       "ID": 3,
       "shopName": 1905,
-      "pageSortNum": 5
+      "pageSortNum": 5,
+      "isShow": true
     },
     {
       "ID": 4,
       "shopName": 10106,
-      "pageSortNum": 1
+      "pageSortNum": 1,
+      "isShow": true
     },
     {
       "ID": 5,
       "shopName": 10106,
-      "pageSortNum": 6
+      "pageSortNum": 6,
+      "isShow": false
     },
     {
       "ID": 6,
       "shopName": 10330,
-      "pageSortNum": 3
+      "pageSortNum": 3,
+      "isShow": true
     }
   ]
 }

+ 96 - 1
Assets/Res/UI/DivineSence/GongFaWidgetType2.prefab

@@ -80,6 +80,95 @@ MonoBehaviour:
     m_VerticalOverflow: 0
     m_LineSpacing: 1
   m_Text: "1\u7EA7"
+--- !u!1 &3946302300112563901
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 7
+  m_Component:
+  - component: {fileID: 8208259687597390858}
+  - component: {fileID: 4691782949268009187}
+  - component: {fileID: 5461611333477722381}
+  m_Layer: 0
+  m_HasEditorInfo: 1
+  m_Name: Icon_FabaoIcon
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 0
+--- !u!224 &8208259687597390858
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3946302300112563901}
+  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
+  m_LocalPosition: {x: 0, y: 0, z: 0}
+  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_ConstrainProportionsScale: 1
+  m_Children: []
+  m_Father: {fileID: 3138042374053727249}
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0.5, y: 0.5}
+  m_AnchorMax: {x: 0.5, y: 0.5}
+  m_AnchoredPosition: {x: 0, y: 0}
+  m_SizeDelta: {x: 60.0992, y: 60.0997}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &4691782949268009187
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3946302300112563901}
+  m_CullTransparentMesh: 1
+--- !u!114 &5461611333477722381
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 3946302300112563901}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 3c247620ca3a1fd4ab2a2f3a5b287e07, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Material: {fileID: 0}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
+  m_RaycastTarget: 1
+  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+  m_Maskable: 1
+  m_OnCullStateChanged:
+    m_PersistentCalls:
+      m_Calls: []
+  m_Sprite: {fileID: 0}
+  m_Type: 0
+  m_PreserveAspect: 0
+  m_FillCenter: 1
+  m_FillMethod: 4
+  m_FillAmount: 1
+  m_FillClockwise: 1
+  m_FillOrigin: 0
+  m_UseSpriteMesh: 0
+  m_PixelsPerUnitMultiplier: 1
+  _icon_name: icon_s3201
+  isNotLoadDeftIcon: 0
+  CurrSpriteAtlas: {fileID: 100100200, guid: 77f77eea85838ad4b8734050364b4892, type: 3}
+  packInfo:
+    packName: daoju
+    packgJsonPath: /Art/UIAssets/TextrueJson\daoju.txt
+    packgSpritePath: Assets/Res/UIAtlas/daoju.spriteatlasv2
+    lasetJsonGUID: 1d33824861d7fb9fd50c0d939197e59c
+  imageH: 100
+  useGradient: 0
+  topOrLeftColor: {r: 1, g: 1, b: 1, a: 1}
+  bottomOrRightColor: {r: 0, g: 0, b: 0, a: 1}
+  direction: 0
 --- !u!1 &6841961338208862055
 GameObject:
   m_ObjectHideFlags: 0
@@ -112,6 +201,7 @@ RectTransform:
   m_ConstrainProportionsScale: 1
   m_Children:
   - {fileID: 4458728715945139816}
+  - {fileID: 8208259687597390858}
   - {fileID: 3608208511281012576}
   m_Father: {fileID: 0}
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -151,6 +241,11 @@ MonoBehaviour:
     isAssetBundle: 0
     isList: 0
     ListCollectorDatas: []
+  - key: Icon_FabaoIcon
+    gameObject: {fileID: 5461611333477722381}
+    isAssetBundle: 0
+    isList: 0
+    ListCollectorDatas: []
   isAssetBundle: 1
 --- !u!1 &7546164237769612545
 GameObject:
@@ -170,7 +265,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 1
+  m_IsActive: 0
 --- !u!224 &4458728715945139816
 RectTransform:
   m_ObjectHideFlags: 0

+ 1 - 1
Assets/Resources/Shader/Shader Graphs_ShengShiShader.mat

@@ -66,5 +66,5 @@ Material:
     m_Colors:
     - _mainColor: {r: 0.21314356, g: 1.4060051, b: 2.1517377, a: 0}
     - _off: {r: 0.01, g: 0.01, b: 0, a: 0}
-    - _pos: {r: 0, g: -5, b: -30, a: 0}
+    - _pos: {r: -1.8000001, g: -5.3999996, b: -30, a: 0}
   m_BuildTextureStacks: []

+ 10 - 0
Assets/Scripts/GameData/ExcelConfig/ShopGroupConfig.cs

@@ -44,6 +44,16 @@ namespace Excel2Json
 #endif
 		
 
+		/// <summary>
+		///是否显示
+		/// </summary>
+#if !COMBAT_SERVER
+		public bool isShow;
+#else
+		public bool isShow{ set; get; }
+#endif
+		
+
 	}
 
 }

+ 1 - 1
Assets/Scripts/GameUI/EventManager/DialogueManager.cs

@@ -199,7 +199,7 @@ public class DialogueManager : Singleton<DialogueManager>
                 //不是一次性事件弹出boss界面
                 if (eventConfig.EventTriggerType != 2)
                 {
-                    bool relust = await BossInfoPanel.OpenPanel(dialogueConfig.optionPara1[0]);
+                    bool relust = await BossInfoPanel.OpenPanel(dialogueConfig.optionPara1[0],CurrentEventList);
                     if (relust)
                     {
                         CTask cTask = CTask.Create();

+ 75 - 32
Assets/Scripts/GameUI/UI/DivineSence/BossInfoPanel.cs

@@ -18,6 +18,7 @@ namespace Fort23.Mono
 
         private LevelbattleConfig levelbattleConfig;
         private GroupConfig groupConfig;
+
         List<BossInfoHeadWidget> BossInfoHeadWidgets = new List<BossInfoHeadWidget>();
         // private HeroModelConfig heroModelConfig;
         // private MonsterPowerUpConfig heroPowerUpConfig;
@@ -58,28 +59,50 @@ namespace Fort23.Mono
 
         public async override CTask<bool> AsyncInit(object[] uiData)
         {
-            await CustomInit((int)uiData[0], uiData[1] as CTask<bool>);
+            await CustomInit((int)uiData[0], uiData[2] as AccountFileInfo.EventList, uiData[2] as CTask<bool>);
             return await base.AsyncInit(uiData);
         }
 
 
-        public async CTask CustomInit(int levebattleId, CTask<bool> result)
+        public async CTask CustomInit(int levebattleId, AccountFileInfo.EventList eventList, CTask<bool> result)
         {
             this.result = result;
             levelbattleConfig = ConfigComponent.Instance.Get<LevelbattleConfig>(levebattleId);
             groupConfig = ConfigComponent.Instance.Get<GroupConfig>(levelbattleConfig.Group[0]);
-            foreach (var i in groupConfig.GroupMonster)
+            for (var i = 0; i < groupConfig.GroupMonster.Length; i++)
             {
-                HeroModelConfig heroModelConfig = ConfigComponent.Instance.Get<HeroModelConfig>(i);
-                MonsterPowerUpConfig heroPowerUpConfig = ConfigComponent.Instance.Get<MonsterPowerUpConfig>(PlayerManager.Instance.myHero.level.Value);
+                HeroModelConfig heroModelConfig =
+                    ConfigComponent.Instance.Get<HeroModelConfig>(groupConfig.GroupMonster[i]);
                 CombatHeroInfo combatHeroInfo = new CombatHeroInfo();
-                combatHeroInfo.InitMonster(heroModelConfig.ID, heroPowerUpConfig.ID);
+                //玩家等级
+                if (groupConfig.GroupMonsterLevel[i] == -1)
+                {
+                    MonsterPowerUpConfig heroPowerUpConfig =
+                        ConfigComponent.Instance.Get<MonsterPowerUpConfig>(eventList.heroLevel);
+
+                    combatHeroInfo.InitMonster(heroModelConfig.ID, heroPowerUpConfig.ID);
+                }
+                else
+                {
+                    MonsterPowerUpConfig heroPowerUpConfig =
+                        ConfigComponent.Instance.Get<MonsterPowerUpConfig>(groupConfig.GroupMonsterLevel[i]);
+
+                    combatHeroInfo.InitMonster(heroModelConfig.ID, heroPowerUpConfig.ID);
+                }
 
-                BossInfoHeadWidget bossInfoHeadWidget  = await UIManager.Instance.CreateGComponent<BossInfoHeadWidget>(null,BossInfoHeadRoot);
+
+                BossInfoHeadWidget bossInfoHeadWidget =
+                    await UIManager.Instance.CreateGComponent<BossInfoHeadWidget>(null, BossInfoHeadRoot);
                 bossInfoHeadWidget.CustomInit(combatHeroInfo);
                 bossInfoHeadWidget.OnClick = OnClick;
                 BossInfoHeadWidgets.Add(bossInfoHeadWidget);
             }
+            // foreach (var i in groupConfig.GroupMonster)
+            // {
+            //    
+            //   
+            // }
+
             // heroModelConfig = ConfigComponent.Instance.Get<HeroModelConfig>(groupConfig.GroupMonster[0]);
             // heroPowerUpConfig = ConfigComponent.Instance.Get<MonsterPowerUpConfig>(PlayerManager.Instance.myHero.level.Value);
             //
@@ -92,7 +115,7 @@ namespace Fort23.Mono
         private void OnClick(ItemWidgetBasic obj)
         {
             BossInfoHeadWidget bossInfoHeadWidget = obj as BossInfoHeadWidget;
-            UpdateInfo(2,bossInfoHeadWidget._combatHero);
+            UpdateInfo(2, bossInfoHeadWidget._combatHero);
             Icon_Select.transform.SetParent(bossInfoHeadWidget.transform);
             Icon_Select.transform.SetAsFirstSibling();
             Icon_Select.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, 0);
@@ -112,14 +135,17 @@ namespace Fort23.Mono
                 Icon_Select.transform.SetParent(Btn_Player.transform);
                 Icon_Select.transform.SetAsFirstSibling();
                 Icon_Select.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, 0);
-                Text_Name.text = "名称:" + LanguageManager.Instance.Text(PlayerManager.Instance.PlayerName);
+                Text_Name.text = "名称:" + PlayerManager.Instance.PlayerName;
 
 
-                Text_Jingjie.text = "境界:" + LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[0]) +
-                                    LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[1]) +
-                                    LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[2]);
+                Text_Jingjie.text =
+                    "境界:" +
+                    LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[0]) +
+                    LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[1]) +
+                    LanguageManager.Instance.Text(PlayerManager.Instance.myHero.powerUpConfig.jingjieLanIDs[2]);
 
-                Text_Linggen.text = $"金:{PlayerManager.Instance.myHero.Metal} 木:{PlayerManager.Instance.myHero.Wood} 水:{PlayerManager.Instance.myHero.Water} 火:{PlayerManager.Instance.myHero.Fire} 土:{PlayerManager.Instance.myHero.Earth}";
+                Text_Linggen.text =
+                    $"金:{PlayerManager.Instance.myHero.Metal} 木:{PlayerManager.Instance.myHero.Wood} 水:{PlayerManager.Instance.myHero.Water} 火:{PlayerManager.Instance.myHero.Fire} 土:{PlayerManager.Instance.myHero.Earth}";
                 Text_Hp.text = PlayerManager.Instance.myHero.hp.Value.ToString();
 
                 using (CTaskAwaitBuffer cTaskAwaitBuffer = new CTaskAwaitBuffer())
@@ -159,13 +185,14 @@ namespace Fort23.Mono
             {
                 // Icon_Select.transform.SetParent(Btn_Boss.transform);
                 // Icon_Select.transform.SetAsFirstSibling();
-              
+
                 Text_Name.text = "名称:" + LanguageManager.Instance.Text(combatHeroInfo.modelConfig.name);
 
 
-                Text_Jingjie.text = "境界:" + LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie1) +
-                                    LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie2) +
-                                    LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie3);
+                Text_Jingjie.text =
+                    "境界:" + LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie1) +
+                    LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie2) +
+                    LanguageManager.Instance.Text(combatHeroInfo.MonsterPowerUpConfig.jingjie3);
 
                 using (CTaskAwaitBuffer cTaskAwaitBuffer = new CTaskAwaitBuffer())
                 {
@@ -175,12 +202,19 @@ namespace Fort23.Mono
                         {
                             int index = i;
                             bool isUlock = combatHeroInfo.level >= combatHeroInfo.modelConfig.fabaoActiveLv[i];
-                            cTaskAwaitBuffer.AddTask(UIManager.Instance.CreateGComponent<GongFaWidgetType2>((faBaoWidget) =>
+                            if (isUlock)
                             {
-                                faBaoWidget.CustomInit(new FaBaoInfo(combatHeroInfo.modelConfig.fa_bao_id[index], combatHeroInfo.MonsterPowerUpConfig.FabaoLv, 1),isUlock);
-                                faBaoWidget.OnClick = FaBaoWidgetOnClick;
-                                gongFaWidgetType2s.Add(faBaoWidget);
-                            }, FabaoRoot));
+                                cTaskAwaitBuffer.AddTask(UIManager.Instance.CreateGComponent<GongFaWidgetType2>(
+                                    (faBaoWidget) =>
+                                    {
+                                        faBaoWidget.CustomInit(
+                                            new FaBaoInfo(combatHeroInfo.modelConfig.fa_bao_id[index],
+                                                combatHeroInfo.MonsterPowerUpConfig.FabaoLv,
+                                                combatHeroInfo.MonsterPowerUpConfig.FabaoStar), isUlock);
+                                        faBaoWidget.OnClick = FaBaoWidgetOnClick;
+                                        gongFaWidgetType2s.Add(faBaoWidget);
+                                    }, FabaoRoot));
+                            }
                         }
                     }
 
@@ -190,12 +224,18 @@ namespace Fort23.Mono
                         {
                             int index = i;
                             bool isUlock = combatHeroInfo.level >= combatHeroInfo.modelConfig.skillActiveLv[i];
-                            cTaskAwaitBuffer.AddTask(UIManager.Instance.CreateGComponent<GongFaWidgetType2>((skillWidget) =>
+                            if (isUlock)
                             {
-                                skillWidget.CustomInit(new SkillInfo(combatHeroInfo.modelConfig.skillID[index], combatHeroInfo.MonsterPowerUpConfig.GongfaLv, combatHeroInfo.MonsterPowerUpConfig.GongfaStar));
-                                skillWidget.OnClick = FaBaoWidgetOnClick;
-                                gongFaWidgetType2s.Add(skillWidget);
-                            }, GongfaRoot));
+                                cTaskAwaitBuffer.AddTask(UIManager.Instance.CreateGComponent<GongFaWidgetType2>(
+                                    (skillWidget) =>
+                                    {
+                                        skillWidget.CustomInit(new SkillInfo(combatHeroInfo.modelConfig.skillID[index],
+                                            combatHeroInfo.MonsterPowerUpConfig.GongfaLv,
+                                            combatHeroInfo.MonsterPowerUpConfig.GongfaStar));
+                                        skillWidget.OnClick = FaBaoWidgetOnClick;
+                                        gongFaWidgetType2s.Add(skillWidget);
+                                    }, GongfaRoot));
+                            }
                         }
                     }
 
@@ -203,7 +243,8 @@ namespace Fort23.Mono
                 }
 
 
-                Text_Linggen.text = $"金:{combatHeroInfo.Metal} 木:{combatHeroInfo.Wood} 水:{combatHeroInfo.Water} 火:{combatHeroInfo.Fire} 土:{combatHeroInfo.Earth}";
+                Text_Linggen.text =
+                    $"金:{combatHeroInfo.Metal} 木:{combatHeroInfo.Wood} 水:{combatHeroInfo.Water} 火:{combatHeroInfo.Fire} 土:{combatHeroInfo.Earth}";
                 Text_Hp.text = combatHeroInfo.hp.Value.ToString();
             }
         }
@@ -232,11 +273,12 @@ namespace Fort23.Mono
             }
 
             gongFaWidgetType2s.Clear();
-            
+
             foreach (var bossInfoHeadWidget in BossInfoHeadWidgets)
             {
                 UIManager.Instance.DormancyGComponent(bossInfoHeadWidget);
             }
+
             BossInfoHeadWidgets.Clear();
 
             Icon_Select.transform.SetParent(transform);
@@ -245,11 +287,12 @@ namespace Fort23.Mono
             await base.Close();
         }
 
-        public async static CTask<bool> OpenPanel(int levebattleId)
+        public async static CTask<bool> OpenPanel(int levebattleId, AccountFileInfo.EventList CurrentEventList)
         {
             CTask<bool> result = CTask<bool>.Create();
-            
-            BossInfoPanel bossInfoPanel = await UIManager.Instance.LoadAndOpenPanel<BossInfoPanel>(null, UILayer.Top, uiData: new object[] { levebattleId, result },isShowBG:true);
+
+            BossInfoPanel bossInfoPanel = await UIManager.Instance.LoadAndOpenPanel<BossInfoPanel>(null, UILayer.Top,
+                uiData: new object[] { levebattleId, CurrentEventList, result }, isShowBG: true);
             // bossInfoPanel.CustomInit(levebattleId, result);
             return await result;
         }

+ 8 - 3
Assets/Scripts/GameUI/UI/DivineSence/GongFaWidgetType2.cs

@@ -25,11 +25,14 @@ namespace Fort23.Mono
         {
         }
 
-        public void CustomInit(FaBaoInfo faBaoInfo,bool isUlock = true)
+        public void CustomInit(FaBaoInfo faBaoInfo, bool isUlock = true)
         {
+            Icon_FabaoIcon.gameObject.SetActive(true);
+            Icon_GongFaIcon.gameObject.SetActive(false);
             this.faBaoInfo = faBaoInfo;
             Text_Level.text = faBaoInfo.FaBaoData.level.ToString() + "级";
-            Icon_GongFaIcon.icon_name = faBaoInfo.SkillConfig.icon;
+            Icon_FabaoIcon.icon_name = faBaoInfo.SkillConfig.icon;
+
             if (isUlock)
             {
                 this.transform.RecoverColor();
@@ -40,8 +43,10 @@ namespace Fort23.Mono
             }
         }
 
-        public void CustomInit(SkillInfo skillInfo,bool isUlock = true)
+        public void CustomInit(SkillInfo skillInfo, bool isUlock = true)
         {
+            Icon_FabaoIcon.gameObject.SetActive(false);
+            Icon_GongFaIcon.gameObject.SetActive(true);
             this.skillInfo = skillInfo;
             Text_Level.text = skillInfo.SkillPowerupConfig.ID.ToString() + "级";
             Icon_GongFaIcon.icon_name = skillInfo.skillConfig.icon;

+ 11 - 0
Assets/Scripts/GameUI/UI/DivineSence/GongFaWidgetType2Data.cs

@@ -30,6 +30,17 @@ namespace Fort23.Mono
 	      return _Text_Level;
 	     }
 	   }
+	  private MyImage _Icon_FabaoIcon;
+	  public MyImage Icon_FabaoIcon
+	   {
+	   get{
+	      if (_Icon_FabaoIcon == null)
+	       {
+	         _Icon_FabaoIcon  = GetUIUnit<MyImage>("Icon_FabaoIcon"); 
+	       }
+	      return _Icon_FabaoIcon;
+	     }
+	   }
 	  #endregion 自定义数据结束 
 	 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
 	{

+ 21 - 14
Assets/Scripts/GameUI/UI/ShopPanel/ShopPanel.cs

@@ -44,7 +44,7 @@ namespace Fort23.Mono
         {
             TitlePanel.OpenPanel(new List<int>() { 1001, 1002 });
             AppBarPanel.OpenPanel(this);
-           
+
             return base.GetFocus();
         }
 
@@ -55,17 +55,21 @@ namespace Fort23.Mono
         }
 
 
-        public int Sort(ShopGroupConfig s,ShopGroupConfig b)
+        public int Sort(ShopGroupConfig s, ShopGroupConfig b)
         {
             return s.pageSortNum.CompareTo(b.pageSortNum);
         }
+
         public async override CTask<bool> AsyncInit(object[] uiData)
         {
-          List<ShopGroupConfig> shopGroupConfigs = ConfigComponent.Instance.GetAll<ShopGroupConfig>().ToList();
-          shopGroupConfigs.Sort(Sort);
-          foreach (var shopGroupConfig in shopGroupConfigs)
-          {
-                ShopBtnWidget shopBtnWidget = await UIManager.Instance.CreateGComponent<ShopBtnWidget>(null, ShopBtnContent);
+            List<ShopGroupConfig> shopGroupConfigs = ConfigComponent.Instance.GetAll<ShopGroupConfig>().ToList();
+            shopGroupConfigs.Sort(Sort);
+            foreach (var shopGroupConfig in shopGroupConfigs)
+            {
+                if (!shopGroupConfig.isShow)
+                    continue;
+                ShopBtnWidget shopBtnWidget =
+                    await UIManager.Instance.CreateGComponent<ShopBtnWidget>(null, ShopBtnContent);
                 shopBtnWidget.CustomInit(shopGroupConfig);
                 shopBtnWidget.OnClick = OnClick;
                 _shopBtnWidgets.Add(shopBtnWidget);
@@ -73,7 +77,7 @@ namespace Fort23.Mono
                 {
                     currentSelectedShopBtnWidget = shopBtnWidget;
                 }
-          }
+            }
 
             ShopBtnContent.GetComponent<UIToggleList>().GetChildObj();
             currentSelectedShopBtnWidget.OnPointerClick();
@@ -86,7 +90,8 @@ namespace Fort23.Mono
         {
             ShopBtnWidget shopBtnWidget = obj as ShopBtnWidget;
             Text_Title.text = LanguageManager.Instance.Text(shopBtnWidget.ShopGroupConfig.shopName);
-            ShopBtnContent.GetComponent<UIToggleList>().ClickWidget(shopBtnWidget.own.GetComponent<UIToggleWidgetBasic>());
+            ShopBtnContent.GetComponent<UIToggleList>()
+                .ClickWidget(shopBtnWidget.own.GetComponent<UIToggleWidgetBasic>());
             currentSelectedShopBtnWidget = shopBtnWidget;
             foreach (var shopGroupWidgetType1 in _shopGroupWidgetType1s)
             {
@@ -104,11 +109,10 @@ namespace Fort23.Mono
                 {
                     if (shopConfig.shopItemGroup == 4)
                     {
-
-                        ShopBoxWidget shopBoxWidget = await UIManager.Instance.CreateGComponent<ShopBoxWidget>(null, Content);
+                        ShopBoxWidget shopBoxWidget =
+                            await UIManager.Instance.CreateGComponent<ShopBoxWidget>(null, Content);
                         shopBoxWidget.CustomInit();
                         _shopGroupWidgetType1s.Add(shopBoxWidget);
-
                     }
                     // if (shopData.id == 1 || shopData.id == 5)
                     // {
@@ -121,7 +125,8 @@ namespace Fort23.Mono
                     else
                     {
                         ShopGroupWidgetType1 shopGroupWidgetType1 =
-                            await UIManager.Instance.CreateGComponentForObject<ShopGroupWidgetType1>(ShopGroupWidgetType2,
+                            await UIManager.Instance.CreateGComponentForObject<ShopGroupWidgetType1>(
+                                ShopGroupWidgetType2,
                                 null, Content, isInstance: true);
                         _shopGroupWidgetType1s.Add(shopGroupWidgetType1);
                         await shopGroupWidgetType1.CustomInit(shopData);
@@ -197,7 +202,9 @@ namespace Fort23.Mono
 
         public static async CTask<ShopPanel> OpenPanel(bool isPauseCombat = false)
         {
-            ShopPanel shopPanel = await UIManager.Instance.LoadAndOpenPanel<ShopPanel>(null, uiData: new object[] { isPauseCombat },isFullUI:true);
+            ShopPanel shopPanel =
+                await UIManager.Instance.LoadAndOpenPanel<ShopPanel>(null, uiData: new object[] { isPauseCombat },
+                    isFullUI: true);
 
             AudioManager.Instance.PlayAudio("ui_shangdian.wav");
             return shopPanel;

BIN
Excel2Json/Excel/Language.xlsx


BIN
Excel2Json/Excel/Shop.xlsx