2021-01-15, 15:40
https://imgur.com/a/ZsEHXZx
Below is the code for Aura, what are the properties?
It looks like the numeric rating for popcorn is correct, but the integer is with decimal point and displaying the spilt popcorn. The tomato rating is displaying the numeric rating with a decimal point and the integer is with decimal point too.
Below is the code for Aura, what are the properties?
It looks like the numeric rating for popcorn is correct, but the integer is with decimal point and displaying the spilt popcorn. The tomato rating is displaying the numeric rating with a decimal point and the integer is with decimal point too.
Code:
<control type="image">
<top>0</top>
<width>32</width>
<height>32</height>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/popcorn.png</texture>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter))</visible>
<visible>Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter),59)</visible>
<visible>$PARAM[usermeter]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="image">
<top>0</top>
<width>32</width>
<height>32</height>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/spilt.png</texture>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter))</visible>
<visible>!Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter),59)</visible>
<visible>$PARAM[usermeter]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="label">
<textcolor>main_fg_70</textcolor>
<top>2</top>
<width>auto</width>
<height>28</height>
<align>right</align>
<font>font_tiny</font>
<label>$INFO[Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter), ,% ]</label>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.UserMeter))</visible>
<visible>$PARAM[usermeter]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="image">
<width>32</width>
<height>32</height>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/rtrotten.png</texture>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Rating))</visible>
<visible>Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.Rating),0) + !Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.Rating),59)</visible>
<visible>$PARAM[rottentomatoes]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="image">
<width>32</width>
<height>32</height>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/rtfresh.png</texture>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Rating))</visible>
<visible>Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.Rating),59) + !Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.Rating),74)</visible>
<visible>$PARAM[rottentomatoes]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="image" description="remove the rtfresh texture line for certified logo">
<width>32</width>
<height>32</height>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/rtfresh.png</texture>
<texture colordiffuse="$PARAM[colordiffuse]">flags/$PARAM[directory]/ratings/certified.png</texture>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Rating))</visible>
<visible>Integer.IsGreater(Window(home).Property(SkinHelper.ListItem.RottenTomatoes.Rating),74)</visible>
<visible>$PARAM[rottentomatoes]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>
<control type="label">
<textcolor>main_fg_70</textcolor>
<top>2</top>
<width>auto</width>
<height>28</height>
<align>right</align>
<font>font_tiny</font>
<label>$INFO[Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Rating), ,% ]</label>
<visible>!String.IsEmpty(Window(Home).Property(SkinHelper.ListItem.RottenTomatoes.Rating))</visible>
<visible>$PARAM[rottentomatoes]</visible>
<visible>!Skin.HasSetting(Ratings.RottenTomatoes)</visible>
</control>