How to prevent fading in disabled button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tybobobo
:warning: Old Version Published before Godot 3 was released.

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!

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.

Tybobobo | 2016-05-21 03:15

:bust_in_silhouette: Reply From: Aquiles

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

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

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.

Tybobobo | 2016-05-21 03:15