Kodi Community Forum
$INFO[Skin.String()] and System.Idletime() - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: $INFO[Skin.String()] and System.Idletime() (/showthread.php?tid=79676)



Automatic Fullscreen "Now Playing" for Music - smuto - 2010-08-25 19:58

My custom control become visible with a System.IdleTime(15)
I would like to change the set time from GUI, so i add 2 controls to SkinSetting
Code:
<control type="radiobutton" id="115">
    <width>750</width>
    <height>40</height>
    <font>font13</font>
    <label>Teraz odtwarzane</label>
    <textcolor>grey2</textcolor>
    <focusedcolor>white</focusedcolor>
    <texturefocus>MenuItemFO.png</texturefocus>
    <texturenofocus>MenuItemNF.png</texturenofocus>
    <onclick>Skin.ToggleSetting(nowplayingwindow)</onclick>
    <onclick>Skin.SetString(applytime, 10)</onclick>
    <selected>Skin.HasSetting(nowplayingwindow)</selected>
</control>
    <control  type="button" id="116">
    <width>750</width>
    <height>40</height>
    <font>font13</font>
    <label> - ustaw czas</label>
    <label2>$INFO[Skin.String(applytime)] sekund</label2>
    <textcolor>grey2</textcolor>
    <focusedcolor>white</focusedcolor>
    <texturefocus>MenuItemFO.png</texturefocus>
    <texturenofocus>MenuItemNF.png</texturenofocus>
    <onclick>Skin.SetNumeric(applytime)</onclick>
    <visible>Skin.HasSetting(nowplayingwindow)</visible>
</control>

so i add conditional visibility
Code:
<visible>Player.HasAudio + System.IdleTime($INFO[Skin.String(applytime)])</visible>

but this InfoLabel is not working or I'm doing something wrong

smuto


- Hitcher - 2010-08-25 20:27

What's the value of applytime in your guisettings.xml after you set it?


- smuto - 2010-08-25 21:36

it's ok -
Code:
<setting type="bool" name="skin.confluence.nowplayingwindow">true</setting>
<setting type="string" name="skin.confluence.applytime">10</setting>

& i can change it by numeric popup


- smuto - 2010-09-10 19:52

i mod confluence skin to have now playing window.
i create include "MusicNowPlay" with some of MusicPlayer $INFO tags & put it in separate file (mostly copy from Jezz_X work)

IncludesMusicNowPlay.xml

i edit skin file 'includes.xml' to make it run
- add my file
PHP Code:
    <include file="IncludesMusicNowPlay.xml" /> 
- add "MusicNowPlay" to "WindowTitleHomeButton"
PHP Code:
    <include name="WindowTitleHomeButton">
        <
control type="group">
            <
posx>20</posx>
            <
posy>0</posy>
            <
animation effect="slide" end="-270,0" time="400" tween="quadratic" easing="out" condition="Window.Next(Home)">WindowClose</animation>
            <
animation effect="slide" start="-270,0" time="400" tween="quadratic" easing="out" condition="Window.Previous(Home)">WindowOpen</animation>
            <
control type="image">
                <
posx>0</posx>
                <
posy>0</posy>
                <
width>80</width>
                <
height>35</height>
                <
texture border="0,0,32,0">header.png</texture>
            </
control>
            <
control type="button">
                <
hitrect x="0" y="0" w="60" h="30" />
                <
posx>20</posx>
                <
posy>5</posy>
                <
width>25</width>
                <
height>20</height>
                <
texturenofocus>HomeIcon.png</texturenofocus>
                <
texturefocus>HomeIcon-Focus.png</texturefocus>
                <
label>-</label>
                <
onclick>ActivateWindow(Home)</onclick>
            </
control>
        </
control>
        <include>
MusicNowPlay</include>
    </include> 

of course i can add to skin settings on/off, but set value for System.IdleTime is what i'm looking for

smuto


- smuto - 2012-01-10 14:48

recently discovered that plugin can be used to multiimage control

PHP Code:
<imagepath>plugin://plugin.image.artistmultifanart</imagepath> 

- add multiimage control to my file IncludesMusicNowPlay.xml

- i write a plugin to have a images for currently playing artist
plugin.image.artistmultifanart

i'm not a skinner or Python Coder, but xbmc gives me so much fun

please help me to improve my ideas

smuto


- smuto - 2012-01-30 12:04

looks like skin needs send params to refresh the listing
PHP Code:
<imagepath background="true">plugin://plugin.image.artistmultifanart/?name=$INFO[MusicPlayer.Title]</imagepath> 

i rewrite a plugin
plugin.image.artistmultifanart-1.0.2.zip

smuto


- smuto - 2012-01-30 12:46

one more ask
2 years ago I asked about mbid for scraper
http://trac.xbmc.org/ticket/9031
mayby we can have mbid in info label
I just miss
MusicPlayer.Property(Artist_Mbid)

smuto