Merge pull request #15126 from poke1024/code-editor-autowrap-error

Make code editor's error display autowrap
This commit is contained in:
Rémi Verschelde 2018-01-03 13:47:43 +01:00 committed by GitHub
commit cdcf2e7e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1251,7 +1251,7 @@ CodeTextEditor::CodeTextEditor() {
error = memnew(Label);
status_bar->add_child(error);
error->set_clip_text(true); //do not change, or else very long errors can push the whole container to the right
error->set_autowrap(true);
error->set_valign(Label::VALIGN_CENTER);
error->add_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor"));
error->add_font_override("font", EditorNode::get_singleton()->get_gui_base()->get_font("status_source", "EditorFonts"));