internal void TickSelection(Weapon.BaseWeapon selectedWeapon) { SetClass("active", selectedWeapon == Weapon); SetClass("empty", !Weapon?.IsUsable() ?? true); }
public InventoryIcon(Weapon.BaseWeapon weapon) { Weapon = weapon; Icon = Add.Panel("icon"); AddClass(weapon.ClassInfo.Name); }