diff options
author | groud <gilles.roudiere@gmail.com> | 2018-10-29 17:16:18 +0100 |
---|---|---|
committer | groud <gilles.roudiere@gmail.com> | 2018-10-30 14:43:52 +0100 |
commit | bdb5282ea0da6d96baa5da0797a4367e15967182 (patch) | |
tree | 0dc95a7fc6ef202858292d7988cd953f2cd08389 /editor/plugins/tile_map_editor_plugin.h | |
parent | 13582354fd9a77428dcd38ac8e05ca0d2eb1ccba (diff) | |
download | redot-engine-bdb5282ea0da6d96baa5da0797a4367e15967182.tar.gz |
Enhance the tilemap transform buttons
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.h')
-rw-r--r-- | editor/plugins/tile_map_editor_plugin.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.h b/editor/plugins/tile_map_editor_plugin.h index 3d44647a1b..68e5806ee5 100644 --- a/editor/plugins/tile_map_editor_plugin.h +++ b/editor/plugins/tile_map_editor_plugin.h @@ -93,13 +93,13 @@ class TileMapEditor : public VBoxContainer { Label *tile_info; MenuButton *options; - ToolButton *transp; - ToolButton *mirror_x; - ToolButton *mirror_y; - ToolButton *rotate_0; - ToolButton *rotate_90; - ToolButton *rotate_180; - ToolButton *rotate_270; + + ToolButton *flip_horizontal_button; + ToolButton *flip_vertical_button; + ToolButton *rotate_left_button; + ToolButton *rotate_right_button; + ToolButton *clear_transform_button; + CheckBox *manual_button; Tool tool; @@ -196,11 +196,15 @@ class TileMapEditor : public VBoxContainer { void _tileset_settings_changed(); void _icon_size_changed(float p_value); + void _clear_transform(); + void _flip_horizontal(); + void _flip_vertical(); + void _rotate(int steps); + protected: void _notification(int p_what); static void _bind_methods(); CellOp _get_op_from_cell(const Point2i &p_pos); - void _update_transform_buttons(Object *p_button = NULL); public: HBoxContainer *get_toolbar() const { return toolbar; } |