32 lines
842 B
GDScript
32 lines
842 B
GDScript
extends WindowDialog
|
|
|
|
signal time_of_day_changed( value )
|
|
signal mist_level_changed( value )
|
|
signal oubli_changed( value )
|
|
signal douleur_changed( value )
|
|
signal trauma_changed( value )
|
|
|
|
func _on_time_of_day_value_changed(value):
|
|
emit_signal( "time_of_day_changed", value )
|
|
|
|
|
|
func _on_mist_level_value_changed(value):
|
|
emit_signal( "mist_level_changed", value )
|
|
|
|
|
|
func _on_oubli_value_changed(value):
|
|
emit_signal( "oubli_changed", value )
|
|
|
|
|
|
func _on_douleur_value_changed(value):
|
|
emit_signal( "douleur_changed", value )
|
|
|
|
|
|
func _on_trauma_value_changed(value):
|
|
emit_signal( "trauma_changed", value )
|
|
|
|
|
|
func update_fears( oubli, douleur, trauma ):
|
|
$v_box_container/fears_box/oubli/value.value = oubli
|
|
$v_box_container/fears_box/douleur/value.value = douleur
|
|
$v_box_container/fears_box/trauma/value.value = trauma
|