UI for crests.

This commit is contained in:
Ottermandias 2023-11-26 00:29:15 +01:00
parent 512d0a1a5f
commit cd0196ddb4
4 changed files with 132 additions and 35 deletions

View file

@ -77,4 +77,22 @@ public static class CrestExtensions
CrestFlag.LFinger => EquipSlot.LFinger,
_ => 0,
};
public static string ToLabel(this CrestFlag flag)
=> flag switch
{
CrestFlag.Head => "Head",
CrestFlag.Body => "Chest",
CrestFlag.Hands => "Gauntlets",
CrestFlag.Legs => "Pants",
CrestFlag.Feet => "Boot",
CrestFlag.Ears => "Earrings",
CrestFlag.Neck => "Necklace",
CrestFlag.Wrists => "Bracelet",
CrestFlag.RFinger => "Right Ring",
CrestFlag.LFinger => "Left Ring",
CrestFlag.MainHand => "Weapon",
CrestFlag.OffHand => "Shield",
_ => string.Empty,
};
}