I want to create a log for an interactive fiction-type project. It should display previous commands and responses, and should be scrollable once the size of the log exceeds the text window. I've had some success with using a rich text label node combined with a line edit node, and I'm able to log inputs, produce responses, and generally have the innards working as they should.
However, it doesn't look quite right. I have the label situated directly above the line edit. What I want is for the text to appear directly above the line edit (that is, at the bottom of the text window), and for older commands to be pushed upwards as new commands are received, until they eventually disappear at the top of the text window, ideally with the option to scroll upwards to see the cut-off text.
The regular Label node supports text alignment, so I can glue the text to the bottom of the window, but it lacks scrolling, and using it would also entail fooling around with a lot of code in order to limit the number of lines based on window size and whatnot, which I would prefer to avoid if possible.
Edit: Examples for clarity.
This is what I want, the text appears at the bottom and older messages get pushed upwards:
This is what the RichTextEdit gives me. New messages still appear below the older ones, but the text initially appears at the top of the window:
I want the text window to be resizeable, so simply making a bunch of newlines at runtime won't cut it, unfortunately.