@memoriesin8bit@mastodon.gamedev.place
Post #2451654
2026-05-11 12:25 UTC
#godotengine devs, I got a question:
So I made myself some nice input prompts that show icons/text based on the input device and mapping.
They live in a handy scene so I can make stuff like "Press [ESC] to open menu". But so I need "Label | InputPrompt | Label". Which is fine for simple prompts - but not very flexible.
What if I just wanna add these prompt to text dynamically aka "Press %input1 to do this and %input2 to do that"? I can never wrap my head around that. Any suggestions?
Replies (1)
-
@memoriesin8bit@mastodon.gamedev.place 2026-05-11 12:28
I.e. do I need some fancy logic that parses a string and spawn labels and input prompts in a flow-container or something? That's one way I could imagine this working. But this sounds like something that I discover years later that I made it 10 times more complicated than it needs to be.