Kodi Community Forum
Option to disable converting $INFO[] 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: Option to disable converting $INFO[] labels. (/showthread.php?tid=129126)



Option to disable converting $INFO[] labels. - phil65 - 2012-04-17

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.



RE: Option to disable converting $INFO[] labels. - phil65 - 2012-04-23

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


RE: Option to disable converting $INFO[] labels. - jmarshall - 2012-04-23

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


RE: Option to disable converting $INFO[] labels. - phil65 - 2012-04-23

(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.


RE: Option to disable converting $INFO[] labels. - krish_2k4 - 2012-04-23

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?


RE: Option to disable converting $INFO[] labels. - butchabay - 2012-04-23

(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


RE: Option to disable converting $INFO[] labels. - krish_2k4 - 2012-04-23

(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!




RE: Option to disable converting $INFO[] labels. - phil65 - 2012-04-23

(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.