1234567891011121314151617181920212223242526 |
- 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<KindItem>;
- Context.UI.OpenAsync(UIKeys.ItemGetItemPanel, rwdList);
- }
- }
- }
|