Beispiel #1
0
        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();
        }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 public Avatar(int gobId, GobCache gobCache)
 {
     this.gobId    = gobId;
     this.gobCache = gobCache;
 }