0 votes

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

in Engine by (484 points)

1 Answer

0 votes
Best answer

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/classes/class_stylebox.html

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

by (368 points)
selected by

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

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.
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 webmaster@godotengine.org with your username.