1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-07 17:36:07 +00:00

Allow to change selection around all tiles on the texture without clicking on them. Fixes #25203. Fixes #22077

This commit is contained in:
Mariano Suligoy
2019-02-28 20:48:34 -03:00
parent 057d3e874d
commit 33be8b0701
2 changed files with 192 additions and 0 deletions

View File

@@ -76,6 +76,8 @@ class TileSetEditor : public HSplitContainer {
};
enum TileSetTools {
SELECT_PREVIOUS,
SELECT_NEXT,
TOOL_SELECT,
BITMASK_COPY,
BITMASK_PASTE,
@@ -188,6 +190,12 @@ private:
void _on_priority_changed(float val);
void _on_z_index_changed(float val);
void _on_grid_snap_toggled(bool p_val);
void _select_next_tile();
void _select_previous_tile();
Array _get_tiles_in_current_texture(bool sorted = false);
bool _sort_tiles(Variant p_a, Variant p_b);
void _select_next_subtile();
void _select_previous_subtile();
void _set_snap_step(Vector2 p_val);
void _set_snap_off(Vector2 p_val);
void _set_snap_sep(Vector2 p_val);