Hi all,
tl;dl: How do you do a newline character in a textbox in a gui?
I'm sorry, this sounds like a really dumb question, but I cannot for the life of me work it out.
I am trying to make a 'terminal' style gui to take input making it look like a computer monitor. I have made a custom GUI with a GUI Textbox, which I can code text in easy enough, but for some reason I can't workout how to insert a newline character.
I had a read through of the manual which says to use [, which doesn't seem to work.
It also mentions that ags uses printf style strings so I tried /n (\n and %n as well because, why not).
I tried inserting the ascii code (using String.Format("%c",asciiCode)) newline, carriage return, and form feed all to no avail, just gave me garbage characters.
I had a look through the beginners forum and couldn't seem to find anything addressing it. (But I apologise in advance if I missed something)
All these things worked fine when just doing a straight Display() function call though, so I don't believe the code I am using is in error.
Is there something obvious here that I am missing, or are TextBoxes some magical entity which require special rituals to know how to use?
Or, is it just 2am and I should be in bed by now...
Thanks,
Snath
tl;dl: How do you do a newline character in a textbox in a gui?
I'm sorry, this sounds like a really dumb question, but I cannot for the life of me work it out.
I am trying to make a 'terminal' style gui to take input making it look like a computer monitor. I have made a custom GUI with a GUI Textbox, which I can code text in easy enough, but for some reason I can't workout how to insert a newline character.
I had a read through of the manual which says to use [, which doesn't seem to work.
It also mentions that ags uses printf style strings so I tried /n (\n and %n as well because, why not).
I tried inserting the ascii code (using String.Format("%c",asciiCode)) newline, carriage return, and form feed all to no avail, just gave me garbage characters.
I had a look through the beginners forum and couldn't seem to find anything addressing it. (But I apologise in advance if I missed something)
All these things worked fine when just doing a straight Display() function call though, so I don't believe the code I am using is in error.
Is there something obvious here that I am missing, or are TextBoxes some magical entity which require special rituals to know how to use?
Or, is it just 2am and I should be in bed by now...
Thanks,
Snath