Allow right-clicks to clear equip (to Nothing) or stains.

This commit is contained in:
Ottermandias 2021-10-09 13:45:16 +02:00
parent b65658ef63
commit 9dafc65975
9 changed files with 92 additions and 64 deletions

View file

@ -41,5 +41,15 @@ namespace Glamourer
Name = name;
EquippableTo = slot == EquipSlot.Unknown ? ((EquipSlot) item.EquipSlotCategory.Row).ToSlot() : slot;
}
public static Item Nothing(EquipSlot slot)
=> new("Nothing", slot);
private Item(string name, EquipSlot slot)
{
Name = name;
Base = new Lumina.Excel.GeneratedSheets.Item();
EquippableTo = slot;
}
}
}

View file

@ -37,5 +37,14 @@ namespace Glamourer
_seColorId = stain.Color | ((uint) index << 24);
RgbaColor = SeColorToRgba(stain.Color);
}
public static readonly Stain None = new("None");
private Stain(string name)
{
Name = name;
_seColorId = 0;
RgbaColor = 0;
}
}
}