Custom Text Window false displayed (SOLVED)

Started by Reaper, Sat 27/10/2007 21:28:43

Previous topic - Next topic

Reaper

I made a custom text window (Pic 1) The background border is set to transparent only in this picture to see the tiles. It is set to white in the editor.



The bottom middle and bottom right tiles have the same height as the bottom left tile.

Ingame the text window is not displayed as it should be (Pic 2).

The bottom is cut off and the text is longer than the right border. I don't know why this happens.


Ashen

#1
You're part way there with this line:
Quote
The bottom middle and bottom right tiles have the same height as the bottom left tile.

However (this is from observation, so I could be wrong) Text Windows require ALL the corner pieces to be the same size (height and width), and takes the size from the top-left corner. So, the arrow on the speech bubble (bottom left) is being cropped off.
Text Windows also require the top and bottom 'edges' to have the same height as the corners (width isn't an issue), and for the left and right 'edges' to have the same width. Since the width is based on the top-left corner, if your side pieces aren't the same width they'll either be too far into the GUI (making the text over-shoot on the right, as yours does, and just looking weird on the left) or cropped to fit (like the arrow).

Re-import your pieces with that in mind, and it should work fine...

EDIT: Since I'm not sure how clear my ramblings are, you basically need to import the bits like this:

(Without the green, obviously. That's just there to show how they split up.)
I know what you're thinking ... Don't think that.

Reaper

Thanks for the fast and detailed answer, the text window looks fine now.

Quote from: Ashen on Sat 27/10/2007 21:55:53
However (this is from observation, so I could be wrong) Text Windows require ALL the corner pieces to be the same size (height and width), and takes the size from the top-left corner. So, the arrow on the speech bubble (bottom left) is being cropped off.
Text Windows also require the top and bottom 'edges' to have the same height as the corners (width isn't an issue), and for the left and right 'edges' to have the same width.

Perhaps this could be mentioned in the game help, I did not found it there.

SMF spam blocked by CleanTalk