feat: add dummy below open categories

This commit is contained in:
goat 2021-10-01 03:05:25 +02:00
parent fe6f27172d
commit 504fcdcd4c
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -664,7 +664,7 @@ namespace Dalamud.Interface.Internal.Windows
}
ImGui.SetNextItemOpen(groupIdx == this.categoryManager.CurrentGroupIdx);
if (ImGui.CollapsingHeader(groupInfo.Name))
if (ImGui.CollapsingHeader(groupInfo.Name, groupIdx == this.categoryManager.CurrentGroupIdx ? ImGuiTreeNodeFlags.OpenOnDoubleClick : ImGuiTreeNodeFlags.None))
{
if (this.categoryManager.CurrentGroupIdx != groupIdx)
{
@ -695,6 +695,11 @@ namespace Dalamud.Interface.Internal.Windows
}
ImGui.Unindent();
if (groupIdx != this.categoryManager.GroupList.Length - 1)
{
ImGuiHelpers.ScaledDummy(5);
}
}
}
}