Kodi Community Forum

Full Version: Option to disable converting $INFO[] labels.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to set a string like this:
Code:
<onclick>Skin.SetString(ItemToEdit.MultiFanart,$INFO[Skin.String(WeatherFanartDir)]$INFO[Weather.FanartCode])</onclick>
but it shouldn´t convert the $INFO[Weather.FanartCode] to a string, i want it to stay this way.
only the $INFO[Skin.String(WeatherFanartDir)] should be converted (or none of both, would also be ok)
possible?
thx in advance

EDIT: another thing. is it possible to use variables with setstring()?

EDIT2: achieved havin this in guisettings.xml now
Code:
<setting type="string" name="skin.aeon.nox.MusicHomeItem.MultiFanart">F:\Weather\$INFO[Weather.FanartCode]</setting>
but now that $INFO[] does not get converted when displayed as a label for example.
bump.
worked around some of the problems i had, but nonetheless it would be very nice to be able to use $VAR[] inside $INFO[]. would save us several thousand lines of code and would improve performance, too (much less visible conditions)

Example:
Code:
<label>$INFO[Window(Home).Property(CustomHomeItem1.1.Title)]</label>
to
Code:
<label>$INFO[Window(Home).Property($VAR[MainMenuPosition].1.Title)]</label>

EDIT:
Code:
<label>$INFO[Window(Home).Property($INFO[ListItem.Property(itemname)].1.Title)]</label>
would also be ok.

thx in advance
This is only doable with a complete rewrite of the info parsing. Which, coincidentally, I started on a while back. No ETA, as per usual - I'll get up what I have on github at some point in case someone else has more time than me atm!

Cheers,
Jonathan
(2012-04-23, 08:59)jmarshall Wrote: [ -> ]This is only doable with a complete rewrite of the info parsing. Which, coincidentally, I started on a while back. No ETA, as per usual - I'll get up what I have on github at some point in case someone else has more time than me atm!

Cheers,
Jonathan

great. thx.
just want to ask if there are any tutorials/wiki pages on using $VAR?

new to skinning and can't find anything about how to use this, I take it by using $VAR you can reduce a lot of coding?
(2012-04-23, 16:12)krish_2k4 Wrote: [ -> ]just want to ask if there are any tutorials/wiki pages on using $VAR?

new to skinning and can't find anything about how to use this, I take it by using $VAR you can reduce a lot of coding?

Take a look here:
http://forum.xbmc.org/showthread.php?tid=107734
(2012-04-23, 16:20)butchabay Wrote: [ -> ]
(2012-04-23, 16:12)krish_2k4 Wrote: [ -> ]just want to ask if there are any tutorials/wiki pages on using $VAR?

new to skinning and can't find anything about how to use this, I take it by using $VAR you can reduce a lot of coding?

Take a look here:
http://forum.xbmc.org/showthread.php?tid=107734

Thanks!

edit: haha that was a whole load of mindfuck, I'll take another look when im more awake!

(2012-04-23, 16:21)krish_2k4 Wrote: [ -> ]
(2012-04-23, 16:20)butchabay Wrote: [ -> ]
(2012-04-23, 16:12)krish_2k4 Wrote: [ -> ]just want to ask if there are any tutorials/wiki pages on using $VAR?

new to skinning and can't find anything about how to use this, I take it by using $VAR you can reduce a lot of coding?

Take a look here:
http://forum.xbmc.org/showthread.php?tid=107734

Thanks!

edit: haha that was a whole load of mindfuck, I'll take another look when im more awake!

doesn´t really need a manual... just look in variables.xml, it´s self-explaining. always takes the first value which is true.