using XGame.Framework; using XGame.Framework.UI; namespace FL.FGUI { internal static class UIExtensions { public static void ShowTips(this UIContext context, string tips) { EventSingle.Instance.Notify(EventDefine.ShowTips, tips); } public static void AddListener(this UIContext context, EventDefine eventId, EventDelegate handler) { EventSingle.Instance.AddListener(eventId, handler); } public static void RemoveListener(this UIContext context, EventDefine eventId, EventDelegate handler) { EventSingle.Instance.RemoveListener(eventId, handler); } } }