Exemplo n.º 1
0
 public UIWeaponSlot(Inventory.WeaponSlot slot, List <Weapon> availableWeapons, Texture2D buttonIcon, Rectangle frame, UIButtonStyle style) : base("", frame, style, null)
 {
     onPress               = slot_Clicked;
     this.slot             = slot;
     this.buttonIcon       = buttonIcon;
     this.availableWeapons = availableWeapons;
 }
Exemplo n.º 2
0
        public void SelectWeapon(Inventory.WeaponSlot slot, Inventory.WeaponSlot otherSlot)
        {
            if (otherSlot.weapon == weapon)
            {
                otherSlot.weapon = slot.weapon;
            }

            slot.weapon = weapon;
        }
Exemplo n.º 3
0
 public UIWeaponButton(Weapon weapon, Inventory.WeaponSlot lmbSlot, Inventory.WeaponSlot rmbSlot, Rectangle frame, UIButtonStyle style) : base("", frame, style, null)
 {
     this.weapon  = weapon;
     this.lmbSlot = lmbSlot;
     this.rmbSlot = rmbSlot;
 }