public PartyWidget(Widget parent, GobCache gobCache) : base(parent) { this.avatars = new Dictionary <int, AvatarView>(); this.gobCache = gobCache; btnLeave = new Button(this, 84); btnLeave.Text = "Leave party"; btnLeave.Click += () => Leave.Raise(); Update(); }
public Equipory(Widget parent, GobCache gobCache) : base(parent, "Equipment") { this.gobCache = gobCache; this.gobId = -1; this.items = new ItemWidget[slotPositions.Length]; for (int i = 0; i < slotPositions.Length; i++) { int slotIndex = i; var inv = new InventoryWidget(this); inv.Move(slotPositions[i]); inv.SetInventorySize(1, 1); inv.Drop += (p) => Drop.Raise(slotIndex); } Pack(); }
public Avatar(int gobId, GobCache gobCache) { this.gobId = gobId; this.gobCache = gobCache; }