5
votes
[SOLVED] Bug: Text labels disappear in settings menu
I'm touching up a game with a dev who is getting their code ready for a FOSS build of their game. One of the more persistent bugs is something weird in the settings menu, where an option is focused and checked off, the text label disappears. Color override doesn't seem to affect the behavior, but if I go into the game editor and uncheck Clip Content and Follow Focus, the behavior flips and now it's focused and UNchecked text labels that disappear. I'm putting feelers out for advice on the usual haunts, and I thought I would ask here too.
Godot version is 3.6, the only modification is that it uses Godotsteam.
If you want to post or PM the project directory, I'd be willing to take a look.
My first hunch is something to do with signals, either something is listening to the is_pressed signal on the Checkbox, or otherwise the Label node is somehow parented to the checkbox in a way that's state-dependent.
I'm a little confused by the interaction with Follow Focus though, it looks like that's a property of ScrollContainer. So are you changing this property on a parent ScrollContainer of the affected Checkbox?
What happens when you check the Checkbox (so the label text disappears) and then move focus to the Label? (e.g. using Tab) Does the label reappear once focused?
I think I figured it out. I was able to go into the Debugger and bring overwrite text back into visibility when I changed the variable for font_color_hover_pressed, so it looks like something that would need to be changed in the theme? We're giving it another look, will report back if something comes up.