From 642f6afdc0f26832eef20cfeeaab360437e3a60d Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 1 Jul 2023 18:25:55 -0400 Subject: [PATCH] Allow using pathToAnimController for recorders #520 --- NewHorizons/Builder/Props/DialogueBuilder.cs | 6 ++++++ NewHorizons/External/Modules/Props/Dialogue/DialogueInfo.cs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Builder/Props/DialogueBuilder.cs b/NewHorizons/Builder/Props/DialogueBuilder.cs index 9e2da10c..ac2f8c17 100644 --- a/NewHorizons/Builder/Props/DialogueBuilder.cs +++ b/NewHorizons/Builder/Props/DialogueBuilder.cs @@ -147,6 +147,7 @@ namespace NewHorizons.Builder.Props var controller = character.GetComponent(); var traveler = character.GetComponent(); var travelerEye = character.GetComponent(); + var hearthianRecorder = character.GetComponent(); var lookOnlyWhenTalking = info.lookAtRadius <= 0; @@ -196,6 +197,11 @@ namespace NewHorizons.Builder.Props dialogue.OnEndConversation += nomaiController.StopWatchingPlayer; } } + else if (hearthianRecorder != null) + { + // #520 + hearthianRecorder._characterDialogueTree = dialogue; + } else { // If they have nothing else just put the face player when talking thing on them diff --git a/NewHorizons/External/Modules/Props/Dialogue/DialogueInfo.cs b/NewHorizons/External/Modules/Props/Dialogue/DialogueInfo.cs index 0cf3c823..9fb77d6e 100644 --- a/NewHorizons/External/Modules/Props/Dialogue/DialogueInfo.cs +++ b/NewHorizons/External/Modules/Props/Dialogue/DialogueInfo.cs @@ -22,7 +22,8 @@ namespace NewHorizons.External.Modules.Props.Dialogue /// /// If this dialogue is meant for a character, this is the relative path from the planet to that character's - /// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking, or SolanumAnimController. + /// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking, + /// HearthianRecorderEffects or SolanumAnimController. /// /// If none of those components are present it will add a FacePlayerWhenTalking component. ///