Problems with Borders of TextGui...semi-transparency?

Started by Knox, Sat 06/02/2010 01:09:09

Previous topic - Next topic

Knox

Hi,

Ive run into a problem that I only recently noticed with the borders in my custom text gui. It seems that depending on the length of text to be displayed, the top right or bottom left corner sprite gets switched with the center sprite, so it looks something like this (look at top right corner):



That spot should be transparent, like the bottom left corner...

The 8 border sprites of  this text gui are png's with transparency (a pink color). The game is 1024x768, 32bits.

It "sometimes" does this, and if I modify the text where it bugs (like removing or adding a character), the bugged corner returns to the normal transparent display.
--All that is necessary for evil to triumph is for good men to do nothing.

NsMn

Did you make sure all the border sprites are quadrates? So, 2x2 pixels, 3x3 pixels etc.

Since, if they are not, this is  exactly what happens.

Khris

Squares :)

Change the border sprites to be 1 pixel high/wide.
In the screenshot, AGS did paint the top right corner fine, the problem is the top border sprite.

Knox

#3
Hey guys!

Ok, well they are 16x16, Ill try to fiddle with the size then and see what happens.



Thanks for the posts, Ill uh...keep you...posted, ahem. :P

**EDIT**
Ok, I made the top and bottom border sprites to 3x16....and it now works!

Thanks guys, I appreciate your help! :)
--All that is necessary for evil to triumph is for good men to do nothing.

Knox

Sorry to re-open this old topic and Im not sure if this issue hasn't already been raised:

There seems to be problems with having semi-transparency on textGui's borders...It works with "magic pink" sprites and Im sure I can use 2 gui's to get a kinda hack going...but using png's with semi-transparent alpha's or alpha's that slowly fade out (like smooth shadows) seems wont work properly like other gui's do.

All I could find on this subject was this old topic, so Im wondering if this is a feature that will be added in a future release?

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18767.0

If not, Ill probably have to do a "2 gui" hack (one over the other, the one under is the smooth alpha sprite and some how get it to match the varying length of the text box above it). (?)

--All that is necessary for evil to triumph is for good men to do nothing.

SMF spam blocked by CleanTalk