using System.Collections.Generic; using FL.FGUI; using FL.Network; using XGame.Framework.Nodes; namespace FL.Nodes.Item { public class UIComponent : NodeComponent { public override void OnEnable(object intent) { Context.AddListener(EventDefine.ItemRwdWin, OnRwdWin); } public override void OnDisable() { Context.RemoveListener(EventDefine.ItemRwdWin, OnRwdWin); } public void OnRwdWin(int eventId, object args) { var rwdList = args as List; Context.UI.OpenAsync(UIKeys.ItemGetItemPanel, rwdList); } } }