summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:24:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:24:53 +0100
commit40d5a7a06aea896cf38a9efa8d040382ad69a2b0 (patch)
tree63898a7677ff065e785ed5607ad8e275a8ecf3bc /editor/imgui-scenery.cpp
parent06a7c514052e180e5ec35e84dac0292d54515cb2 (diff)
imgui: push some id's
Diffstat (limited to 'editor/imgui-scenery.cpp')
-rw-r--r--editor/imgui-scenery.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/imgui-scenery.cpp b/editor/imgui-scenery.cpp
index 5c4fd37d..45861fd8 100644
--- a/editor/imgui-scenery.cpp
+++ b/editor/imgui-scenery.cpp
@@ -11,12 +11,14 @@ using namespace floormat::imgui;
void app::draw_editor_scenery_pane(scenery_editor& ed)
{
+ const auto b1 = push_id("scenery-pane");
+
const auto& style = ImGui::GetStyle();
const auto dpi = M->dpi_scale();
constexpr ImGuiTableFlags flags = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_ScrollY;
constexpr int ncolumns = 4;
const auto size = ImGui::GetWindowSize();
- auto b = imgui::begin_table("scenery-table", ncolumns, flags, size);
+ auto b2 = imgui::begin_table("scenery-table", ncolumns, flags, size);
const auto row_height = ImGui::GetCurrentContext()->FontSize + 5*dpi;
constexpr auto thumbnail_width = 50;
const auto colwidth_type = ImGui::CalcTextSize("generic").x;