2015-02-08, 00:23
So I'm on Helix, still @ 14.0stable at the moment and working on my confluence custom mod a bit.
I'm setting a value in the skin settings xml, to make a numerical input:
But I'm not sure how to go about getting this to work right... the image ends up full size of the image file.
Any Idea how to handle retreiving a Numeric rather than a string or the built-in function to make it a numerical maybe? and does fallback="..." work on all properties or just <texture> ?
I tried using Skin.Numeric which i couldn't find even exists as a function anyways. Also tried int() around it.
Any ideas?
This might be an awesome idea for Kodi 15.x if it doesn't already exist.
To better understand my reasons, I'm basically making the skin allow custom cursor(s) and I'd also like to do custom width/height (equal ratio) size. Potentially maybe even ColorDiffuse.
Anyways it would be nice to know if its possible to fetch and use the numerical values like that on width/height.
I also just tried $NUMBER[] found @ http://kodi.wiki/view/Label_Formatting but
<width fallback="64">$NUMBER[$INFO[Skin.String(CustomPointerSize)]]</width>
didn't seem to work.
I'm setting a value in the skin settings xml, to make a numerical input:
Code:
<onclick>Skin.SetNumeric(CustomPointerSize)</onclick>
But I'm not sure how to go about getting this to work right... the image ends up full size of the image file.
Code:
<width fallback="64">$INFO[Skin.String(CustomPointerSize)]</width>
<height fallback="64">$INFO[Skin.String(CustomPointerSize)]</height>
Any Idea how to handle retreiving a Numeric rather than a string or the built-in function to make it a numerical maybe? and does fallback="..." work on all properties or just <texture> ?
I tried using Skin.Numeric which i couldn't find even exists as a function anyways. Also tried int() around it.
Any ideas?
This might be an awesome idea for Kodi 15.x if it doesn't already exist.
To better understand my reasons, I'm basically making the skin allow custom cursor(s) and I'd also like to do custom width/height (equal ratio) size. Potentially maybe even ColorDiffuse.
Anyways it would be nice to know if its possible to fetch and use the numerical values like that on width/height.
I also just tried $NUMBER[] found @ http://kodi.wiki/view/Label_Formatting but
<width fallback="64">$NUMBER[$INFO[Skin.String(CustomPointerSize)]]</width>
didn't seem to work.