Hi there,
I'm quite new to Godot, having joined after a recent "other game engine mass-exodus"...
I have a HUD scene, which contains a VBoxContainer, into which I instantiate child-scenes, which are at the moment, HBoxContainer Nodes, filled with a variety of smaller controls - A couple of labels, a color picker, and a SpinBox. Each of these instantiated scenes represents a player added to the game's control selection.
The main HUD also has three buttons:
- Add player
- Remove player
- Start
The Add player button instantiates a player's selection controls (HBoxContainer node scene as mentioned above) and places it as a child into the HUD scene's VBoxContainer. Of course, the Remove player button removes that node.
Start simply starts the game.
I have setup the focus settings to be able to easily navigate the Start, Add player, and Remove player buttons and select them with the gamepad. However, my trouble is that I am not able to focus and select the HBoxContainer nodes (and their child controls) when they are added to the HUD scene's VBoxContainer.
I have attached screenshots showing my HUD scene as well as the scene for player control selection (which is what is being dynamically added to the HUD's VBoxContainer). There can be a maximum of 4 x of these added (4 x players co-op) and when the game starts, I automatically add 1 of these for "Player 1".
How can I get UI focus selection to work across the three buttons in the main HUD as well as the dynamically added HBoxContainer's and their child controls?