How to make a custom drawing button?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gokudomatic2

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.

:bust_in_silhouette: Reply From: HalfTough

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

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.

Gokudomatic2 | 2018-05-28 05:24