From 95a8b2b5d9cc7d9a2b4302a9259a3035b572cd35 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 9 Aug 2019 03:47:09 -0300 Subject: Make the script search have a proper matches counter --- editor/code_editor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/code_editor.h') diff --git a/editor/code_editor.h b/editor/code_editor.h index 700e72627c..a4b3aa312f 100644 --- a/editor/code_editor.h +++ b/editor/code_editor.h @@ -64,6 +64,7 @@ class FindReplaceBar : public HBoxContainer { GDCLASS(FindReplaceBar, HBoxContainer); LineEdit *search_text; + Label *matches_label; ToolButton *find_prev; ToolButton *find_next; CheckBox *case_sensitive; @@ -90,6 +91,7 @@ class FindReplaceBar : public HBoxContainer { void _get_search_from(int &r_line, int &r_col); void _update_results_count(); + void _update_matches_label(); void _show_search(); void _hide_bar(); -- cgit v1.2.3 From 72c40c788fdd7b2e83c21c861a9e9a472774fff0 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 12 Aug 2019 20:31:53 +0200 Subject: Tweak the behavior of search/replace bar --- editor/code_editor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/code_editor.h') diff --git a/editor/code_editor.h b/editor/code_editor.h index a4b3aa312f..f2a55cfb70 100644 --- a/editor/code_editor.h +++ b/editor/code_editor.h @@ -93,7 +93,7 @@ class FindReplaceBar : public HBoxContainer { void _update_results_count(); void _update_matches_label(); - void _show_search(); + void _show_search(bool p_focus_replace = false, bool p_show_only = false); void _hide_bar(); void _editor_text_changed(); @@ -125,7 +125,7 @@ public: void set_text_edit(TextEdit *p_text_edit); - void popup_search(); + void popup_search(bool p_show_only = false); void popup_replace(); bool search_current(); -- cgit v1.2.3