+2 votes

I just wish to control the theme at runtime and I noticed that loading the applied theme, and changing something only applies if I call update() on every single GUI elements. Actually the Labels take the new font color if I change their text or if I call update() on them. The solution should be to call update() on the parent container of the entire GUI but it does not call it recursively, so I have to call update() on every labels manually. It becomes a maintenance nightmare.

in Engine by (120 points)

1 Answer

+2 votes
Best answer

A nice person on discord gave me the solution :

propagate_call("update")

by (120 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.