godot_experiments/experiments/station_label.gd

8 lines
170 B
GDScript3
Raw Permalink Normal View History

@tool
2024-04-19 13:15:35 +08:00
extends Node2D
func _init_station_name_and_position(sn, sen, i):
$StationName/Name.text = sn
$StationName/EnName.text = sen
2024-04-19 13:15:35 +08:00
self.translate(Vector2(100 * i, 0))