2016-08-07, 22:29
Need Help
I ve been trying to change includesfooter.xml row 161 to display rotten tomatoes and metacritic ratings with not a lot of success. I want to put it here so when I select studio and IMDb it shows this data also. I would also like for it to align to the right if data is not available (similar to what it does with studiio, rating, top250). Below is where I stand and the code I am using.
I ve been trying to change includesfooter.xml row 161 to display rotten tomatoes and metacritic ratings with not a lot of success. I want to put it here so when I select studio and IMDb it shows this data also. I would also like for it to align to the right if data is not available (similar to what it does with studiio, rating, top250). Below is where I stand and the code I am using.
watch gallery
Code:
<!--Rotten Tomatoes-->
<control type="image">
<description>Rotten logo 59% or less</description>
<right>900</right>
<bottom>5</bottom>
<width>60</width>
<height>60</height>
<texture>flags/rotten.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 0) + !IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 59) + Container.Content(movies)</visible>
</control>
<control type="image">
<description>Tomato logo Between 60-74% only</description>
<right>900</right>
<bottom>5</bottom>
<width>60</width>
<height>60</height>
<texture>flags/fresh.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 59) + !IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 74)</visible>
</control>
<control type="image">
<description>Certified Fresh logo 75%+ only</description>
<right>900</right>
<bottom>5</bottom>
<width>60</width>
<height>60</height>
<texture>flags/certified-fresh.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 74)</visible>
</control>
<control type="label">
<right>800</right>
<bottom>5</bottom>
<width>auto</width>
<height>64</height>
<font>bold54</font>
<textcolor>White100</textcolor>
<label>$INFO[Window(Home).Property(SkinHelper.RottenTomatoesMeter)]%</label>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesMeter), 0) + Container.Content(movies)</visible>
</control>
<control type="image">
<description>Popcorn Logo</description>
<right>600</right>
<bottom>5</bottom>
<width>60</width>
<height>60</height>
<texture>flags/popcorn.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesAudienceMeter), 59)</visible>
</control>
<control type="image">
<description>Popcorn - Rotten Logo</description>
<right>600</right>
<bottom>5</bottom>
<width>60</width>
<height>60</height>
<texture>flags/spilt.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesAudienceMeter), 0) + !IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesAudienceMeter), 59) + Container.Content(movies)</visible>
</control>
<control type="label">
<right>400</right>
<bottom>5</bottom>
<width>auto</width>
<height>64</height>
<font>bold54</font>
<aligny>center</aligny>
<textcolor>White100</textcolor>
<label fallback="19055">$INFO[Window(Home).Property(SkinHelper.RottenTomatoesAudienceMeter)]%</label>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.RottenTomatoesAudienceMeter), 0) + Container.Content(movies)</visible>
</control>
<!--Metacritic-->
<control type="image" description="button back">
<right>200</right>
<bottom>25</bottom>
<width>60</width>
<height>45</height>
<texture border="5" colordiffuse="red">common/box.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 0) + !IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 39) + Container.Content(movies)</visible>
</control>
<control type="image" description="button back">
<right>200</right>
<bottom>25</bottom>
<width>60</width>
<height>45</height>
<texture border="5" colordiffuse="yellow">common/box.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 39) + !IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 60)</visible>
</control>
<control type="image" description="button back">
<right>200</right>
<bottom>25</bottom>
<width>60</width>
<height>45</height>
<texture border="5" colordiffuse="green">common/box.png</texture>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 60)</visible>
</control>
<control type="label">
<left>-70</left>
<width>auto</width>
<height>64</height>
<font>bold54</font>
<textcolor>White100</textcolor>
<label fallback="19055">$INFO[Window(Home).Property(SkinHelper.MetaCritic.Rating)]</label>
<visible>IntegerGreaterThan(Window(Home).Property(SkinHelper.MetaCritic.Rating), 0) + Container.Content(movies)</visible>
</control>