Dynamic autoscrollspeed - closed
#1
Hello !
I create a skin on xbmc. I want he user can change the autoscroll speed of the home window.
So i added a Skin.SetNumeric() to customsettings.xml it seems to work (the value appear on the setting.xml file) and i can read this value on <info> tag using Skin.String(myvalue).
I tried also on include.xml : <constant name="myvalue">Skin.String(myvalue)</constant>
but :
<autoscroll time=$INFO[Skin.String(myvalue)]>true</autoscroll>
or
<autoscroll time=myvalue]>true</autoscroll>
doesn't work.
Did you know where the problem is ?
Thank you !

------ EDIT -- it works ---

Here is the code
https://pastebin.com/9UUjH6dh
Reply
#2
<autoscroll time="200">Skin.String(myvalue,200)</autoscroll>

..maybe ?
Reply
#3
Skin strings cannot be used as integer values for coordinates etc. Also, constants cannot take variable/changeable values.

I'm not sure if @badaas method works or not. If it doesn't, then the only way is to have multiple conditional includes for each of the possible values.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#4
Thanks for your answer.
<autoscrol></autoscroll> only accept true or false...
I tried to use :
<autoscrol time="500">mycondition</autoscroll>
<autoscrol time="1000">mycondition2</autoscroll>...
It doesn't work.

So, I used multiple conditional includes and it works.
I already seen this solution in other thread, i thinked there was smarter one. But no...
I will share the code soon.
Reply

Logout Mark Read Team Forum Stats Members Help
Dynamic autoscrollspeed - closed0