Option to disable converting $INFO[] labels.

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
phil65 Offline
Skilled Skinner
Posts: 4,540
Joined: Mar 2009
Reputation: 62
Location: Cologne, Germany
Post: #1
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.
(This post was last modified: 2012-04-17 02:09 by phil65.)
find quote
phil65 Offline
Skilled Skinner
Posts: 4,540
Joined: Mar 2009
Reputation: 62
Location: Cologne, Germany
Post: #2
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 post was last modified: 2012-04-23 07:39 by phil65.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #3
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
phil65 Offline
Skilled Skinner
Posts: 4,540
Joined: Mar 2009
Reputation: 62
Location: Cologne, Germany
Post: #4
(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.
find quote
krish_2k4 Offline
Fan
Posts: 619
Joined: Aug 2010
Reputation: 9
Post: #5
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?
(This post was last modified: 2012-04-23 16:15 by krish_2k4.)
find quote
butchabay Offline
Skilled Skinner
Posts: 3,808
Joined: Mar 2010
Reputation: 74
Location: Planet Crematoria
Post: #6
(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
find quote
krish_2k4 Offline
Fan
Posts: 619
Joined: Aug 2010
Reputation: 9
Post: #7
(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!
(This post was last modified: 2012-04-23 16:30 by krish_2k4.)
find quote
phil65 Offline
Skilled Skinner
Posts: 4,540
Joined: Mar 2009
Reputation: 62
Location: Cologne, Germany
Post: #8
(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.
(This post was last modified: 2012-04-23 21:14 by phil65.)
find quote