diff options
| author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-12-19 14:20:49 -0200 |
|---|---|---|
| committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2018-12-30 10:54:03 -0200 |
| commit | 4a91f94c1339711beaf5c2eff758b17352fed27c (patch) | |
| tree | 230ac42afad4ae176fb1137d3fe3affcde2817f7 /editor/plugins/tile_set_editor_plugin.h | |
| parent | 8b7028e7b13b7a0ed6b8a4d589ada7c83914242e (diff) | |
| download | redot-engine-4a91f94c1339711beaf5c2eff758b17352fed27c.tar.gz | |
Add undo-redo to the TileSet editor, and other improvements
Diffstat (limited to 'editor/plugins/tile_set_editor_plugin.h')
| -rw-r--r-- | editor/plugins/tile_set_editor_plugin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.h b/editor/plugins/tile_set_editor_plugin.h index f2e7e977cb..e4e01750bd 100644 --- a/editor/plugins/tile_set_editor_plugin.h +++ b/editor/plugins/tile_set_editor_plugin.h @@ -94,6 +94,7 @@ class TileSetEditor : public HSplitContainer { Ref<TileSet> tileset; TilesetEditorContext *helper; EditorNode *editor; + UndoRedo *undo_redo; ConfirmationDialog *cd; AcceptDialog *err_dialog; @@ -151,10 +152,14 @@ class TileSetEditor : public HSplitContainer { void update_texture_list(); void update_texture_list_icon(); + void add_texture(Ref<Texture> p_texture); + void remove_texture(Ref<Texture> p_texture); + Ref<Texture> get_current_texture(); static void _import_node(Node *p_node, Ref<TileSet> p_library); static void _import_scene(Node *p_scene, Ref<TileSet> p_library, bool p_merge); + void _undo_redo_import_scene(Node *p_scene, bool p_merge); protected: static void _bind_methods(); @@ -186,6 +191,10 @@ private: void _set_snap_off(Vector2 p_val); void _set_snap_sep(Vector2 p_val); + void _validate_current_tile_id(); + void _select_edited_shape_coord(); + void _undo_tile_removal(int p_id); + void _zoom_in(); void _zoom_out(); void _zoom_reset(); |
