diff options
| author | Hendrik Brucker <hendrik.brucker@mail.de> | 2021-07-04 16:43:55 +0200 |
|---|---|---|
| committer | Hendrik Brucker <hendrik.brucker@mail.de> | 2021-07-04 16:43:55 +0200 |
| commit | 56a8d3f30c09fdc03b19ef48a97d344ffe2df974 (patch) | |
| tree | f3be955afcbb70de9d3afcd8a462ff7cecc980ce /editor/animation_track_editor.cpp | |
| parent | cb4e42155dd3a0e513106d7a219366dd355e9483 (diff) | |
| download | redot-engine-56a8d3f30c09fdc03b19ef48a97d344ffe2df974.tar.gz | |
Improvements to Label's layout options
- Added options to trim the text in case it overruns
- Added more autowrap modes
- Improved line breaking, which ignores trailing spaces
Diffstat (limited to 'editor/animation_track_editor.cpp')
| -rw-r--r-- | editor/animation_track_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index f61fb6bab3..7090572b0f 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -5784,7 +5784,7 @@ AnimationTrackEditor::AnimationTrackEditor() { info_message->set_text(TTR("Select an AnimationPlayer node to create and edit animations.")); info_message->set_valign(Label::VALIGN_CENTER); info_message->set_align(Label::ALIGN_CENTER); - info_message->set_autowrap(true); + info_message->set_autowrap_mode(Label::AUTOWRAP_WORD_SMART); info_message->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); info_message->set_anchors_and_offsets_preset(PRESET_WIDE, PRESET_MODE_KEEP_SIZE, 8 * EDSCALE); main_panel->add_child(info_message); |
