I'm trying to set up a simple dialog box that is pretty much an empty shell. I want to load the dialog into it from somewhere else ( so its not baked in).
Here is the challenge:
I have no solid idea on how I plan to go about this. I have watched several tutorials and I have also messed around with two recommended addons for a dialog system, none are what I'm really looking for. I found one tutorial on youtube that talked about loading dialog with JSON files but that seems more complex than what I'm trying to achieve. I have looked into text files but not deeply.
Why I am loading the text into my dialog box:
Right now my text box is attached to a canvas layer above in my main game. I am loading different scenes below my text box. When a player clicks on a button on a specific scene. My dialog box ( which is an empty shell), will display unique text triggered by the button. (The scenes are loaded in as singletons)
To avoid confusion I want to consolidate all of my text for that each individual scene under their own individual scripts. This is just my plan for now. I'm just trying to find the simplest way to somehow pull text from one script in a scene and display it in my dialog box, when a button on that scene is pressed .
Thank You for any answers!