Custom progress bar
#1
Hi guys

New to xbmc and skinning.

Need to add a custom progress bar that reads values from a variable in the python script.

How would i go about setting up the <info></info> tag ?

Thanks in advance
Reply
#2
you don't need an <info> tag.
here's some pointers to get you started:

skin code:
Code:
<control type="progress" id="123">
    ...
</control>

python code:
Code:
self.getControl(123).setPercent(50)


http://mirrors.xbmc.org/docs/python-docs...olProgress
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Tx ronnie
Reply
#4
Was this control deprecated? I'm unable to get it working...
Kodi 16.1 Windows
Code:
<control type="progress" id="5007">
                    <posx>430</posx>
                    <posy>225r</posy>
                    <width>1400</width>
                    <height>4</height>
                    <texturebg>seek/progresscache_back.png</texturebg>
                    <lefttexture border="0">seek/progresscache_left.png</lefttexture>
                    <midtexture border="0">seek/progresscache_mid.png</midtexture>
                    <righttexture border="0">seek/progresscache_right.png</righttexture>
                    <align>center</align>
                    <aligny>center</aligny>
                </control>
Code:
self.currentPlayInfoBar = self.getControl(5007)
        self.currentPlayInfoBar.setPercent(50)
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply

Logout Mark Read Team Forum Stats Members Help
Custom progress bar0