public virtual void ReDraw(ISkillArgs args) { if (inventoryUI != null) { inventoryUI.ReDraw(args, this, true); } }
public override void DoAction(IEventArgs args) { IGameUnit player = GetPlayer(args); FreeData fd = (FreeData)player; ItemInventory ii = new ItemInventory(column, row); ii.SetCloseAction(closeAction); ii.SetOpenAction(openAction); ii.SetName(name); ii.SetInventoryUI(inventoryUI); ii.SetCanDrop(canDrop); ii.SetDropAction(dropAction); inventoryUI.ReDraw((ISkillArgs)args, ii, true); fd.freeInventory.GetInventoryManager().AddInventory(name, ii); }