Interaction with computer program in Game

Hello,
I would like to create a basic computer program (DOS format) in game, where the user will have to enter commands to run analyzes with a percentage that evolves in time for example, but I have no idea how I can do that with blueprints and widget ?
Would anyone have an idea of how I can do that?
Thank you

Sounds easy enough:

  • editable box to enter commands, override onCommited to get text once the user hits enter
  • have a switcher to interpret the command (unless you’re planning on having 100s of commands)
  • start an event timer and hook up its progress to a progress bar widget, use a text block that show the percentage value

Newest,

Thanks for your answer.
I will try with the elements that you give me.

For information here is an example of what I wish graphically and when I enter the “help” command, the commandes lines below are scrolling up and wait for another command from the player.

You could have each line be a separate widget and add them to a vertical box anchored to the bottom using an event timer to make the messages pop and push everything else up by one line. You can store the lines in an array and just iterate over the elements.

Another approach is to just use a single widget and append its text + some formatting - more fiddly, less flexible but more performant.

It’s a really good idea.
Thanks for your answer.