How to add Modulation of Colour Manually to Buttons in GDScript (if Possible?)

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

Basically i want to make a custom user interface where they can choose the Colour of the Gui/Hud manually using a colour picker button,

How would i go about doing this in such a way where i can just use a grey sprite/texture on the button then have the Colour picker node Decide what colour it is on the Button

Edit: For Clarification, i am /not/ using sprite nodes, i am using Button Nodes

:bust_in_silhouette: Reply From: Daniel Lewan

About button node I see two options. You could try to generate style in runtime or use shader. (Take a look at shader demos)

http://docs.godotengine.org/en/latest/tutorials/2d/gui_skinning.html

Way simpler option is to use TextureButton. It provides Modulate property you can access easily from GDSrcipt

Oh, thanks, Forgot about the texture button ^^; THanks for the Help!

The_Duskitty | 2016-03-11 14:44