scale

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
deezee69 Offline
Senior Member
Posts: 118
Joined: Jun 2006
Reputation: 0
Post: #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
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #2
Make the shadow image the bordertexture.

[Image: sig_zps3af3b48e.jpg]
find quote
deezee69 Offline
Senior Member
Posts: 118
Joined: Jun 2006
Reputation: 0
Post: #3
thanks but i have no ides how to implement bordertexture in to the group
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #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

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,935
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #5
More here -

http://wiki.xbmc.org/index.php?title=Image_Control

[Image: sig_zps3af3b48e.jpg]
find quote
deezee69 Offline
Senior Member
Posts: 118
Joined: Jun 2006
Reputation: 0
Post: #6
thanks guy. its what i needed. reading the wiki now. thanks again
find quote