diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 03:18:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-11 03:18:00 +0100 |
commit | f3d870a400395e75f601f32a3bbb3e68502d9000 (patch) | |
tree | 3735b14eaa74d4a80d9197ac973b5dbffbd675d6 /editor | |
parent | b91deae59c69ca41d5feffaf4f16b29ee47af64d (diff) |
fix some todo's
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor.cpp | 1 | ||||
-rw-r--r-- | editor/imgui-editors.cpp | 2 | ||||
-rw-r--r-- | editor/inspect-draw.cpp | 2 | ||||
-rw-r--r-- | editor/scenery-json.cpp | 1 | ||||
-rw-r--r-- | editor/tile-editor.cpp | 1 |
5 files changed, 3 insertions, 4 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index a3b69fb1..9f2761e2 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -100,7 +100,6 @@ Optional<global_coords> editor::mouse_drag_pos() void editor::on_click_(world& world, global_coords pos, button b) { - // todo make template if (auto* mode = current_ground_editor(); mode != nullptr) { if (auto opt = mode->get_selected(); opt || b == button::remove) diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp index f4b546f1..4ffb74ba 100644 --- a/editor/imgui-editors.cpp +++ b/editor/imgui-editors.cpp @@ -230,7 +230,7 @@ template void impl_draw_editor_scenery_pane(wall_editor&, Vector2); void app::draw_editor_pane(float main_menu_height) { auto* ed = _editor.current_ground_editor(); - auto* wa = _editor.current_wall_editor(); // todo + auto* wa = _editor.current_wall_editor(); auto* sc = _editor.current_scenery_editor(); auto* vo = _editor.current_vobj_editor(); diff --git a/editor/inspect-draw.cpp b/editor/inspect-draw.cpp index f6d36e61..48f49ca1 100644 --- a/editor/inspect-draw.cpp +++ b/editor/inspect-draw.cpp @@ -16,7 +16,7 @@ void app::draw_inspector() { auto b = push_id("inspector"); - constexpr auto max_inspectors = 4; // todo change later to 32 + constexpr auto max_inspectors = 10; if (auto size = inspectors.size(); size > max_inspectors) { auto end = inspectors.begin() + (ptrdiff_t)size - max_inspectors; diff --git a/editor/scenery-json.cpp b/editor/scenery-json.cpp index c5d7d043..e8b4dfec 100644 --- a/editor/scenery-json.cpp +++ b/editor/scenery-json.cpp @@ -2,6 +2,7 @@ #include "serialize/scenery.hpp" #include "loader/loader.hpp" #include "loader/scenery.hpp" +#include <Corrade/Containers/ArrayView.h> namespace floormat { diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 0bccd6d9..1b766208 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -153,7 +153,6 @@ auto tile_editor::check_snap(int mods) const -> editor_snap_mode { const bool ctrl = mods & kmod_ctrl, shift = mods & kmod_shift; - // todo show on cursor while held if (!(ctrl | shift)) return editor_snap_mode::none; |