Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dave Gilbert on Mon 31/10/2011 15:22:07

Title: Sierra style dialog with background issue - solved!
Post by: Dave Gilbert on Mon 31/10/2011 15:22:07
Maybe this should be in Beginner Tech, but bare with me.

I'm going back and updating my back catalog with the current version of AGS, and making some small improvements while I'm in there.  One such improvement is to add backgrounds to the dialog text in Blackwell Legacy, since sometimes its hard to read the text against the background.

I've set up the background in the editor like this:

(http://www.davelgil.com/boe/leg/BL_editor.PNG)

But displayed in the game, it looks like this:

(http://www.davelgil.com/boe/leg/BL_textwindow.PNG)

Any help on fixing this is appreciated!  

Thanks,

-Dave
Title: Re: Sierra style dialog with background issue
Post by: Khris on Mon 31/10/2011 15:55:12
Just crop the side sprites; in theory they need to be only 1px wide/tall.

The reason why this happens is the sprite isn't stretched but repeated; measuring the pixels of the left side (minus the corner), it's exactly 40 pixels tall, twice the original sprite's height.
Title: Re: Sierra style dialog with background issue
Post by: Dualnames on Mon 31/10/2011 15:55:28
you need to shorten the graphics on the left and right border. Even if it's an image 1x2 with black and white for the right and white and black, it will do.
Title: Re: Sierra style dialog with background issue
Post by: Snarky on Mon 31/10/2011 19:30:43
The current way it works isn't really satisfactory for any case (other than a single-pixel-length border). It should either stretch the border, repeat it but crop it to the actual side, or fit the window size to the nearest multiple of the length.

I remember cat had a problem with this when she tried to make a fluffy textbox, but I don't remember how, or if, she resolved it.
Title: Re: Sierra style dialog with background issue
Post by: Dave Gilbert on Mon 31/10/2011 19:58:18
Well, I took your suggestion and it seems to have worked... sort of.

(http://www.davelgil.com/boe/leg/BL_textwindow2.PNG)

So... I fix one problem and cause another!  Any ideas on where I go from here?  Thanks again!

Edit:  Nevermind.  I'm not sure what I did, but I started futzing with the images and presto:

(http://www.davelgil.com/boe/leg/BL_leashes.PNG)