Godot Version
4.6.1
Question
Hey there! Super new to coding game. Coded a lot of html and CSS in school though. I followed a tutorial to make a color picker character editor and got it to work, but I am using that model to make what I actually want to now which is more complicated.
I am getting an error that says “main.@implicit_ready: trying to assign value of type ‘color picker’ to a variable of type bodytonebutton.gd. A file name doesn’t exactly sound like a variable type to me, but the
The node layout on the button scene is bodycontrolpanel→bodytonebutton→VBoxContainer→ColorPicker
Control→button→VBoxContainer→ColorPicker
the code is
class_name bodytone panel extends Control
signal changed (color: Color)
@onready var _color_picker: ColorPicker = $bodytonebutton/VBoxContainer/ColorPicker
func _ready() → void:
_color_picker.color_changed.connect(_on_color_changed)
func _on_color_changed(color: Color ) → void:
changed.emit(color)
pass
Thx in advance