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.

asked May 23, 2018 in Engine by Gokudomatic2 (689 points)

1 Answer

0 votes

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

answered May 23, 2018 by HalfTough (109 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 How to use this Q&A? before posting your first questions.