This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
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!

in Engine by (509 points)
edited by

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.

by (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 Frequently asked questions and 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 [email protected] with your username.