protected override void OnInit(Point2D position, object[] args) { var size = (Point2D)args[0]; widget = new InventoryWidget(Parent.Widget); widget.Move(position); widget.SetInventorySize(size); widget.Drop += (p) => SendMessage("drop", p); widget.Transfer += OnTransfer; }
private void SetSize(object[] args) { widget.SetInventorySize((Point2D)args[0]); }