Patient 47 Beginning

This commit is contained in:
Maurane
2026-01-07 22:11:07 +01:00
parent 95cd2826a9
commit c3aa967c1c
39 changed files with 556 additions and 620 deletions
+4 -24
View File
@@ -49,7 +49,7 @@ func _on_new_game_pressed():
Globals.day_count = 1
# DISABLED FOR NOW SINCE THERE'S NO INTRO ANYMORE
#Offering to skip the introduction
#var choice_text = "[center]Do you wish to skip the introduction ?[/center]"
#var choice_text = "Do you wish to skip the introduction ?"
#UI.ask_confirmation(start_day, play_intro, choice_text)
start_day()
@@ -94,26 +94,6 @@ func start_day():
await TransitionScreen.transition_finished
#Ends the day and starts the next one
func _on_recovery_pressed():
#Transitioning to the bedroom
var scenes_to_hide: Array[Node] = [$ScreeningDesk.end_of_day_controls, $ScreeningDesk]
var scenes_to_show: Array[Node] = [$Bedroom]
TransitionScreen.transition("big", scenes_to_hide, scenes_to_show)
await TransitionScreen.transition_finished
#End of day dialogue
start_balloon("big", Globals.dialogue_recovery, "end_of_day_" + str(Globals.day_count))
await DialogueManager.dialogue_ended
#Start of the next day
Globals.day_count += 1
start_day()
#Saves game state on the selected save slot
func save_game(save_slot_number:int):
@@ -254,18 +234,18 @@ func update_slots():
#Starts a balloon dialogue
func start_balloon(panel_size:String, dialogue_resource: Resource, start_title: String):
func start_balloon(balloon_type:String, dialogue_resource: Resource, start_title: String):
#Clearing previous balloon
clear_balloon()
#Instantiating a custom balloon
var Balloon: Resource = load("res://Dialogues/balloon_" + panel_size + ".tscn")
var Balloon: Resource = load("res://Dialogues/balloon_" + balloon_type + ".tscn")
balloon = Balloon.instantiate()
get_tree().current_scene.add_child(balloon)
#Connects emotion signals if needed
if panel_size == "test":
if balloon_type == "screening":
DialogueManager.got_dialogue.connect($ScreeningDesk._change_emotion)
DialogueManager.got_dialogue.connect($ScreeningDesk._recording_text)