| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 | 
							- using System.Collections.Generic;
 
- using System.Linq;
 
- using Excel2Json;
 
- using Fort23.Core;
 
- using Fort23.UTool;
 
- using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
 
- using UnityEngine;
 
- namespace Fort23.Mono
 
- {
 
-     [UIBinding(prefab = "XianTuLogPanel")]
 
-     public partial class XianTuLogPanel : UIPanel, IScrollListContent
 
-     {
 
-         List<XianTuLogConfig> xianTuLogConfigs = new List<XianTuLogConfig>();
 
-         List<XianTuLogConfig> shoeXianTuLogConfigs = new List<XianTuLogConfig>();
 
-         private void Init()
 
-         {
 
-             isAddStack = true;
 
-             IsShowAppBar = false;
 
-         }
 
-         protected override void AddEvent()
 
-         {
 
-         }
 
-         protected override void DelEvent()
 
-         {
 
-         }
 
-         public override void AddButtonEvent()
 
-         {
 
-             Btn_Close.onClick.AddListener(() => { UIManager.Instance.HideUIUIPanel(this); });
 
-         }
 
-         public override CTask<bool> AsyncInit(object[] uiData)
 
-         {
 
-             xianTuLogConfigs = ConfigComponent.Instance.GetAll<XianTuLogConfig>().ToList();
 
-             shoeXianTuLogConfigs = GetTypeXiantuLogConfigs(1);
 
-             Content.Init(this, shoeXianTuLogConfigs.Count);
 
-             return base.AsyncInit(uiData);
 
-         }
 
-         private List<XianTuLogConfig> GetTypeXiantuLogConfigs(int type)
 
-         {
 
-             List<XianTuLogConfig> xiaNTYULogConfigs = new List<XianTuLogConfig>();
 
-             foreach (var xianTuLogConfig in xianTuLogConfigs)
 
-             {
 
-                 if (xianTuLogConfig.EventType == type)
 
-                 {
 
-                     xiaNTYULogConfigs.Add(xianTuLogConfig);
 
-                 }
 
-             }
 
-             return xiaNTYULogConfigs;
 
-         }
 
-         public async CTask<IScorllListWidget> GetIScorllListWidget(int index, RectTransform root)
 
-         {
 
-             if (index < 0 || index >= shoeXianTuLogConfigs.Count)
 
-             {
 
-                 return null;
 
-             }
 
-             MainEventLogWidget mainEventLogWidget = await UIManager.Instance.CreateGComponent<MainEventLogWidget>(null, Content.GetComponent<RectTransform>());
 
-             mainEventLogWidget.CustomInit(shoeXianTuLogConfigs[index]);
 
-             return mainEventLogWidget;
 
-         }
 
-         public void HindIScorllListWidget(IScorllListWidget widget)
 
-         {
 
-             UIManager.Instance.DormancyGComponent(widget as UIComponent);
 
-         }
 
-         public async static CTask OpenPanel()
 
-         {
 
-             XianTuLogPanel xianTuLogPanel = await UIManager.Instance.LoadAndOpenPanel<XianTuLogPanel>(null);
 
-         }
 
-     }
 
- }
 
 
  |