Splitting an item in a list box into two lines.

Started by viddy, Tue 27/08/2024 09:45:37

Previous topic - Next topic

viddy

I have a situation where a character has to select multiple very, very long dialog responses.
They're not going to fit on a single line. That's just not happening. In-order to do this for this sequence, I made a list box and I comically have no idea how to split the text for an item onto two lines. After doing a ton of searching for a solution, I don't even know if that's even possible.

Also my brain now hurts.


I'm not asking help for that. I'm asking-- it's the first stuff I wrote. Up there.

Thanks.

Khris

Not possible afaik.
However actual dialogs do support really long option text. Why not use a dialog for your dialog?

Crimson Wizard

The dialog option still has a length limit of 150 bytes (150 characters in ASCII, but may be less in Unicode).

So if it has to be longer, this has to be done using a custom solution: a gui, or a Custom Dialog Rendering:
https://adventuregamestudio.github.io/ags-manual/CustomDialogOptions.html


BUT, before going any of these direction, perhaps consider giving an option a shorter name, uncheck "Say" checkbox for that option, and display the actual long text using normal command inside the dialog script instead.

viddy

Quote from: Khris on Tue 27/08/2024 10:42:24Not possible afaik.
However actual dialogs do support really long option text. Why not use a dialog for your dialog?

Thought so. I tried to do it with dialog, but the screen would literally be dialog options.  (laugh)
This is for all for a very dumb gag in the game.   

I thought it would be more user-friendly if it was just in a gigantic dialog box versus a black screen with text. Unless there's someway to limit the size of the dialog area and allow for scrolling. I also had the idea early on that because of the amount of options, I would randomize the placement of each option. Which wouldn't be complex at all, but my crashing into this wall has sorta soured my self-esteem on this joke. I hope newer versions will have some options for text formatting.

If all else fails: I do this with buttons and I go insane.
I am willing to do this.
I've done dumber and more complex things for this project.

Quote from: Crimson Wizard on Tue 27/08/2024 11:22:52The dialog option still has a length limit of 150 bytes (150 characters in ASCII, but may be less in Unicode).

So if it has to be longer, this has to be done using a custom solution: a gui, or a Custom Dialog Rendering:
https://adventuregamestudio.github.io/ags-manual/CustomDialogOptions.html


BUT, before going any of these direction, perhaps consider giving an option a shorter name, uncheck "Say" checkbox for that option, and display the actual long text using normal command inside the dialog script instead.


Thanks! I'll take a very good look at this. I actually haven't counted the length limit but I wouldn't be surprised if a few options did go over that limit. And I will also take in your advice.

SMF spam blocked by CleanTalk