2011-09-03, 00:18
Hitcher Wrote:Don't forget the border texture has to be re-sized for every thumb whether you're using <aspectratio>keep</aspectratio> or not.
If you're displaying thumbs at a set size then a separate image for the border would be indeed be better.
Thanx Hitcher,
here how it's done now, smooth scrolling and no transition effect when thumb is changing, as backtexture remains static.
PHP Code:
<control type="image">
<posx>100</posx>
<posy>37</posy>
<width>280</width>
<height>420</height>
<aspectratio aligny="bottom">stretch</aspectratio>
<texture>backtexture.png</texture>
<bordertexture border="8">backtexture.png</bordertexture>
<bordersize>8</bordersize>
<visible>!IsEmpty(ListItem.Thumb)</visible>
</control>
<control type="image">
<posx>100</posx>
<posy>37</posy>
<width>280</width>
<height>420</height>
<aspectratio aligny="bottom">stretch</aspectratio>
<fadetime>IconCrossfadeTime</fadetime>
<texture background="true">$INFO[ListItem.Icon]</texture>
<bordersize>8</bordersize>
<visible>!IsEmpty(ListItem.Thumb)</visible>
</control>