From bd72a67d2956f501a19e7098c9f9c7faf178ee69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 31 Dec 2023 17:01:23 +0100 Subject: [PATCH] Fixed List add/remove element buttons not working --- ScriptCore/Editor/EntityEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScriptCore/Editor/EntityEditor.cs b/ScriptCore/Editor/EntityEditor.cs index 59d08e0..ec20147 100644 --- a/ScriptCore/Editor/EntityEditor.cs +++ b/ScriptCore/Editor/EntityEditor.cs @@ -597,8 +597,8 @@ internal class EntityEditor // The buttons should always be visible -> save whether the node is open // If we have no instance, the user shouldn't be able to open the list - bool listOpen = ImGui.TreeNodeEx(fieldName, - myList == null ? ImGuiTreeNodeFlags.Leaf | ImGuiTreeNodeFlags.NoTreePushOnOpen : ImGuiTreeNodeFlags.Framed); + bool listOpen = ImGui.TreeNodeEx(fieldName, ImGuiTreeNodeFlags.AllowOverlap | ImGuiTreeNodeFlags.SpanFullWidth | + (myList == null ? ImGuiTreeNodeFlags.Leaf | ImGuiTreeNodeFlags.NoTreePushOnOpen : ImGuiTreeNodeFlags.Framed)); if (myList == null) listOpen = false;