added TODO
This commit is contained in:
17
addons/Todo_Manager/ColourPicker.gd
Normal file
17
addons/Todo_Manager/ColourPicker.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user