2010-06-24, 21:00
Sranshaft Wrote:Have you considered using a border size? This way when it resizes the image, it'll keep the border the same size and only resize the interior of the image. You'd utilize it by using something like this:
Code:<texture border="5">mytexture.png</texture>
You can change out border="5" with border="[align=left], [align=right], [top], [bottom]".
I'm pretty sure I'm using that Actually it would be
<bordertexture border="5">mytexture.png</bordertexture>
and the need to set <bordersize>5</bordersize>
Otherwise the border would not be able to scale at all. But my border coordinates are probably not the way they should be. So I'm sure I'll be able to improve it. But then there's still the problem that you cannot set the same border coordinates for the diffuse texture.
Anyway, Another problem of keeping the aspectratio is that there's no good way of using an unwatched overlay and keep it in the same place. The only way to do that is to set the alignment to bottom, so that is always in the same spot. Unfortunately that would mean no full size posters for movies, but I'm afraid that's just a compromise I'm going to have to make. Or maybe I'll file a trac ticket