|
@@ -75,34 +75,34 @@ namespace FL.FGUI
|
|
#region 事件监听
|
|
#region 事件监听
|
|
private void AddEventListenres()
|
|
private void AddEventListenres()
|
|
{
|
|
{
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerUp, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerDown, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerBinding, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerStrongAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerUpLevel, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerUpStar, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.PartnerWearAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.EpigraphWearAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.EpigraphStrongAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.EpigraphFinishUpMode, OnFinishUpMode);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.EpigraphOpenUpMode, OnOpenUpMode);
|
|
|
|
- EventSingle.Instance.AddListener(EventDefine.EpigraphUpModeSelect, OnEpiUpSelect);
|
|
|
|
|
|
+ Context.AddListener(EventDefine.PartnerUp, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerDown, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerBinding, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerStrongAll, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerUpLevel, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerUpStar, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.PartnerWearAll, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.EpigraphWearAll, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.EpigraphStrongAll, OnUpdateAll);
|
|
|
|
+ Context.AddListener(EventDefine.EpigraphFinishUpMode, OnFinishUpMode);
|
|
|
|
+ Context.AddListener(EventDefine.EpigraphOpenUpMode, OnOpenUpMode);
|
|
|
|
+ Context.AddListener(EventDefine.EpigraphUpModeSelect, OnEpiUpSelect);
|
|
}
|
|
}
|
|
|
|
|
|
private void RemoveEventListenres()
|
|
private void RemoveEventListenres()
|
|
{
|
|
{
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerUp, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerDown, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerBinding, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerStrongAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerUpLevel, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerUpStar, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.PartnerWearAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.EpigraphWearAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.EpigraphStrongAll, OnUpdateAll);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.EpigraphFinishUpMode, OnFinishUpMode);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.EpigraphOpenUpMode, OnOpenUpMode);
|
|
|
|
- EventSingle.Instance.RemoveListener(EventDefine.EpigraphUpModeSelect, OnEpiUpSelect);
|
|
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerUp, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerDown, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerBinding, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerStrongAll, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerUpLevel, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerUpStar, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.PartnerWearAll, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.EpigraphWearAll, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.EpigraphStrongAll, OnUpdateAll);
|
|
|
|
+ Context.RemoveListener(EventDefine.EpigraphFinishUpMode, OnFinishUpMode);
|
|
|
|
+ Context.RemoveListener(EventDefine.EpigraphOpenUpMode, OnOpenUpMode);
|
|
|
|
+ Context.RemoveListener(EventDefine.EpigraphUpModeSelect, OnEpiUpSelect);
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
private void OnClickOneUpBtn(EventContext context)
|
|
private void OnClickOneUpBtn(EventContext context)
|