I think everything is clear. Can I add a icon to a label or richtextlabel
add_image() would do the job, just remember that it requires a texture and not a picture
Does this need to be written in a richtextlabel script?
either that or you reference another richtextlabel object, like richtextlabel.add_image(t,10,10)
As many other coding langues, in Godot all the functions (methods) are linked to an object (nodes): you can refer to any node (and call its related methods) from every piece of script, you just have to specify it before the "."
If you dont specify it, Godot assumes you are referencing the same node the script is attached to