Skip to content

Commit db920eb

Browse files
committed
Use Unicode arrow symbols throughout the editor
This does not apply to text printed to the Output panel, as the fixed-width font may not have the glyph in its character set (or if it does, the arrow character may be hard to read).
1 parent f5918a9 commit db920eb

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

editor/animation/animation_library_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void AnimationLibraryEditor::_load_files(const PackedStringArray &p_paths) {
367367
show_error_diag = true;
368368
const Ref<PackedScene> scene = res;
369369
if (scene.is_valid()) {
370-
error_dialog->set_text(TTR("The file you selected is an imported scene from a 3D model such as glTF or FBX.\n\nIn Godot, 3D models can be imported as either scenes or animation libraries, which is why they show up here.\n\nIf you want to use animations from this 3D model, open the Advanced Import Settings\ndialog and save the animations using Actions... -> Set Animation Save Paths,\nor import the whole scene as a single AnimationLibrary in the Import dock."));
370+
error_dialog->set_text(TTR(U"The file you selected is an imported scene from a 3D model such as glTF or FBX.\n\nIn Godot, 3D models can be imported as either scenes or animation libraries, which is why they show up here.\n\nIf you want to use animations from this 3D model, open the Advanced Import Settings\ndialog and save the animations using Actions... Set Animation Save Paths,\nor import the whole scene as a single AnimationLibrary in the Import dock."));
371371
} else {
372372
error_dialog->set_text(TTR("The file you selected is not a valid AnimationLibrary.\n\nIf the animations you want are inside of this file, save them to a separate file first."));
373373
}

editor/animation/animation_state_machine_editor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ void AnimationNodeStateMachineEditor::_state_machine_gui_input(const Ref<InputEv
758758
if (closest_for_tooltip >= 0) {
759759
String from = transition_lines[closest_for_tooltip].from_node;
760760
String to = transition_lines[closest_for_tooltip].to_node;
761-
String tooltip = from + " -> " + to;
761+
String tooltip = from + U" " + to;
762762
state_machine_draw->set_tooltip_text(tooltip);
763763
} else {
764764
state_machine_draw->set_tooltip_text("");
@@ -2222,7 +2222,7 @@ bool EditorAnimationMultiTransitionEdit::_get(const StringName &p_name, Variant
22222222
StringName prop = String(p_name).get_slicec('/', 1);
22232223

22242224
if (prop == "transition_path") {
2225-
r_property = String(transitions[index].from) + " -> " + transitions[index].to;
2225+
r_property = String(transitions[index].from) + U" " + transitions[index].to;
22262226
return true;
22272227
}
22282228

editor/plugins/plugin_config_dialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ PluginConfigDialog::PluginConfigDialog() {
229229
plugin_edit_hidden_controls.push_back(subfolder_lb);
230230

231231
subfolder_edit = memnew(LineEdit);
232-
subfolder_edit->set_placeholder("\"my_plugin\" -> res://addons/my_plugin");
232+
subfolder_edit->set_placeholder(U"\"my_plugin\" res://addons/my_plugin");
233233
subfolder_edit->set_tooltip_text(TTR("Optional. The folder name should generally use `snake_case` naming (avoid spaces and special characters).\nIf left empty, the folder will be named after the plugin name converted to `snake_case`."));
234234
subfolder_edit->set_accessibility_name(TTRC("Subfolder:"));
235235
subfolder_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
@@ -305,7 +305,7 @@ PluginConfigDialog::PluginConfigDialog() {
305305

306306
script_edit = memnew(LineEdit);
307307
script_edit->set_tooltip_text(TTR("Optional. The name of the script file. If left empty, will default to the subfolder name."));
308-
script_edit->set_placeholder("\"plugin.gd\" -> res://addons/my_plugin/plugin.gd");
308+
script_edit->set_placeholder(U"\"plugin.gd\" res://addons/my_plugin/plugin.gd");
309309
script_edit->set_accessibility_name(TTRC("Script Name:"));
310310
script_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
311311
grid->add_child(script_edit);

editor/scene/2d/tiles/tile_proxies_manager_dialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,23 @@ void TileProxiesManagerDialog::_update_lists() {
9696
Array proxies = tile_set->get_source_level_tile_proxies();
9797
for (int i = 0; i < proxies.size(); i++) {
9898
Array proxy = proxies[i];
99-
String text = vformat("%s", proxy[0]).rpad(5) + "-> " + vformat("%s", proxy[1]);
99+
String text = vformat("%s", proxy[0]).rpad(5) + U" " + vformat("%s", proxy[1]);
100100
int id = source_level_list->add_item(text);
101101
source_level_list->set_item_metadata(id, proxy[0]);
102102
}
103103

104104
proxies = tile_set->get_coords_level_tile_proxies();
105105
for (int i = 0; i < proxies.size(); i++) {
106106
Array proxy = proxies[i];
107-
String text = vformat("%s, %s", proxy[0], proxy[1]).rpad(17) + "-> " + vformat("%s, %s", proxy[2], proxy[3]);
107+
String text = vformat("%s, %s", proxy[0], proxy[1]).rpad(17) + U" " + vformat("%s, %s", proxy[2], proxy[3]);
108108
int id = coords_level_list->add_item(text);
109109
coords_level_list->set_item_metadata(id, proxy.slice(0, 2));
110110
}
111111

112112
proxies = tile_set->get_alternative_level_tile_proxies();
113113
for (int i = 0; i < proxies.size(); i++) {
114114
Array proxy = proxies[i];
115-
String text = vformat("%s, %s, %s", proxy[0], proxy[1], proxy[2]).rpad(24) + "-> " + vformat("%s, %s, %s", proxy[3], proxy[4], proxy[5]);
115+
String text = vformat("%s, %s, %s", proxy[0], proxy[1], proxy[2]).rpad(24) + U" " + vformat("%s, %s, %s", proxy[3], proxy[4], proxy[5]);
116116
int id = alternative_level_list->add_item(text);
117117
alternative_level_list->set_item_metadata(id, proxy.slice(0, 3));
118118
}

editor/scene/3d/node_3d_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6301,7 +6301,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
63016301
locked_label->hide();
63026302

63036303
zoom_limit_label = memnew(Label);
6304-
zoom_limit_label->set_text(TTRC("To zoom further, change the camera's clipping planes (View -> Settings...)"));
6304+
zoom_limit_label->set_text(TTRC(U"To zoom further, change the camera's clipping planes (View Settings...)"));
63056305
zoom_limit_label->set_name("ZoomLimitMessageLabel");
63066306
zoom_limit_label->add_theme_color_override(SceneStringName(font_color), Color(1, 1, 1, 1));
63076307
zoom_limit_label->hide();

editor/shader/visual_shader_editor_plugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6024,7 +6024,7 @@ void VisualShaderEditor::_varying_validate() {
60246024
if (has_error) {
60256025
error += "\n";
60266026
}
6027-
error += vformat(TTR("Boolean type cannot be used with `%s` varying mode."), "Vertex -> [Fragment, Light]");
6027+
error += vformat(TTR("Boolean type cannot be used with `%s` varying mode."), U"Vertex [Fragment, Light]");
60286028
has_error = true;
60296029
}
60306030

@@ -6992,8 +6992,8 @@ VisualShaderEditor::VisualShaderEditor() {
69926992

69936993
varying_mode = memnew(OptionButton);
69946994
hb->add_child(varying_mode);
6995-
varying_mode->add_item("Vertex -> [Fragment, Light]");
6996-
varying_mode->add_item("Fragment -> Light");
6995+
varying_mode->add_item(U"Vertex [Fragment, Light]");
6996+
varying_mode->add_item(U"Fragment Light");
69976997
varying_mode->set_accessibility_name(TTRC("Varying Mode"));
69986998
varying_mode->connect(SceneStringName(item_selected), callable_mp(this, &VisualShaderEditor::_varying_mode_changed));
69996999

modules/interactive_music/editor/audio_stream_interactive_editor_plugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ void AudioStreamInteractiveTransitionEditor::_update_transitions() {
183183
if (!exists) {
184184
if (audio_stream_interactive->has_transition(AudioStreamInteractive::CLIP_ANY, to)) {
185185
from = AudioStreamInteractive::CLIP_ANY;
186-
tooltip = vformat(TTR("Using Any Clip -> %s."), audio_stream_interactive->get_clip_name(to));
186+
tooltip = vformat(TTR(U"Using any clip → %s."), audio_stream_interactive->get_clip_name(to));
187187
} else if (audio_stream_interactive->has_transition(from, AudioStreamInteractive::CLIP_ANY)) {
188188
to = AudioStreamInteractive::CLIP_ANY;
189-
tooltip = vformat(TTR("Using %s -> Any Clip."), audio_stream_interactive->get_clip_name(from));
189+
tooltip = vformat(TTR(U"Using %s Any clip."), audio_stream_interactive->get_clip_name(from));
190190
} else if (audio_stream_interactive->has_transition(AudioStreamInteractive::CLIP_ANY, AudioStreamInteractive::CLIP_ANY)) {
191191
from = to = AudioStreamInteractive::CLIP_ANY;
192-
tooltip = TTR("Using All Clips -> Any Clip.");
192+
tooltip = TTR(U"Using all clips → Any clip.");
193193
} else {
194194
tooltip = TTR("No transition available.");
195195
}

modules/objectdb_profiler/editor/snapshot_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void GameStateSnapshot::_get_rc_cycles(
264264
SnapshotDataObject *next_obj = p_obj->snapshot->objects[next_child.value];
265265
String next_name = next_obj == p_source_obj ? "self" : next_obj->get_name();
266266
String current_name = p_obj == p_source_obj ? "self" : p_obj->get_name();
267-
String child_path = current_name + "[\"" + next_child.key + "\"] -> " + next_name;
267+
String child_path = current_name + "[\"" + next_child.key + U"\"] " + next_name;
268268
if (p_current_path != "") {
269269
child_path = p_current_path + "\n" + child_path;
270270
}

0 commit comments

Comments
 (0)