Settings code rework WIP

This commit is contained in:
Maurane
2026-03-04 17:06:22 +01:00
parent 150fffadb9
commit aa43c3fb5a
8 changed files with 1049 additions and 131 deletions
+3 -3
View File
@@ -275,7 +275,7 @@ func start_balloon(balloon_type:String, patient_type:String, dialogue_resource:
DialogueManager.got_dialogue.connect($ScreeningDesk.supervisor._change_emotion)
#Applies text settings to the balloon
balloon.dialogue_label.seconds_per_step = UI.text_speed
balloon.dialogue_label.seconds_per_step = UI.pause_menu.settings.text_speed
#balloon.dialogue_line.time = UI.auto_speed
#Starts dialogue
@@ -300,13 +300,13 @@ func clear_balloon():
#Changes text_speed value
func _on_text_value_changed():
if is_instance_valid(balloon):
balloon.dialogue_label.seconds_per_step = UI.text_speed
balloon.dialogue_label.seconds_per_step = UI.pause_menu.settings.text_speed
#Changes auto_speed value
func _on_auto_value_changed():
if is_instance_valid(balloon):
#balloon.dialogue_line.time = UI.auto_speed
#balloon.dialogue_line.time = UI.pause_menu.settings.auto_speed
pass