godot_experiments/experiments/station_label.gd

7 lines
174 B
GDScript

extends Node2D
func _init_station_name_and_position(name, enName, i):
$StationName/Name.text = name
$StationName/EnName.text = enName
self.translate(Vector2(100 * i, 0))