diff options
author | kobewi <kobewi4e@gmail.com> | 2021-10-14 01:13:08 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-10-14 02:24:39 +0200 |
commit | 0afd47d8bce2babd22d463be7dd68978dfa205b7 (patch) | |
tree | 3adb4ad88bd808962cba98e913715c0d358c20f1 /editor/plugins/tiles/tile_map_editor.h | |
parent | d956904091b620bea5ee6eec9bd1413a97bba69a (diff) | |
download | redot-engine-0afd47d8bce2babd22d463be7dd68978dfa205b7.tar.gz |
Add tool quick-select to tile editor
Diffstat (limited to 'editor/plugins/tiles/tile_map_editor.h')
-rw-r--r-- | editor/plugins/tiles/tile_map_editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_map_editor.h b/editor/plugins/tiles/tile_map_editor.h index a1ab3db318..5fbd9cada8 100644 --- a/editor/plugins/tiles/tile_map_editor.h +++ b/editor/plugins/tiles/tile_map_editor.h @@ -104,12 +104,14 @@ private: Vector2 drag_start_mouse_pos; Vector2 drag_last_mouse_pos; Map<Vector2i, TileMapCell> drag_modified; + bool rmb_erasing = false; TileMapCell _pick_random_tile(const TileMapPattern *p_pattern); Map<Vector2i, TileMapCell> _draw_line(Vector2 p_start_drag_mouse_pos, Vector2 p_from_mouse_pos, Vector2 p_to_mouse_pos); Map<Vector2i, TileMapCell> _draw_rect(Vector2i p_start_cell, Vector2i p_end_cell); Map<Vector2i, TileMapCell> _draw_bucket_fill(Vector2i p_coords, bool p_contiguous); void _stop_dragging(); + bool _is_erasing() const; ///// Selection system. ///// Set<Vector2i> tile_map_selection; |