|
@@ -60,7 +60,13 @@ namespace Fort23.Mono
|
|
|
UpdateTitleWidget();
|
|
|
}
|
|
|
|
|
|
- public async void CustomInit(int type, int id)
|
|
|
+ public async override CTask<bool> AsyncInit(object[] uiData)
|
|
|
+ {
|
|
|
+ await CustomInit((int)uiData[0], (int)uiData[1]);
|
|
|
+ return await base.AsyncInit(uiData);
|
|
|
+ }
|
|
|
+
|
|
|
+ public async CTask CustomInit(int type, int id)
|
|
|
{
|
|
|
this.type = type;
|
|
|
eventLogTitleWidget = await UIManager.Instance.CreateGComponentForObject<EventLogTitleWidget>(EventLogTitleWidget, null);
|
|
@@ -165,7 +171,7 @@ namespace Fort23.Mono
|
|
|
eventLogTitleWidget.own.SetActive(false);
|
|
|
}
|
|
|
|
|
|
- Content.Init(this, showXianTuLogInfoData.Count);
|
|
|
+ await Content.Init(this, showXianTuLogInfoData.Count);
|
|
|
}
|
|
|
|
|
|
public async CTask<IScorllListWidget> GetIScorllListWidget(int index, RectTransform root)
|
|
@@ -235,7 +241,7 @@ namespace Fort23.Mono
|
|
|
private float maxY;
|
|
|
private float minY;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
public void UpdateTitleWidget()
|
|
|
{
|
|
|
if (type != 1)
|
|
@@ -298,8 +304,8 @@ namespace Fort23.Mono
|
|
|
|
|
|
public async static CTask OpenPanel(int type, int id)
|
|
|
{
|
|
|
- XianTuLogInfoPanel xianTuLogInfoPanel = await UIManager.Instance.LoadAndOpenPanel<XianTuLogInfoPanel>(null);
|
|
|
- xianTuLogInfoPanel.CustomInit(type, id);
|
|
|
+ XianTuLogInfoPanel xianTuLogInfoPanel = await UIManager.Instance.LoadAndOpenPanel<XianTuLogInfoPanel>(null, uiData: new object[] { type, id });
|
|
|
+ // xianTuLogInfoPanel.CustomInit(type, id);
|
|
|
}
|
|
|
}
|
|
|
}
|