mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-03 22:44:44 +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();
|
||||
|
|
|
|||
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
|||
Subproject commit f624aca526bd1f36364d63443ed1c6e83499b8b7
|
||||
Subproject commit 6a73878abbb477dc441ade70ad40352e2da9cc4c
|
||||
Loading…
Add table
Add a link
Reference in a new issue