mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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
This commit is contained in:
@@ -130,6 +130,6 @@ NodeDock::NodeDock() {
|
||||
select_a_node->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
select_a_node->set_valign(Label::VALIGN_CENTER);
|
||||
select_a_node->set_align(Label::ALIGN_CENTER);
|
||||
select_a_node->set_autowrap(true);
|
||||
select_a_node->set_autowrap_mode(Label::AUTOWRAP_WORD_SMART);
|
||||
add_child(select_a_node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user