clockwork-city/prefabs/ui/player_action_light.gd

16 lines
264 B
GDScript3
Raw Permalink Normal View History

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)