So I wanna create an OptionButton with items and item icons as coloured circle,
But without using an image of a circle.
So I try to write a class derived from CanvasItem and named it MyCanvas:
var color = Color.antiquewhite
draw_circle( Vector2(0,0), 50, color)
And then load this class in the project:
onready var opt = $OptionButton
var my_canvas = load("res://res/MyNodes/MyCanvas.gd")
var circle = my_canvas.new()
But item icon isn't showing anything.
Thanks for reading and helping.