Files
owniverse/ui/credits/credits.gd
T

15 lines
337 B
GDScript
Raw Normal View History

extends VBoxContainer
@onready var highlight: TextureRect = $Logo/Highlight
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)