diff --git a/ui/credits/credits.gd b/ui/credits/credits.gd index 0d684d3..cfdef46 100644 --- a/ui/credits/credits.gd +++ b/ui/credits/credits.gd @@ -5,3 +5,10 @@ extends VBoxContainer func _on_lamp_pressed() -> void: highlight.visible = !highlight.visible + + if !highlight.visible: return + + var hue = randf_range(0.0, 1.0) + var saturation = randf_range(0.5, 1.0) + + highlight.modulate = Color.from_hsv(hue, saturation, 1.0)