Reply To: Dialogue Tree First Impressions / Eval / Requests

NodeCanvas Forums General Discussion Dialogue Tree First Impressions / Eval / Requests Reply To: Dialogue Tree First Impressions / Eval / Requests

#10574
Gavalakis
Keymaster

Hey!

Thanks!
Glad to know #3 is not a real problem for you. If you come by any suggestions, please let me know 🙂

Regarding the new questions:

1. The best way, would be to change the source code to instead playing audio the unity way, to play audio with your way 🙂
Using the default OnGUI dialogue, this takes place in the StatementProcessor.cs. You can just replace the audio parts with your own there 🙂
Most probably though, you are going to create your own UI for dialogue. Playing the audio of the dialogue is handled completely in the UI, so you will be able to handle it as you require.
By the way, in the new version comming, I have greatly improved the UGUI example ui, which you will be able to take it and customize, which is better than using the current OnGUI example which is now deprecated and removed completely in favour of the new UI.

So, changing the source to create your own UI and handling audio as you require there, is best approach because this way there are no custom actions needed and will automaticaly work from all places that require a dialogue audio to be played 🙂

2. I really like your idea of portraits. I will make the changes to support this feature along with the relevant actions and even changes in the ‘Say’ node. I will also take a look at implementing animated portraits, probably a sequence of images for now, since skeletal animated ones are very special to each project and how they are made, which right now requires external tool not found in unity.

So, to sum these up, regarding audio, it’s best if you slightly change the UI code, or duplicate it and create your own UI.
Regarding portraits override, I will implement this to some extend since I really like this 🙂 It will be included in the next version!

Finaly, regarding localization, I also haven’t done anything related to localization in the past, but at some point it will be implemented. I honestly don’t know in what form yet though 🙂

By the way, the new version that just gone live does not include the dialogue tree chages we were discussing here, because it was submited before I made the changes. I will send a new version asap!

Thanks again!
Cheers!

Join us on Discord: https://discord.gg/97q2Rjh