time dependet visible condition (1 Viewer)

mcharri

Portal Pro
December 13, 2008
68
58
Home Country
Germany Germany
For skin modification I couldn't find a functional solution to realize following idea. I tried to find a way to display a picture for special time frames. Wiki lists parameter "system.time.isbetween(hh:mm,hh:mm)", but it doesn't work as hoped! Is there an alternate working possibily? Could find nothing else till yet.
 

catavolt

Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,426
    10,451
    Königstein (Taunus)
    Home Country
    Germany Germany
    Well, it doesn´t work well - I know ;)
    But I have a solution for you :p
    In my skins I use this type of code:

    <control>
    <description>dummy label for changing Artist Thumb every 15 secs</description>
    <type>label</type>
    <id>66900</id>
    <label />
    <animation effect="fade" delay="15000" time="0">hidden</animation>
    <visible>Player.HasAudio+!Player.HasVideo+!control.isvisible(66901)</visible>
    </control>
    <control>
    <description>dummy label for changing Artist Thumb every 15 secs</description>
    <type>label</type>
    <id>66901</id>
    <label />
    <animation effect="fade" delay="15000" time="0">hidden</animation>
    <visible>Player.HasAudio+!Player.HasVideo+control.isvisible(66900)</visible>
    </control>
    <control>
    <description>music logo</description>
    <type>image</type>
    <id>77</id>
    <posX>892</posX>
    <posY>870</posY>
    <width>135</width>
    <height>135</height>
    <centered>yes</centered>
    <keepaspectratio>no</keepaspectratio>
    <texture mask="cdcase_mask.png">..\..\..\Thumbs\Music\Artists\#Play.Current.ArtistL.jpg</texture>
    <visible>Player.HasAudio+!Player.HasVideo+control.isvisible(66900)</visible>
    <animation effect="rotatey" time="2000" center="962,0" start="0" end="360" condition="[string.equals(#currentplaytime,0:00)|string.equals(#currentplaytime,0:01)]+control.isvisible(66900)" reversible="false">conditional</animation>
    <animation effect="fade" time="2000" reversible="true">visiblechange</animation>
    </control>


    You can set the time intervall in the delay-tag of the two dummy controls ;)
    Hope it helps ;)
     

    Users who are viewing this thread

    Top Bottom