mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 00:49:18 +01:00
Update Combos.
This commit is contained in:
parent
95d5d6c4b0
commit
d2bfcefb89
6 changed files with 19 additions and 36 deletions
|
|
@ -125,26 +125,13 @@ public class ItemSwapTab : IDisposable, ITab
|
|||
Weapon,
|
||||
}
|
||||
|
||||
private class ItemSelector : FilterComboCache<EquipItem>
|
||||
private class ItemSelector(ItemData data, FullEquipType type)
|
||||
: FilterComboCache<EquipItem>(() => data.ByType[type], MouseWheelType.None, Penumbra.Log)
|
||||
{
|
||||
public ItemSelector(ItemData data, FullEquipType type)
|
||||
: base(() => data.ByType[type], Penumbra.Log)
|
||||
{ }
|
||||
|
||||
protected override string ToString(EquipItem obj)
|
||||
=> obj.Name;
|
||||
}
|
||||
|
||||
private class WeaponSelector : FilterComboCache<FullEquipType>
|
||||
{
|
||||
public WeaponSelector()
|
||||
: base(FullEquipTypeExtensions.WeaponTypes.Concat(FullEquipTypeExtensions.ToolTypes), Penumbra.Log)
|
||||
{ }
|
||||
|
||||
protected override string ToString(FullEquipType type)
|
||||
=> type.ToName();
|
||||
}
|
||||
|
||||
private readonly Dictionary<SwapType, (ItemSelector Source, ItemSelector Target, string TextFrom, string TextTo)> _selectors;
|
||||
private readonly ItemSwapContainer _swapData;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue