17 lines
387 B
GDScript
17 lines
387 B
GDScript
extends Control
|
|
|
|
var upgrade_node: Node
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func populate() -> void:
|
|
for upgrade in upgrade_node.get_children():
|
|
$TuxUpgrades.add_item(upgrade.upgrade_name, upgrade.icon)
|
|
|
|
|
|
func _on_tux_mouse_entered() -> void:
|
|
$Tux.modulate = Color(0.5, 0.5, 0.6)
|
|
|
|
|
|
func _on_tux_mouse_exited() -> void:
|
|
$Tux.modulate = Color(1, 1, 1)
|