litle mess in rating for album.....
Best you can see is this example.
add this variable in Includevariable.xml
Code:
<variable name="value_rating_star_di">
<value condition="String.IsEmpty(ListItem.Rating)"></value>
<value condition="Integer.IsEqual(ListItem.Rating,0.1)">0.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.2)">0.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.3)">0.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.4)">0.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.5)">1.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.6)">1.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.7)">1.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.8)">1.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,0.9)">1.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.0)">2.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.1)">2.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.2)">2.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.3)">2.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.4)">2.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.5)">3.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.6)">3.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.7)">3.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.8)">3.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,1.9)">3.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.0)">4.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.1)">4.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.2)">4.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.3">4.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.4)">4.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.5)">5.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.6)">5.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.7)">5.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.8)">5.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,2.9)">5.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.0)">6.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.1)">6.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.2)">6.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.3">6.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.4)">6.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.5)">7.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.6)">7.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.7)">7.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.8)">7.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,3.9)">7.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.0)">8.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.1)">8.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.2)">8.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.3">8.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.4)">8.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.5)">9.0</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.6)">9.2</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.7)">9.4</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.8)">9.6</value>
<value condition="Integer.IsEqual(ListItem.Rating,4.9)">9.8</value>
<value condition="Integer.IsEqual(ListItem.Rating,5.0)">10.0</value>
<value condition="Integer.IsGreater(ListItem.Rating,5.0)">$INFO(ListItem.Rating)</value>
</variable>
<variable name="value_colorratingstars_di">
<value condition="!Integer.IsGreater(ListItem.Rating,0.5)">$INFO[Skin.String(colorratingstars09)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,0.5) + !Integer.IsGreater(ListItem.Rating,1.0)">$INFO[Skin.String(colorratingstars19)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,1.0) + !Integer.IsGreater(ListItem.Rating,1.5)">$INFO[Skin.String(colorratingstars29)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,1.5) + !Integer.IsGreater(ListItem.Rating,2.0)">$INFO[Skin.String(colorratingstars39)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,2.0) + !Integer.IsGreater(ListItem.Rating,2.5)">$INFO[Skin.String(colorratingstars49)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,2.5) + !Integer.IsGreater(ListItem.Rating,3.0)">$INFO[Skin.String(colorratingstars59)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,3.0) + !Integer.IsGreater(ListItem.Rating,3.5)">$INFO[Skin.String(colorratingstars69)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,3.5) + !Integer.IsGreater(ListItem.Rating,4.0)">$INFO[Skin.String(colorratingstars79)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,4.0) + !Integer.IsGreater(ListItem.Rating,4.5)">$INFO[Skin.String(colorratingstars89)]</value>
<value condition="Integer.IsGreater(ListItem.Rating,4.5)">$INFO[Skin.String(colorratingstars100)]</value>
</variable>
and change in dialogmusicinfo.xml label in star
Code:
<!--Punkt in star-->
<control type="label">
<left>1778</left>
<top>10</top>
<width>132</width>
<height>127</height>
<align>center</align>
<aligny>center</aligny>
<font>Font_header</font>
<shadowcolor>44000000</shadowcolor>
<label>[b]$VAR[value_rating_star_di][/b]</label>
<textcolor>FF101010</textcolor>
</control>
or you can add in low view list texture for ratting
Add image for rating when you focus list - row372;LowListview.xml (add for slim list too)
Code:
<control type="image">
<left>738</left>
<top>45</top>
<width>155</width>
<height>16</height>
<texture fallback="$VAR[value_styleratingstars,,0.0.png]">$VAR[value_styleratingstars]$VAR[value_rating_star_di,,.png]</texture>
<aspectratio align="left" aligny="center">keep</aspectratio>
<colordiffuse>$VAR[value_colorratingstars_di]</colordiffuse>
<visible>Container.Content(albums)</visible>
</control>
Rating for this album is 4 (Four)
Jumpy73
Here is animation same like MarcosQui original
Code:
<animation type="Conditional" reversible="false" condition="Control.IsVisible(8006)+!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.Art.DiscArt))">
<effect type="slide" start="0,0" end="0,-180" time="0" delay="0" tween="cubic" easing="out" />
<effect type="fade" start="0" end="100" time="0" delay="600" />
<effect type="slide" start="0,0" end="180,0" time="300" delay="600" tween="cubic" easing="out" />
</animation>