Beginners questions about the 3.1.1 display dialog feature

Started by , Fri 28/11/2008 12:09:14

Previous topic - Next topic

Ghost

After reading the manual, I still feel a bit lost with the way you can script your "own way to display dialog lines". I understand the basic scripting well enough I think, but... here.

I want to display my dialog topics in an area of a fixed size, with scrolling arrows if there are more lines than fit the window. How would I do that? Do I need a GUI with the arrows and detect the clicks? Anything else? A few pointers in the right direction would be highly appreciated.

I'm not only asking for myself btw.; I think the feature is great but a bit too advanced for beginners, so a general "tutorial thread" should be useful.

Trent R

If it existed, I'd use a String.Split(' ') function along with GetTextWidth/Height to be able to dynamically change the length of the string and wordwrap.

Looking at the manual, I'm thinking that you could possibly make a Split function using IndexOf, Truncate, Replace, and some other functions.


~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Ishmael

Dialog lines, yes, but having scrollable dialog topics I think you need to do a bit more than just that. You'll need to make a GUI where you put in the arrow buttons and some labels or buttons, and update their texts according to which ones are being scrolled to, as well as have clicking on one run the option number with the right offset.

I wouldn't imagine it being hard, it's just a bit of work. There might be an easier way I'm overlooking, but I'm pretty sure I'd know how to do the same thing if I needed it and get it looking and working as intended, which would be fine for me at least.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ghost

Ishmael, you're right I think... I see a way. Thanks for removing the "writer's block"!

Trent R

Ahh, I did read 'lines' rather than 'topics'. My bad.

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk