aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin2018-05-26 13:50:46 +0200
committerBenjamin2018-05-26 13:52:16 +0200
commit98233073a9c8839e142ca5c430d382c7ae2ca348 (patch)
treea4550cb21114679c82fd89d9e7892dc189fabe40
parenta71b0830ab79709ec7f6daa1c9a03c6de6e9f83b (diff)
downloadgodot-98233073a9c8839e142ca5c430d382c7ae2ca348.tar.gz
godot-98233073a9c8839e142ca5c430d382c7ae2ca348.tar.zst
godot-98233073a9c8839e142ca5c430d382c7ae2ca348.zip
-rw-r--r--editor/script_editor_debugger.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index 9ce430568..62848a603 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -872,7 +872,7 @@ void ScriptEditorDebugger::_set_reason_text(const String &p_reason, MessageType
reason->add_color_override("font_color", get_color("success_color", "Editor"));
}
reason->set_text(p_reason);
- reason->set_tooltip(p_reason);
+ reason->set_tooltip(p_reason.word_wrap(80));
}
void ScriptEditorDebugger::_performance_select() {
@@ -1877,6 +1877,9 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) {
reason->set_text("");
hbc->add_child(reason);
reason->set_h_size_flags(SIZE_EXPAND_FILL);
+ reason->set_autowrap(true);
+ reason->set_max_lines_visible(3);
+ reason->set_mouse_filter(Control::MOUSE_FILTER_PASS);
hbc->add_child(memnew(VSeparator));