From 0e3a3c6b88a0dd22d6e499eb4217375735bdfadd Mon Sep 17 00:00:00 2001 From: Andrew Burke Date: Mon, 12 Sep 2022 18:08:35 -0400 Subject: [PATCH] More compact items, safer refresh --- Editor/EcsLiteHierarchyWindow.cs | 38 +++++++++++++++++++++++--------- Editor/EcsLiteInspectorWindow.cs | 8 +++++-- Editor/UIElementsExtensions.cs | 17 +++++++++++++- Runtime/WorldDebugSystem.cs | 19 +++++++++++++++- Runtime/WorldDebugView.cs | 6 +---- package.json | 2 +- 6 files changed, 69 insertions(+), 21 deletions(-) diff --git a/Editor/EcsLiteHierarchyWindow.cs b/Editor/EcsLiteHierarchyWindow.cs index 1c91194..2e11662 100644 --- a/Editor/EcsLiteHierarchyWindow.cs +++ b/Editor/EcsLiteHierarchyWindow.cs @@ -14,6 +14,10 @@ private static void Open() { GetWindow("ecsLite Hierarchy").Show(); } + private static readonly Color32 _selectedColor = new Color32(44, 93, 135, 255); + private static readonly Color32 _colorInterval1 = new Color32(56, 56, 56, 255); + private static readonly Color32 _colorInterval2 = new Color32(88, 88, 88, 255); + private DropdownField _worldMenu; private Toolbar _toolbar; private ToolbarSearchField _searchField; @@ -146,7 +150,7 @@ private void UpdateHierarchy() { child.Q