Kodi Community Forum

Full Version: slider knob not working (like it did in 16)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi yall. i've rolled my own addon to change the volume on our AVR and its not behaving the same way after the upgrade

in jarvis it looked like this
Image

and in krypton ...
Image

i guess this is where my problem is, but i can't figure out what to do about it. help plz

Code:
## make a slider
nob = xbmc.translatePath("special://home/addons/script.sony.volumeControl/img/slider-nob-" + cmd + ".png")
SLIDE = xbmcgui.ControlSlider(x=25, y=200, width=100, height=40,
  textureback=xbmc.translatePath("special://home/addons/script.sony.volumeControl/img/slider-back.png"),
  texture=nob )

if anyone wants to see it in action. i stripped out all the junk that does wake-on-lan if the unit is off, getting the current volume and sending the SOAP requests... all thats left is the GUI part. i've also includes a keymap that fires up the script with Q=volumeUP and W=down

thanks in advance
Looks like in 17 you have to add orientation to default to horizontal.

orientation=xbmcgui.HORIZONTAL

http://forum.kodi.tv/showthread.php?tid=...pid2341037

Have you tried to see if this addresses your issue?
thank you, that did it
(2017-02-12, 04:52)zosky Wrote: [ -> ]thank you, that did it

You are welcome