summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:00:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:00:39 +0200
commitfc631ad2fcc4e4c4105aec97f57b1a8f9a15dc83 (patch)
tree063e01165f6bdcd549c20b072fb20027a4f7ffb9 /editor
parent5da376bc5f06f47bc4a7b0c5502ca9877f0d8945 (diff)
draw tile coordinate in the caption
Diffstat (limited to 'editor')
-rw-r--r--editor/app.hpp2
-rw-r--r--editor/imgui.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index 5b9727fe..0ae1ff95 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -86,7 +86,7 @@ private:
void draw_ui();
float draw_main_menu();
void draw_fps();
- void draw_cursor_tile_coord();
+ void draw_cursor_tile_text();
void render_menu();
void draw_editor_pane(tile_editor& type, float main_menu_height);
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 7a34f5fc..0052944e 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -65,6 +65,7 @@ void app::draw_ui()
draw_editor_pane(_editor.floor(), main_menu_height);
draw_fps();
draw_cursor_tile();
+ draw_cursor_tile_text();
ImGui::EndFrame();
}
@@ -210,7 +211,7 @@ void app::draw_fps()
}
}
-void app::draw_cursor_tile_coord()
+void app::draw_cursor_tile_text()
{
if (!cursor.tile)
return;