$INFO[Skin.String()] and System.Idletime()

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #1
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

[Image: 1.png]
(This post was last modified: 2012-01-10 14:54 by smuto.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #2
What's the value of applytime in your guisettings.xml after you set it?

[Image: sig_zps3af3b48e.jpg]
find quote
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #3
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

[Image: 1.png]
find quote
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #4
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

[Image: 1.png]
(This post was last modified: 2011-12-31 09:51 by smuto.)
find quote
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #5
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

[Image: 1.png]
(This post was last modified: 2012-01-30 12:08 by smuto.)
find quote
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #6
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

[Image: 1.png]
(This post was last modified: 2012-02-02 17:17 by smuto.)
find quote
smuto Offline
Senior Member
Posts: 243
Joined: Sep 2004
Reputation: 2
Post: #7
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

[Image: 1.png]
find quote