diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-07-25 00:15:20 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-08-31 15:31:49 +0200 |
commit | 291d3aaabefa86b4e102fa7385bcf7aacd240d72 (patch) | |
tree | ff6a8f88a935e3a0faf89ff06e5a77a6bd562e57 /editor/editor_resource_picker.cpp | |
parent | de5f13e9356c1c075ced91893a67164f062b36bc (diff) | |
download | redot-engine-291d3aaabefa86b4e102fa7385bcf7aacd240d72.tar.gz |
Improve null and object printing to avoid confusion with arrays
- Use different syntax for object printing to avoid confusion with arrays.
- Print null as `<null>` to avoid confusion with a string `"null"`.
- Display `<empty>` in editor resource pickers to avoid confusion
with array-based properties.
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r-- | editor/editor_resource_picker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index 22e7b01418..f717188b3b 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -61,7 +61,7 @@ void EditorResourcePicker::_update_resource() { if (edited_resource == Ref<Resource>()) { assign_button->set_icon(Ref<Texture2D>()); - assign_button->set_text(TTR("[empty]")); + assign_button->set_text(TTR("<empty>")); assign_button->set_tooltip_text(""); } else { assign_button->set_icon(EditorNode::get_singleton()->get_object_icon(edited_resource.operator->(), "Object")); @@ -1113,7 +1113,7 @@ void EditorAudioStreamPicker::_update_resource() { void EditorAudioStreamPicker::_preview_draw() { Ref<AudioStream> audio_stream = get_edited_resource(); if (!audio_stream.is_valid()) { - get_assign_button()->set_text(TTR("[empty]")); + get_assign_button()->set_text(TTR("<empty>")); return; } |