Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the TextServer.

This commit is contained in:
bruvzg 2022-06-15 11:01:45 +03:00
parent ef6511fbb4
commit b5c96df277
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
45 changed files with 254 additions and 403 deletions

View file

@ -4851,7 +4851,7 @@ VisualShaderEditor::VisualShaderEditor() {
error_label = memnew(Label);
error_panel->add_child(error_label);
error_label->set_autowrap_mode(Label::AUTOWRAP_WORD_SMART);
error_label->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
///////////////////////////////////////
// POPUP MENU
@ -5008,7 +5008,7 @@ VisualShaderEditor::VisualShaderEditor() {
}
alert = memnew(AcceptDialog);
alert->get_label()->set_autowrap_mode(Label::AUTOWRAP_WORD);
alert->get_label()->set_autowrap_mode(TextServer::AUTOWRAP_WORD);
alert->get_label()->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
alert->get_label()->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
alert->get_label()->set_custom_minimum_size(Size2(400, 60) * EDSCALE);