0 votes

I am trying to find out how to prevent the automatic button fading that happens when a button is disabled (demonstrated above).

I am using a custom StyleBoxFlat for it, but there is no option for me to turn the fading on/off.

The reason I am setting disabled to true is to prevent users from clicking it after it already have been clicked.

Any help would be appreciated!

asked May 20, 2016 in Engine by Tybobobo (453 points)
edited May 20, 2016 by Tybobobo

If someone could confirm that it is indeed NOT possible to disable the automatic fading of the Button let me know and I will mark this as solved.

1 Answer

0 votes

hello, using a TextureButton, that gives the option to which you want.

enter image description here

you can create the texture you want to show off button.

answered May 21, 2016 by Aquiles (84 points)

That would work, but it does not solve the problem of not being able to toggle fading on/off in "disabled" button style. Currently it does not appear to be a way to do so without using completely other methods, so I will create custom textured buttons as you recommended. So for me that would work in this case.

Thank you.

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.