|
|
@@ -50,6 +50,12 @@ namespace Fort23.Mono
|
|
|
protected override void AddEvent()
|
|
|
{
|
|
|
EventManager.Instance.AddEventListener(CustomEventType.RemoveEvent, RemoveEvent);
|
|
|
+ EventManager.Instance.AddEventListener(CustomEventType.CompleteUpdate, CompleteUpdate);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void CompleteUpdate(IEventData e)
|
|
|
+ {
|
|
|
+ UpdateContent();
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -61,6 +67,7 @@ namespace Fort23.Mono
|
|
|
protected override void DelEvent()
|
|
|
{
|
|
|
EventManager.Instance.RemoveEventListener(CustomEventType.RemoveEvent, RemoveEvent);
|
|
|
+ EventManager.Instance.RemoveEventListener(CustomEventType.CompleteUpdate, CompleteUpdate);
|
|
|
}
|
|
|
|
|
|
public override void AddButtonEvent()
|
|
|
@@ -118,8 +125,8 @@ namespace Fort23.Mono
|
|
|
toggleList.ShowTargetIndex(0);
|
|
|
TitleRoot.SetActive(true);
|
|
|
Rect_Sv.SetParent(Sv1root);
|
|
|
- Rect_Sv.offsetMax =Vector2.zero;
|
|
|
- Rect_Sv.offsetMin =Vector2.zero;
|
|
|
+ Rect_Sv.offsetMax = Vector2.zero;
|
|
|
+ Rect_Sv.offsetMin = Vector2.zero;
|
|
|
// Rect_Sv.sizeDelta = new Vector2(718.82f, 844.7f);
|
|
|
// Rect_Sv.anchoredPosition = new Vector2(2.61f, -190.52f);
|
|
|
Text_Tips.gameObject.SetActive(false);
|
|
|
@@ -145,8 +152,8 @@ namespace Fort23.Mono
|
|
|
TitleRoot.SetActive(false);
|
|
|
|
|
|
Rect_Sv.SetParent(Sv2root);
|
|
|
- Rect_Sv.offsetMax =Vector2.zero;
|
|
|
- Rect_Sv.offsetMin =Vector2.zero;
|
|
|
+ Rect_Sv.offsetMax = Vector2.zero;
|
|
|
+ Rect_Sv.offsetMin = Vector2.zero;
|
|
|
Text_Tips.gameObject.SetActive(showEventList.Count > 0);
|
|
|
}
|
|
|
|
|
|
@@ -236,7 +243,7 @@ namespace Fort23.Mono
|
|
|
if (shengShiEventWidgetType2.eventList.isCompleted1)
|
|
|
{
|
|
|
EventSystemManager.Instance.CompleteEvent(shengShiEventWidgetType2.eventList);
|
|
|
- UpdateContent();
|
|
|
+ // UpdateContent();
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -247,7 +254,7 @@ namespace Fort23.Mono
|
|
|
EventSystemManager.Instance.TriggerEvent(shengShiEventWidgetType2.eventList, () =>
|
|
|
{
|
|
|
isTriggerEvent = false;
|
|
|
- UpdateContent();
|
|
|
+ // UpdateContent();
|
|
|
});
|
|
|
}
|
|
|
|