24 lines
755 B
GDScript
24 lines
755 B
GDScript
extends Node
|
|
|
|
var celestial_positions = {
|
|
"samayun_position":Vector3( 0.0, 0.5, 0.0 ),
|
|
"samayun_arc":45,
|
|
"stigi_position":Vector3( 0.0, 0.8, 0.0 ),
|
|
"stigi_arc":8,
|
|
"zabr_position":Vector3( 0.0, 0.7, 0.0 ),
|
|
"zabr_arc":15,
|
|
}
|
|
|
|
func _ready():
|
|
khanat_world.celestial_positions = celestial_positions
|
|
var sky_panel = get_node("/root/main_scene/Control/MenuDev/Window/VBoxContainer/MarginContainer/sky_panel")
|
|
sky_panel.celestial_manual_moved.connect(self._set_celestial)
|
|
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _set_celestial(parameters):
|
|
for key in parameters:
|
|
RenderingServer.global_variable_set(key, parameters[key])
|
|
celestial_positions[key] = parameters[key]
|
|
Common.msg_debug("New celestial parameter : %s with value %s" % [key, parameters[key]])
|