Hello everyone! I am writing this post to ask how I could make a GUI that works just like the Windows cmd prompt. Since It seems quite hard to me, so I have tried searching for open-sourced ones on the DevForum too. So if anyone of you guys know how to, could you please tell me how I would do that? (This may be in the wrong category but I need help so I hope this post stays.)
I know the Adonis admin system has a GUI that works similarly so you could look at the source code to see how it works.
Well, It’s going to be used in a game where the player can mess around with the commands for example: “color”, “help”, and more. So I am not sure that Adonis is going to be useful here.
Are you talking about the actual commands or the window (gui)?
Probably just a textLabel which can be resized (when changing directories) with a textBox attached to it will do the trick.
Not sure how to do multi line inputs with this method though
But I don’t know how I would do such a project though. That’s why I am asking for help.
Just have a black Frame with a vertical UIListLayout and some TextLabels.
I’d look for tutorials that talk about anchor points and gui scaling as that’s what you’ll need to perfect if you want it to look somewhat okay.
You are in the wrong category. No worries, though—just move the post to the #help-and-feedback:scripting-support category by clicking on the pencil icon on your post and I’ll be happy to help.
I searched though, no tutorials on it.
I’ve definitely seen some tutorials on the forums.
Post moved to the other category.
in cmd, there are no multiline commands, when the user presses enter, make the last line into a label and add a new input field, also parent uilistlayout to the window
I’d recommend you just start working on it and trying out different anchor points and scaling techniques.
I do understand anchor points. But right now I am trying to figure out how to make that terminal for a game I am making.
The GUI is the hard part (would be for me at least). The commands and everything should be the easiest part. Afaik you’re struggling with the part where the terminal shows your directory.
An easy way to do this is just to make a lot of folder instances and use their names to concatenate a directory string which you display in the console.
Then you’d attach a textBox to the end of the textLabel which displays the directory.