pandemonium_demo_projects/web/app_web_interface/MainScene.gd

14 lines
389 B
GDScript3
Raw Normal View History

2024-01-02 12:07:55 +01:00
extends Node
export(NodePath) var color_picker_path
func get_color() -> Color:
var style_box : StyleBoxFlat = get_node(^"PanelContainer").get_theme_stylebox("panel")
return style_box.bg_color
func set_color(color : Color):
var style_box : StyleBoxFlat = get_node(^"PanelContainer").get_theme_stylebox("panel")
style_box.bg_color = color
get_node(color_picker_path).color = color