Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Igthorn on Sun 11/05/2014 09:35:22

Title: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Igthorn on Sun 11/05/2014 09:35:22
Hi
(http://i.imgur.com/91mxsn4.png)

I am having trouble with my text gui - the top right element is being displayed over the other elements instead of next to it and the text seems to be going outside of the border of the box - can anyone tell me what I am doing wrong?

Thanks
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Khris on Sun 11/05/2014 12:57:45
Could you show us the sprites you're using?
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Igthorn on Sun 11/05/2014 15:48:55
Here we go - screencap from AGS

(http://i.imgur.com/z94on51.png)
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Mandle on Sun 11/05/2014 16:21:56
Quote from: Igthorn on Sun 11/05/2014 15:48:55
Here we go - screencap from AGS

(http://i.imgur.com/z94on51.png)

I would reduce the length of the left-hand grey borders
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Khris on Sun 11/05/2014 16:32:26
I did a quick test using this:

(http://i.imgur.com/tvhBvQc.png)

Didn't help though, the top center image was still painted up to the right edge, and the top-right one on top of it.
It looks like the only alternative is using dynamic sprites, which also means you can't use Display() / Say() any longer (you have to create a custom function).

The long-term solution is to change AGS' internal algorithm to make sure the inner width of the text window is a multiple of the sprite's width.
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Igthorn on Sun 11/05/2014 16:42:03
Bugger!

If you look at the screencap at the top - the word approachable seems to be going off the edge of the space allocated to it (the lighter yellow) - am I making a mistake?

Thanks for your help
Title: Re: Top right element of textgui is misaligned and text bleeds out of gui borders
Post by: Khris on Sun 11/05/2014 20:13:01
When I tried the evenly sized tiles, I didn't have words going off the edge, so you can at least fix that it seems.