diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-08 12:00:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-08 12:00:45 +0100 |
commit | 9acf4738b15738cb2b9646481b75ba0c05a01e78 (patch) | |
tree | d8a8ce5007ea77f86d33136cdfa014e45d31d72b /editor/imgui.cpp | |
parent | a083f5c2124a6a907727b35a5c43d8175d396d73 (diff) |
draw, editor: visualize bounding boxes
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 1b219561..69037861 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -77,6 +77,13 @@ float app::draw_main_menu() if (b_rotate) do_key(key_rotate_tile); } + if (auto b = begin_menu("View")) + { + bool show_collisions = _draw_collision_boxes; + ImGui::MenuItem("Collision boxes", "Alt+B", &show_collisions); + if (show_collisions) + do_key(key_collision_boxes); + } main_menu_height = ImGui::GetContentRegionMax().y; } |