Fix highlight visibility toggle and enhance color modulation logic

This commit is contained in:
Kirill
2026-09-22 23:54:13 +03:00
parent e87d4083e9
commit e79f3fa362
+7
View File
@@ -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)