Fix highlight visibility toggle and enhance color modulation logic
This commit is contained in:
@@ -5,3 +5,10 @@ extends VBoxContainer
|
|||||||
|
|
||||||
func _on_lamp_pressed() -> void:
|
func _on_lamp_pressed() -> void:
|
||||||
highlight.visible = !highlight.visible
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user