Kodi Community Forum

Full Version: Display Star Rating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can somebody help me replace the number rating with STAR ratings? thanks

Image
(2018-04-04, 17:03)irafihggnaba Wrote: [ -> ]Can somebody help me replace the number rating with STAR ratings? thanks
 
 Hi again.

For Krypton <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
xml:

<!--Stars NEW TEXTURE-->
                    <width>190</width>
                    <height>130</height>
                    <left>70</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse> your choice </colordiffuse> <!-- $INFO[Skin.String(ViewDetailsHighlightTextColor)] is good for setup in titan setting-->
                    <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
                </control>

For Leia  <texture background="true">$VAR[rating_value_texture]</texture>
xml:

 
<!-- NEW rating STARS -->
                <control type="image">
                    <right>0</right>
                    <width>180</width>
                    <height>130</height>
                    <left>65</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse>$INFO[Skin.String(ViewDetailsHighlightTextColor)]</colordiffuse>
                    <texture background="true">$VAR[rating_value_texture]</texture>
                </control>
(2018-04-04, 17:51)mardukL Wrote: [ -> ]
(2018-04-04, 17:03)irafihggnaba Wrote: [ -> ]Can somebody help me replace the number rating with STAR ratings? thanks
 Hi again.

For Krypton <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
xml:

<!--Stars NEW TEXTURE-->
                    <width>190</width>
                    <height>130</height>
                    <left>70</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse> your choice </colordiffuse> <!-- $INFO[Skin.String(ViewDetailsHighlightTextColor)] is good for setup in titan setting-->
                    <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
                </control>

For Leia  <texture background="true">$VAR[rating_value_texture]</texture>
xml:

 
<!-- NEW rating STARS -->
                <control type="image">
                    <right>0</right>
                    <width>180</width>
                    <height>130</height>
                    <left>65</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse>$INFO[Skin.String(ViewDetailsHighlightTextColor)]</colordiffuse>
                    <texture background="true">$VAR[rating_value_texture]</texture>
                </control>
 
 Hi thank you. i tried but it wont work. maybe i paste it on wrong location or i dont know why. would you take a look on my xml file?
Have 1 h left, lets trey, pm me if you want or share it here.
 ;-)

EDIT: WAIT WICH VERSION OF KODIHuh
(2018-04-04, 17:59)mardukL Wrote: [ -> ]Have 1 h left, lets trey, pm me if you want or share it here.
 ;-)

EDIT: WAIT WICH VERSION OF KODIHuh
 Kodi Krypton 17.6

https://drive.google.com/open?id=1_0UrDQ...R_0CcPfvZs

Thank you Smile
(2018-04-04, 18:03)irafihggnaba Wrote: [ -> ]
(2018-04-04, 17:59)mardukL Wrote: [ -> ]Have 1 h left, lets trey, pm me if you want or share it here.
 ;-)

EDIT: WAIT WICH VERSION OF KODIHuh
 Kodi Krypton 17.6

https://drive.google.com/open?id=1_0UrDQ...ER_0CPfvZs

Thank you Smile  
 THX, still not looking like yours on my screen.

But done.
Added at LINE 56
xml:
<!--Stars NEW-->
                <control type="image">
                    <width>190</width>
                    <height>130</height>
                    <left>70</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse>$INFO[Skin.String(ViewDetailsHighlightTextColor)]</colordiffuse> <!-- $INFO[Skin.String(ViewDetailsHighlightTextColor)] -->
                    <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
                </control>

Deleted
xml:

<label>$INFO[ListItem.Year]    $INFO[ListItem.Duration] minutes</label>   <!-- deleted Rating LABEL here -->
https://drive.google.com/open?id=19jewb5...VUHl3Z_n_6


But to me it looks not so impressive, like your pic above
Image
(2018-04-04, 18:18)mardukL Wrote: [ -> ]
(2018-04-04, 18:03)irafihggnaba Wrote: [ -> ]
(2018-04-04, 17:59)mardukL Wrote: [ -> ]Have 1 h left, lets trey, pm me if you want or share it here.
 ;-)

EDIT: WAIT WICH VERSION OF KODIHuh
 Kodi Krypton 17.6

https://drive.google.com/open?id=1_0UrDQ...ER_0CPfvZs

Thank you Smile   
 THX, still not looking like yours on my screen.

But done.
Added at LINE 56
xml:
<!--Stars NEW-->
                <control type="image">
                    <width>190</width>
                    <height>130</height>
                    <left>70</left>
                    <top>230</top>
                    <aspectratio align="left" aligny="center">keep</aspectratio>
                    <colordiffuse>$INFO[Skin.String(ViewDetailsHighlightTextColor)]</colordiffuse> <!-- $INFO[Skin.String(ViewDetailsHighlightTextColor)] -->
                    <texture fallback="rating/0.0.png">$INFO[ListItem.Rating,rating/,.png]</texture>
                </control>

Deleted
xml:

<label>$INFO[ListItem.Year]    $INFO[ListItem.Duration] minutes</label>   <!-- deleted Rating LABEL here -->
https://drive.google.com/open?id=19jewb5...VUHl3Z_n_6


But to me it looks not so impressive, like your pic above
Image 
 it works perfectly! thank you soo much!
(2018-04-04, 18:30)irafihggnaba Wrote: [ -> ]
(2018-04-04, 18:18)mardukL Wrote: [ -> ]
(2018-04-04, 18:03)irafihggnaba Wrote: [ -> ] 
 it works perfectly! thank you soo much! 
No problem.But you should clean up the code a bit.