Containers of GuiComponent should override setFont #710
nightm4re94
started this conversation in
Old Forum
Replies: 1 comment
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2020-02-17 08:47:28
User: KvaGram [] (age: 1068 days 🔥; posts: 52)
I got a problem. The default fontsize is too big for button elements in a Menu component.
I got no direct access to the font settings for Menu.
The same goes for other such containers, like ImageComponentList.
Now, as it stands right now, I got two ways to fix my problem. I can change the default font, or I can iterate though all the menu buttons, and update each of their fonts one by one.
But why can't such containers just do that for me?
Have them overload setFont and setFontSize to iterate over their child element's setFont and setFontSize.
Beta Was this translation helpful? Give feedback.
All reactions