summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect-draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/inspect-draw.cpp')
-rw-r--r--editor/inspect-draw.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/editor/inspect-draw.cpp b/editor/inspect-draw.cpp
index d3c95e58..be32edf7 100644
--- a/editor/inspect-draw.cpp
+++ b/editor/inspect-draw.cpp
@@ -37,20 +37,21 @@ void app::draw_inspector()
continue;
}
auto& e = *e_;
- chunk_coords ch = e.coord.chunk();
- local_coords pos = e.coord.local();
- auto z = e.coord.z();
char buf[32];
- snformat(buf, "inspector-{:08x}"_cf, e.id);
-
- auto b1 = push_id(buf);
ImGui::SetNextWindowSize({375*dpi[0], 0});
+#if 0
auto name = loader.strip_prefix(e.atlas->name());
+ chunk_coords ch = e.coord.chunk();
+ local_coords pos = e.coord.local();
+auto z = e.coord.z();
if (z == 0)
- snformat(buf, "{} ({}x{} -> {}x{})"_cf, name, ch.x, ch.y, (int)pos.x, (int)pos.y);
+ snformat(buf, "{} ({}x{} -> {}x{})###inspector-{:08x}"_cf, name, ch.x, ch.y, (int)pos.x, (int)pos.y, e.id);
else
- snformat(buf, "{} ({}x{}:{} -> {}x{})"_cf, name, ch.x, ch.y, (int)z, (int)pos.x, (int)pos.y);
+ snformat(buf, "{} ({}x{}:{} -> {}x{})###inspector-{:08x}"_cf, name, ch.x, ch.y, (int)z, (int)pos.x, (int)pos.y, e.id);
+#else
+ snformat(buf, "inspector-{:08x}"_cf, e.id);
+#endif
bool is_open = true;
if (auto b2 = begin_window(buf, &is_open))