summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect-draw.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-05-25 07:38:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-05-25 07:38:40 +0200
commitbcfd2f2ce953b0f9ed0a59a46d8db463aef4e714 (patch)
treee4a93a3f765c3aa2bf2b36bc045572477f0bc590 /editor/inspect-draw.cpp
parent5e3cbab0d0f08bc06141a565a1ef1e7d14bba9b7 (diff)
some work on inspecting other enttiy subtypes
Diffstat (limited to 'editor/inspect-draw.cpp')
-rw-r--r--editor/inspect-draw.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/editor/inspect-draw.cpp b/editor/inspect-draw.cpp
index a1adbba3..1f1ccec3 100644
--- a/editor/inspect-draw.cpp
+++ b/editor/inspect-draw.cpp
@@ -53,17 +53,11 @@ void app::draw_inspector()
snformat(buf, "{} ({}x{}:{} -> {}x{})"_cf, name, ch.x, ch.y, (int)z, (int)pos.x, (int)pos.y);
bool is_open = true;
- if (e.type() == entity_type::scenery)
+ if (auto b2 = begin_window(buf, &is_open))
{
- auto& s2 = static_cast<scenery&>(e);
- if (auto b2 = begin_window(buf, &is_open))
- {
- bool ret = entities::inspect_type(s2);
- (void)ret;
- }
+ bool ret = entities::inspect_entity_subtype(e);
+ (void)ret;
}
- else
- is_open = false;
if (!is_open)
inspectors.erase(inspectors.begin() + (ptrdiff_t)i);
}