Make Worlds collapsible in config window
This commit is contained in:
parent
80577a7636
commit
3125911eaf
@ -149,8 +149,9 @@ internal sealed class ConfigurationWindow : Window
|
|||||||
foreach (var world in _configuration.IncludedCharacters.OrderBy(x => x.CachedWorldName)
|
foreach (var world in _configuration.IncludedCharacters.OrderBy(x => x.CachedWorldName)
|
||||||
.ThenBy(x => x.LocalContentId).GroupBy(x => x.CachedWorldName))
|
.ThenBy(x => x.LocalContentId).GroupBy(x => x.CachedWorldName))
|
||||||
{
|
{
|
||||||
ImGui.CollapsingHeader($"{world.Key} ({world.Count()})",
|
if (ImGui.CollapsingHeader($"{world.Key} ({world.Count()})##World{world.Key}",
|
||||||
ImGuiTreeNodeFlags.DefaultOpen | ImGuiTreeNodeFlags.OpenOnArrow | ImGuiTreeNodeFlags.Bullet);
|
ImGuiTreeNodeFlags.DefaultOpen))
|
||||||
|
{
|
||||||
ImGui.Indent(30);
|
ImGui.Indent(30);
|
||||||
foreach (var characterInfo in world)
|
foreach (var characterInfo in world)
|
||||||
{
|
{
|
||||||
@ -162,6 +163,7 @@ internal sealed class ConfigurationWindow : Window
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void Save(bool sendEvent = false)
|
private void Save(bool sendEvent = false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user