Multiple color for Star Ratings?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #1
Hello!

I' d like to know if it's possible to have more than one color for Star ratings? I mean, I'd like to add a new color theme to a skin, but it would be better to also change the colors of the stars. So, in other words, a blue theme with blue star, yellow theme with yellow stars, etc....

Thanks!
find quote
wyrm Offline
Skilled Skinner
Posts: 941
Joined: Nov 2007
Reputation: 10
Location: Perth, Australia (GMT +8)
Post: #2
(2012-03-20 04:47)Balinus Wrote:  Hello!

I' d like to know if it's possible to have more than one color for Star ratings? I mean, I'd like to add a new color theme to a skin, but it would be better to also change the colors of the stars. So, in other words, a blue theme with blue star, yellow theme with yellow stars, etc....

Thanks!
Balinus,

This is what I use in my skin, probably what you are after

PHP Code:
            <control type="image">
                <
posx>272</posx>
                <
posy>335</posy>
                <
width>177</width>
                <
height>25</height>
                <
info>ListItem.StarRating</info>
                <
colordiffuse>StarDiffuse</colordiffuse>
                <
visible>!IsEmpty(ListItem.Thumb)</visible>
                <
visible>!IsEmpty(ListItem.StarRating)</visible>
                <
animation effect="fade" delay="300" start="0" end="100" time="200">Visible</animation>
            </
control
Just place an entry in your color.xml file called StarDiffuse and you are good to go.

Wyrm (xTV-SAF)
find quote
`Black Offline
Team-XBMC Member
Posts: 2,394
Joined: Apr 2009
Reputation: 66
Location: Germany
Post: #3
Or if the design of the stars is more advanced (colordiffuse doesn't work so good then), you can use something like <texture>$INFO[Skin.CurrentTheme,rating/,/]$INFO[ListItem.StarRating]</texture>.

[Image: xp1080-21.png]
find quote
Balinus Offline
Skilled Skinner
Posts: 1,121
Joined: Jul 2011
Reputation: 19
Location: Montréal
Post: #4
OK, I'll look into those solutions, thanks a lot!

Will report back in next days with results Smile
find quote