Hey, I'm trying to make a menu system out of json-file. I wonder how do I create signals between separate scenes that eventually become one scene in the code? I mean, at first I have an empty button scene and I know it cannot be connected anywhere, if there exists no another scene where it is included with the scene it is meant to be connected. However, in the main scene I have written a code that creates different buttons using the empty button scene as a template. So, when I run the game, the button(s) will be included in the same scene. But I have no idea how am I now able to create signals when it is already running.
I'd prefer not to pre-create an additional scene with a fixed amount of buttons already included since that would make my menu-button-creator code less flexible. My whole idea is to make any types of menus I need with this same system. (I still have to also figure out, how I'm going to read menu structures from nested json-dictionaries but that's a different story for now.)
If creating signals on the run is not possible I might have to devise an alternative design to make my flexible menu system. In that case I'm open for suggestions.