scale
#1
Hi
Im trying to put some a shadow image(png) on a scaling thumb image.

shadow

<control type="image">
<posx>39</posx>
<posy>218</posy>
<width>376</width>
<height>444</height>
<aspectratio scale="true">keep</aspectratio>
<texture diffuse="thumb-shadow33.png" background="true">$INFO[ListItem.Icon]</texture>
</control>

thumb

<control type="image">
<posx>50</posx>
<posy>215</posy>
<width>355</width>
<height>450</height>
<aspectratio scalediffuse="true">keep</aspectratio>
<texture diffuse="thumb-diffuse.png" background="true">$INFO[ListItem.Icon]</texture>
<fadetime>IconCrossfadeTime</fadetime>
<visible>![!stringcompare(ListItem.Label,..) + [Container.Content(Years) | Container.Content(Actors) | Container.Content(Directors) | Container.Content(Studios) | Container.Content(Genres)]]</visible>
</control>

all i did is copy the original which is the one labled thumb and i changed it to the one labled shadow. what happens is i get a duplicate of the thumb image in the shadow(diffused). i tried to change

<texture diffuse="thumb-shadow33.png" background="true">$INFO[ListItem.Icon]</texture>

to

<texture>thumb-shadow33.png</texture>

but then for some reason it stops scaling the image it stays frozen to one size were as the thumb keeps changing size.

how can i add the shadow and to make it change scale just like the thumb does. i want b oth the thumb and shadow


sorry if its not clear i dont no how to skin i just learn by trail and error but i cant seem to make this work

thanks
Reply
#2
Make the shadow image the bordertexture.
Reply
#3
thanks but i have no ides how to implement bordertexture in to the group
Reply
#4
like this
PHP Code:
<control type="image">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>360</width>
    <
height>540</height>
    <
aspectratio aligny="bottom">keep</aspectratio>
    <
fadetime>IconCrossfadeTime</fadetime>
    <
texture background="true">$INFO[ListItem.Icon]</texture>
    <
bordertexture border="8">ThumbShadow.png</bordertexture>
    <
bordersize>8</bordersize>
</
control
Reply
#5
More here -

http://wiki.xbmc.org/index.php?title=Image_Control
Reply
#6
thanks guy. its what i needed. reading the wiki now. thanks again
Reply

Logout Mark Read Team Forum Stats Members Help
scale0