From e79f3fa36229c620282011e4a7046b4700e20f31 Mon Sep 17 00:00:00 2001 From: Kirill Date: Tue, 22 Sep 2026 23:54:13 +0300 Subject: [PATCH] Fix highlight visibility toggle and enhance color modulation logic --- ui/credits/credits.gd | 7 +++++++ 1 file changed, 7 insertions(+) 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)