Skin Variables / Conditional Labels - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Skin Variables / Conditional Labels (/showthread.php?tid=107734) |
- Jeroen - 2011-09-30 I tried the following: <texture fallback="$VAR[variablename]" background="true">$INFO[ListItem.Thumb]</texture> Which doesn't appear to be working. I know this is only the first steps, but I would like to know if this will be possible later down the road? Because I could do some serious code cleaning with it - `Black - 2011-09-30 As far as I know fallback doesn't allow $INFO so $VAR also won't work I guess. This might work: Code: <variable name="Thumb"> - Jeroen - 2011-09-30 `Black Wrote:This might work:Good thinking, works great Cheers! - `Black - 2011-10-01 I have some small problems with the value conditions... I now have this for the background fanart in my TVGuide: Code: <variable name="TVGuideInfoFanart"> So only one control with $VAR[TVGuideInfoFanart] as texture. If I now open my guide menu (playercontrols), fanart is not visible anymore. It was working with the previous solution of 7 different controls with visible conditions. - BigNoid - 2011-10-01 `Black Wrote:I have some small problems with the value conditions... I now have this for the background fanart in my TVGuide: This is working for me in script-NextAired-TVGuide.xml with same variable used: Code: <control type="group"> - `Black - 2011-10-01 Yes, it is working but if I open the guide menu in my skin (Xperience1080), the image is hidden. This is not the case if I use a visible condition and no variable. I may have something to do with how often the condition gets evaluated but I'm not sure. - BigNoid - 2011-10-01 Container.TvshowThumb and Container.SeasonThumb don't work in variables Below is just for making my point Code: <variable name="PosterVar"> doesn't return in Code: <control type="image"> If I insert it directly in the image control it does work. - Hitcher - 2011-10-01 Just confirmed this - my guess would be it's not getting the container id. - pieh - 2011-10-01 Big_Noid Wrote:Container.TvshowThumb and Container.SeasonThumb don't work in variablesShould be fixed in f20f1924. - BigNoid - 2011-10-01 pieh Wrote:Should be fixed in f20f1924. Yep it's fixed, man you work fast - Jeroen - 2011-10-01 What a great improvement to XBMC skinning, the amount of code I'm getting rid of is ridiculous - Jeroen - 2011-10-01 It seems $INFO[Container.ShowPlot] is not working in variables. - Hitcher - 2011-10-01 This will probably fix that - pieh Wrote:Should be fixed in f20f1924. - pieh - 2011-10-01 I'm using newest code and Container.ShowPlot is working here (earlier fix shouldn't affect it). Do You have maybe more info on this? - Jeroen - 2011-10-01 Yeah, it's working, my bad. It not displaying had to do with the order in which I was defining the various plot and description properties. |