I'm wondering if anyone has tips on how I could go about folding/collapsing text in the output window. In other words something that normally would display like this:
Would instead display in summary like:
What I was thinking is that I would match the text as necessary, strip it, and then replace it with the summary line. When the player clicks on the '+' symbol I would replace the summary line with the full text.
What I'm unsure about is the second part. What's a good way to make space for the expanded text? Likewise I'll have to collapse space when the player clicks the + symbol again to fold the text back. Hope that makes sense.
Quote:
This is a long paragraph of text from a mud that describes many different things like the color of the sky and the wind and the sunlight and some animals running around and some people riding horses with strange hats on their heads
This is a long paragraph of text from a mud that describes many different things like the color of the sky and the wind and the sunlight and some animals running around and some people riding horses with strange hats on their heads
Would instead display in summary like:
Quote:
+ This is a long paragraph of text from a mud ....
+ This is a long paragraph of text from a mud ....
What I was thinking is that I would match the text as necessary, strip it, and then replace it with the summary line. When the player clicks on the '+' symbol I would replace the summary line with the full text.
What I'm unsure about is the second part. What's a good way to make space for the expanded text? Likewise I'll have to collapse space when the player clicks the + symbol again to fold the text back. Hope that makes sense.