Skip to content

Commit

Permalink
Merge pull request #58861 from Chaosus/gds_debugger_filter_3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Mar 7, 2022
2 parents b6a6c90 + de79e10 commit 56bb439
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions editor/script_editor_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,7 @@ void ScriptEditorDebugger::_notification(int p_what) {
error_tree->connect("item_activated", this, "_error_activated");
vmem_refresh->set_icon(get_icon("Reload", "EditorIcons"));
vmem_export->set_icon(get_icon("Save", "EditorIcons"));
search->set_right_icon(get_icon("Search", "EditorIcons"));

reason->add_color_override("font_color", get_color("error_color", "Editor"));

Expand Down Expand Up @@ -1545,6 +1546,7 @@ void ScriptEditorDebugger::_notification(int p_what) {
docontinue->set_icon(get_icon("DebugContinue", "EditorIcons"));
vmem_refresh->set_icon(get_icon("Reload", "EditorIcons"));
vmem_export->set_icon(get_icon("Save", "EditorIcons"));
search->set_right_icon(get_icon("Search", "EditorIcons"));
} break;
}
}
Expand Down Expand Up @@ -2464,11 +2466,27 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) {
stack_dump->connect("cell_selected", this, "_stack_dump_frame_selected");
sc->add_child(stack_dump);

VBoxContainer *inspector_vbox = memnew(VBoxContainer);
sc->add_child(inspector_vbox);

HBoxContainer *tools_hb = memnew(HBoxContainer);
inspector_vbox->add_child(tools_hb);

search = memnew(LineEdit);
search->set_h_size_flags(Control::SIZE_EXPAND_FILL);
search->set_placeholder(TTR("Filter stack variables"));
search->set_clear_button_enabled(true);
tools_hb->add_child(search);

inspector = memnew(EditorInspector);
inspector->set_h_size_flags(SIZE_EXPAND_FILL);
inspector->set_v_size_flags(SIZE_EXPAND_FILL);
inspector->set_enable_capitalize_paths(false);
inspector->set_read_only(true);
inspector->connect("object_id_selected", this, "_scene_tree_property_select_object");
inspector->register_text_enter(search);
inspector->set_use_filter(true);
inspector_vbox->add_child(inspector);
sc->add_child(inspector);

server.instance();
Expand Down
1 change: 1 addition & 0 deletions editor/script_editor_debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class ScriptEditorDebugger : public MarginContainer {
LineEdit *vmem_total;

Tree *stack_dump;
LineEdit *search;
EditorInspector *inspector;

Ref<TCP_Server> server;
Expand Down

0 comments on commit 56bb439

Please sign in to comment.