add shared character data sets display to main ui

This commit is contained in:
Stanley Dimant 2025-02-10 12:50:52 +01:00
parent 7720bdc6a9
commit 2cb2e7ca78
5 changed files with 52 additions and 12 deletions

View file

@ -1130,9 +1130,9 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
ImGuiHelpers.ScaledDummy(5);
}
public static void DrawTree(string leafName, Action drawOnOpened)
public static void DrawTree(string leafName, Action drawOnOpened, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
{
using var tree = ImRaii.TreeNode(leafName);
using var tree = ImRaii.TreeNode(leafName, flags);
if (tree)
{
drawOnOpened();