This is my first post on the forum. I hope you can help me.
I have introduced a small modification in my personal skin. This way, depending on the score of a movie the text label shows a different color.
It is as follows:
I use this code on info dialog and it works fine on Kodi 17.7. However, on Kodi 19 Matrix RC and the latest night version it doesn't work for me at all. I have not been able to test it with Kodi Leia.
None of the expressions
Integer.IsEqual(info,number)
Integer.IsGreater(info,number)
Integer.IsGreaterOrEqual(info,number)
Integer.IsLess(info,number)
etc
seem to work.
Is it a bug or is something missing?
Thank you in advance.
I have introduced a small modification in my personal skin. This way, depending on the score of a movie the text label shows a different color.
It is as follows:
Code:
<control type="label">
<top>40</top>
<left>10</left>
<height>30</height>
<align>center</align>
<label>$INFO[ListItem.Rating(Filmaffinity)]</label>
<font>font48_bold</font>
<textcolor>indianred</textcolor>
<visible>Integer.IsGreaterOrEqual(ListItem.Rating(Filmaffinity),5.0)</visible>
</control>
<control type="label">
<top>40</top>
<left>10</left>
<height>30</height>
<align>center</align>
<label>$INFO[ListItem.Rating(Filmaffinity)]</label>
<font>font48_bold</font>
<textcolor>olive</textcolor>
<visible>Integer.IsGreaterOrEqual(ListItem.Rating(Filmaffinity),6.0)</visible>
</control>
<control type="label">
<top>40</top>
<left>10</left>
<height>30</height>
<align>center</align>
<label>$INFO[ListItem.Rating(Filmaffinity)]</label>
<font>font48_bold</font>
<textcolor>gold</textcolor>
<visible>Integer.IsGreaterOrEqual(ListItem.Rating(Filmaffinity),7.0)</visible>
</control>
I use this code on info dialog and it works fine on Kodi 17.7. However, on Kodi 19 Matrix RC and the latest night version it doesn't work for me at all. I have not been able to test it with Kodi Leia.
None of the expressions
Integer.IsEqual(info,number)
Integer.IsGreater(info,number)
Integer.IsGreaterOrEqual(info,number)
Integer.IsLess(info,number)
etc
seem to work.
Is it a bug or is something missing?
Thank you in advance.