From 10ef55ce2358b6ac1f1bab2445168854ad32e73c Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 28 Jul 2021 19:47:11 +0200 Subject: [PATCH] Use bullet points in the editor instead of dashes where relevant --- editor/project_export.cpp | 2 +- editor/script_create_dialog.cpp | 4 ++-- scene/animation/animation_tree.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/project_export.cpp b/editor/project_export.cpp index d78651494d1..746d0670ec9 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -1081,7 +1081,7 @@ ProjectExportDialog::ProjectExportDialog() { script_key = memnew(LineEdit); script_key->connect("text_changed", this, "_script_encryption_key_changed"); script_key_error = memnew(Label); - script_key_error->set_text("- " + TTR("Invalid Encryption Key (must be 64 hexadecimal characters long)")); + script_key_error->set_text(String::utf8("• ") + TTR("Invalid Encryption Key (must be 64 hexadecimal characters long)")); script_key_error->add_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor")); script_vb->add_margin_child(TTR("GDScript Encryption Key (256-bits as hexadecimal):"), script_key); script_vb->add_child(script_key_error); diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index d9a5ef5b02a..f78d3f034c1 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -602,7 +602,7 @@ void ScriptCreateDialog::_path_entered(const String &p_path) { } void ScriptCreateDialog::_msg_script_valid(bool valid, const String &p_msg) { - error_label->set_text("- " + TTR(p_msg)); + error_label->set_text(String::utf8("• ") + TTR(p_msg)); if (valid) { error_label->add_color_override("font_color", get_color("success_color", "Editor")); } else { @@ -611,7 +611,7 @@ void ScriptCreateDialog::_msg_script_valid(bool valid, const String &p_msg) { } void ScriptCreateDialog::_msg_path_valid(bool valid, const String &p_msg) { - path_error_label->set_text("- " + TTR(p_msg)); + path_error_label->set_text(String::utf8("• ") + TTR(p_msg)); if (valid) { path_error_label->add_color_override("font_color", get_color("success_color", "Editor")); } else { diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 7a7659ed493..d0f1de5151e 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -138,7 +138,7 @@ void AnimationNode::make_invalid(const String &p_reason) { if (state->invalid_reasons != String()) { state->invalid_reasons += "\n"; } - state->invalid_reasons += "- " + p_reason; + state->invalid_reasons += String::utf8("• ") + p_reason; } float AnimationNode::blend_input(int p_input, float p_time, bool p_seek, float p_blend, FilterAction p_filter, bool p_optimize) {