using FL.FGUI; using XGame.Framework.Nodes; namespace FL.Nodes.Mail { public class UIComponent : NodeComponent { public override void OnEnable(object intent) { Context.AddListener(EventDefine.OpenMailUI, OpenMailUI); } public override void OnDisable() { Context.RemoveListener(EventDefine.OpenMailUI, OpenMailUI); } private void OpenMailUI(int eventId, object args) { Context.UI.OpenAsync(UIKeys.MailMailPanel); } } }