diff options
| author | Gilles Roudiere | 2017-10-15 22:33:25 +0200 |
|---|---|---|
| committer | Gilles Roudiere | 2017-10-18 00:01:59 +0200 |
| commit | fc02605b497727913922d873eb7bd36d73aa00a9 (patch) | |
| tree | 48752083c8ed68c7a0b9a891c7400c298729c69e /editor/plugins/tile_map_editor_plugin.h | |
| parent | 6e960c7d6bbf7481bae41ab0ebb39bc75619272a (diff) | |
| download | godot-fc02605b497727913922d873eb7bd36d73aa00a9.tar.gz godot-fc02605b497727913922d873eb7bd36d73aa00a9.tar.zst godot-fc02605b497727913922d873eb7bd36d73aa00a9.zip | |
Fixes snapping and replaces the _draw_canvas by forward_canvas_draw
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/tile_map_editor_plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.h b/editor/plugins/tile_map_editor_plugin.h index c8f29dfb7..5b042e478 100644 --- a/editor/plugins/tile_map_editor_plugin.h +++ b/editor/plugins/tile_map_editor_plugin.h @@ -163,7 +163,6 @@ class TileMapEditor : public VBoxContainer { void _text_changed(const String &p_text); void _sbox_input(const Ref<InputEvent> &p_ie); void _update_palette(); - void _canvas_draw(); void _menu_option(int p_option); void _set_cell(const Point2i &p_pos, int p_value, bool p_flip_h = false, bool p_flip_v = false, bool p_transpose = false, bool p_with_undo = false); @@ -183,6 +182,8 @@ public: HBoxContainer *get_toolbar() const { return toolbar; } bool forward_gui_input(const Ref<InputEvent> &p_event); + void forward_draw_over_canvas(Control *p_canvas); + void edit(Node *p_tile_map); TileMapEditor(EditorNode *p_editor); @@ -197,6 +198,7 @@ class TileMapEditorPlugin : public EditorPlugin { public: virtual bool forward_canvas_gui_input(const Transform2D &p_canvas_xform, const Ref<InputEvent> &p_event) { return tile_map_editor->forward_gui_input(p_event); } + virtual void forward_draw_over_canvas(Control *p_canvas) { tile_map_editor->forward_draw_over_canvas(p_canvas); } virtual String get_name() const { return "TileMap"; } bool has_main_screen() const { return false; } |
