pneuma-pygame/Godot/addons/Todo_Manager/ColourPicker.gd

18 lines
318 B
GDScript3
Raw Normal View History

2024-05-16 23:16:20 +00:00
@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