You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add text overrun behavior for the theme type selector
This commit is contained in:
@@ -3381,6 +3381,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
|||||||
|
|
||||||
theme_type_list = memnew(OptionButton);
|
theme_type_list = memnew(OptionButton);
|
||||||
theme_type_list->set_h_size_flags(SIZE_EXPAND_FILL);
|
theme_type_list->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||||
|
theme_type_list->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
|
||||||
type_list_hb->add_child(theme_type_list);
|
type_list_hb->add_child(theme_type_list);
|
||||||
theme_type_list->connect("item_selected", callable_mp(this, &ThemeTypeEditor::_list_type_selected));
|
theme_type_list->connect("item_selected", callable_mp(this, &ThemeTypeEditor::_list_type_selected));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user