How to animate something from off Screen into the screen? (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    Can't answer that, as I am not good enough with the skin engine. I can confirm that string.equals() & eq() are definitely not working in videoosd.xml where you use them to compare skin variables from 3rd party plugins with the play.title variable. It's interesting that you said that you can even expose B0.Label using <label> tags? I would start there :) I've only seen skinsettings.xml used with <include>(import) statements. Titan Flow theme has a lot of skinsettings.
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    I have now switched to 1.3 and I got it working. Will try 1.4 soon
     

    mbuzina

    Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Works also with 1.4 (my issue was not in the switch statement, but in it's parameters). The working code is:
    XML:
      <control Style="backdropStyle">
    	<description>Basic Background</description>
    	<type>image</type>
    	<id>1</id>
    	<texture>#(switch(
    	  eq(#BasicHome.B1.Backdrop,'WORLDWEATHER'),string.format('weather/backgrounds/{0}.jpg',#WorldWeather.TodayIconNumber),
    	  eq(1,1),#BasicHome.B1.Backdrop
    	  ))</texture>
    	<visible>string.equals(#BasicHome.Current.ID,1)</visible>
      </control>

    Btw spacing is very important - have the #(switch( on a newline and it will stop working, same for the final closing parantheses on a different line than the closing tag.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom