MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / popup_dialog

Method popup_dialog

editor/script/script_editor_plugin.cpp:380–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void ScriptEditorQuickOpen::popup_dialog(const Vector<String> &p_functions, bool p_dontclear) {
381 popup_centered_ratio(0.6);
382 if (p_dontclear) {
383 search_box->select_all();
384 } else {
385 search_box->clear();
386 }
387 search_box->grab_focus();
388 functions = p_functions;
389 _update_search();
390}
391
392void ScriptEditorQuickOpen::_text_changed(const String &p_newtext) {
393 _update_search();

Callers 3

_edit_optionMethod · 0.45
_menu_optionMethod · 0.45
_help_searchMethod · 0.45

Calls 3

select_allMethod · 0.45
clearMethod · 0.45
grab_focusMethod · 0.45

Tested by

no test coverage detected