diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-02-26 16:17:59 +0200 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-02-26 16:17:59 +0200 |
commit | a9ac4c012ca942ec5deeae4a68f1d51432146eae (patch) | |
tree | 9b347fd3f359a6f946e770ed270e70af252eed0e /modules/gridmap/grid_map_editor_plugin.h | |
parent | 22ee7ba4f083fdfab1c177fcd8d921736b5a91ca (diff) |
Add search box and size slider to GridMap (similar to TileMap's)
Closes #21536
Diffstat (limited to 'modules/gridmap/grid_map_editor_plugin.h')
-rw-r--r-- | modules/gridmap/grid_map_editor_plugin.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map_editor_plugin.h b/modules/gridmap/grid_map_editor_plugin.h index 81a21a76ae..59b8ac13da 100644 --- a/modules/gridmap/grid_map_editor_plugin.h +++ b/modules/gridmap/grid_map_editor_plugin.h @@ -79,6 +79,8 @@ class GridMapEditor : public VBoxContainer { double accumulated_floor_delta; ToolButton *mode_thumbnail; ToolButton *mode_list; + LineEdit *search_box; + HSlider *size_slider; HBoxContainer *spatial_editor_hb; ConfirmationDialog *settings_dialog; VBoxContainer *settings_vbc; @@ -193,6 +195,11 @@ class GridMapEditor : public VBoxContainer { void _update_cursor_instance(); void _update_clip(); + void _text_changed(const String &p_text); + void _sbox_input(const Ref<InputEvent> &p_ie); + + void _icon_size_changed(float p_value); + void _update_duplicate_indicator(); void _duplicate_paste(); void _update_selection_transform(); |