mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-21 15:07:43 +01:00
Make filter combo tooltips always enabled.
This commit is contained in:
parent
6ee1501c09
commit
a7b1d45b75
2 changed files with 5 additions and 10 deletions
|
|
@ -13,17 +13,12 @@ using Penumbra.GameData.Structs;
|
|||
|
||||
namespace Glamourer.Gui.Equipment;
|
||||
|
||||
public sealed class GlamourerColorCombo : FilterComboColors
|
||||
public sealed class GlamourerColorCombo(float _comboWidth, StainData _stains, FavoriteManager _favorites)
|
||||
: FilterComboColors(_comboWidth, CreateFunc(_stains, _favorites), Glamourer.Log)
|
||||
{
|
||||
private readonly FavoriteManager _favorites;
|
||||
|
||||
public GlamourerColorCombo(float comboWidth, StainData stains, FavoriteManager favorites)
|
||||
: base(comboWidth, CreateFunc(stains, favorites), Glamourer.Log)
|
||||
=> _favorites = favorites;
|
||||
|
||||
protected override bool DrawSelectable(int globalIdx, bool selected)
|
||||
{
|
||||
using (var space = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, ImGuiHelpers.ScaledVector2(4, 0)))
|
||||
using (var _ = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, ImGuiHelpers.ScaledVector2(4, 0)))
|
||||
{
|
||||
if (globalIdx == 0)
|
||||
{
|
||||
|
|
@ -32,7 +27,7 @@ public sealed class GlamourerColorCombo : FilterComboColors
|
|||
}
|
||||
else
|
||||
{
|
||||
UiHelpers.DrawFavoriteStar(_favorites, (StainId)Items[globalIdx].Key);
|
||||
UiHelpers.DrawFavoriteStar(_favorites, Items[globalIdx].Key);
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue