Settings code rework WIP
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user