2020-06-27, 04:40
Vars are very, very strange beasts that only work certain places (it has to do with when certain things are rendered by the render engine). If you're used to using variables in programming, forget everything you know. It will only confuse you (trust me, I know from experience). From the Kodi wiki:
"Variables can be used in any tag that supports infolabels, like the texture, label and visible tags." (and I think that visible tag thing might not be true, but you can do that with expressions)
https://kodi.wiki/view/Skinning_Manual#Variables
You can't use them for things like height and width. You might look at conditional includes, because you can do something like:
Which you can then include conditionally like:
BTW, I did not check my example, so if you copy and paste it and it doesn't work, think of it as more of a direction than an actual help.
"Variables can be used in any tag that supports infolabels, like the texture, label and visible tags." (and I think that visible tag thing might not be true, but you can do that with expressions)
https://kodi.wiki/view/Skinning_Manual#Variables
You can't use them for things like height and width. You might look at conditional includes, because you can do something like:
xml:
<include name="WideWidth">
<width>1000</width>
</include>
Which you can then include conditionally like:
xml:
<include content="WideWidth" condition="[your condition here]" />
BTW, I did not check my example, so if you copy and paste it and it doesn't work, think of it as more of a direction than an actual help.