generated from krampus/template-godot4
16 lines
264 B
GDScript
16 lines
264 B
GDScript
class_name PlayerActionLight extends Panel
|
|
|
|
var style_box: StyleBoxFlat
|
|
|
|
|
|
func _ready() -> void:
|
|
style_box = get_theme_stylebox("panel")
|
|
|
|
|
|
func reset() -> void:
|
|
style_box.bg_color = Color(0, 0, 1, 1)
|
|
|
|
|
|
func use() -> void:
|
|
style_box.bg_color = Color(1, 0, 0, 1)
|