godot-third-person-basic-scene/scenes/developper/sky_panel.gd

17 lines
843 B
GDScript

extends VBoxContainer
# Called when the node enters the scene tree for the first time.
func _ready():
var positions = get_parent().get_parent().get_parent().get_parent().get_node("terrain_basic_setup").get_celestial_coordinates()
get_node("stigi_panel/position_panel/stigi_pos").text = str(positions["stigi_pos"])
get_node("samayun_panel/position_panel/samayun_pos").text = str(positions["samayun_pos"])
get_node("zabr_panel/position_panel/zabr_pos").text = str(positions["zabr_pos"])
get_node("stigi_panel/size_panel/stigi_arc").text = str(positions["stigi_arc"])
get_node("samayun_panel/size_panel/samayun_arc").text = str(positions["samayun_arc"])
get_node("zabr_panel/size_panel/zabr_arc").text = str(positions["zabr_arc"])
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass