Color Picker Text Button

An asset by Andrew Wilkes
The page banner background of a mountain and forest
Color Picker Text Button hero image

Quick Information

0 ratings
Color Picker Text Button icon image
Andrew Wilkes
Color Picker Text Button

Plugin for a custom node similar to the ColorPickerButton node but with a text label.

Supported Engine Version
3.3
Version String
1.2
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Color Picker Text Button

Plugin for a custom node similar to the ColorPickerButton node but with a text label.

README Screen Shot

Features of the button

  • it uses a style box that is modulated with the picked color
  • the color of the text is flipped between a light and dark color to give good contrast with the background color
  • the color picker is simplified by default, removing the sliders
  • a tool script automatically copies the style and darkens the shade for the button states

Usage

Activate the plugin in Project Settings.

After adding a ColorPickerTextButton node to your scene, you may customize the Script Variables in the Inspector panel.

The label text is changed via the Text Value variable, and the Button text value is deleted/ignored.

To confirm a color selection, click outside the color picker panel.

To reset the Button Style, uncheck the boxes in Button Custom Styles and click the reset button for the Style Script Variable.

Drop a new StyleBox Resource into the Style Script Variable entry box to change the Button Styles.

The fresh property is used as a flag to indicate to the script that the button is new and may be initialized with a size and style.

Signals

  • popup_hide - emitted when the popup panel is closed
  • color_changed(color) - emitted as the selected color is changed

Other signals are as per the Button Node.

Plugin for a custom node similar to the ColorPickerButton node but with a text label.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Color Picker Text Button icon image
Andrew Wilkes
Color Picker Text Button

Plugin for a custom node similar to the ColorPickerButton node but with a text label.

Supported Engine Version
3.3
Version String
1.2
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers