Godot Version
4.2.1
Question
Hi! I’m looking to do something very simple, yet I have lost two days over it already.
I have a button. I create a theme. I add the “Button” node in my theme to edit its properties. I go to the StyleBoxFlat tab. There, I see different states for my button: hover, normal, disabled, etc.
I also have the possibility to add a custom state.
My question is as follow: how the hell do I access this custom state through code later on? I have tried literally everything and I cannot find a straight answer anywhere, to the point it’s driving me crazy. Let’s say my state is “locked”.
If the button.disabled is true, it loads the “disabled” version of the theme.
How do I do the same for button.locked = true??
Thanks in advance.