- Edited
Hey guys. I'm not much of a commenter here, but I have a question; How do I change the color of a node: 'panel'. Good 4? Currently my code looks like this (non-functional):func paint_the_round(btn_node: TextureButton):
var panel = btn_node.get_node('Panel').get_theme_stylebox('StyleBoxFlat')
print("bg_color before -> ",panel.bg_color)
panel.bg_color = (Color(1, 0.4, 0.21, 1))
print("bg_color after -> ",panel.bg_color)
btn_node.get_node('Panel').queue_redraw()