pneuma-pygame/Godot/addons/Todo_Manager/ColourPicker.gd
2024-05-17 01:16:20 +02:00

17 lines
318 B
GDScript

@tool
extends HBoxContainer
var colour : Color
var title : String:
set = set_title
var index : int
@onready var colour_picker := $TODOColourPickerButton
func _ready() -> void:
$TODOColourPickerButton.color = colour
$Label.text = title
func set_title(value: String) -> void:
title = value
$Label.text = value