0 votes

I know how to draw in a Control, using the _draw function, but what's the proper way to make a button that has different renderings depending on the state of the button?

My final goal is to make a button like the color picker button, in which the main color can dynamically change.

in Engine by (703 points)

1 Answer

0 votes

Never did it myself, but you can find basic information about custom GUI controls in the docks

by (114 points)

Sorry but it didn't really help me. Sure it says how to draw custom GUI, but it doesn't tell how to draw a standard button. At best it could only tell me how to draw a filled rectangle.

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.