godot-resources-as-sheets-p.../addons/resources_speadsheet_view/editor_stylebox_overrider.gd

22 lines
474 B
GDScript3
Raw Permalink Normal View History

tool
class_name ThemeStylebox
extends Control
export var box_class := "EditorStyles" setget _set_box_class
export var box_name := "Background" setget _set_box_name
func _ready():
2022-09-24 17:36:54 +02:00
_set_box_name(box_name)
_set_box_class(box_class)
func _set_box_name(v):
box_name = v
2023-10-09 13:57:26 +02:00
add_theme_stylebox_override(box_name, get_theme_stylebox(box_name, box_class))
func _set_box_class(v):
box_class = v
2023-10-09 13:57:26 +02:00
add_theme_stylebox_override(box_name, get_theme_stylebox(box_name, box_class))