Latest Media Facade - Some help in gettting this to work (1 Viewer)

Mr. V

Portal Pro
September 15, 2007
150
164
Brisbane
Home Country
Ok this has been doing my head in. Im not sure what I am missing here but some help would be great.

So I created a xml named BasicHome.recentlyaddedMusicFacade.xml and added a line to import the xml into the basic home.

Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
		<controls>
				<control>
						<animation effect="fade" start="100" end="0" time="200" reversible="false">Hidden</animation>
						<animation effect="fade" start="0" end="100" delay="150" time="400" reversible="false">Visible</animation>
						<animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
						<animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
						<type>facadeview</type>
						<id>919199970</id>			 
						<control>
								<description>Filmstrip view</description>
								<type>filmstrip</type>
								<dimColor>90ffffff</dimColor>
								<id>919199970</id>
								<scrollOffset>3</scrollOffset>
								<folderPrefix/>
								<folderSuffix/>
								<posX>100</posX>
								<posY>150</posY>
								<width>1720</width>
								<height>500</height>
								<onup>919199970</onup>
								<ondown>919199970</ondown>
								<onleft>919199970</onleft>
								<onright>919199970</onright>						   
								<thumbWidth>176</thumbWidth>
								<thumbHeight>252</thumbHeight>
								<thumbPosX>14</thumbPosX>
								<thumbPosY>16</thumbPosY>
								<itemWidth>208</itemWidth>
								<itemHeight>280</itemHeight>
								<textureWidth>204</textureWidth>
								<textureHeight>280</textureHeight>
								<textYOff>0</textYOff>
								<imageFolderFocus>-</imageFolderFocus>
								<frame>-</frame>
								<frameFocus>-</frameFocus>
								<background>-</background>
								<scrollOffset>2</scrollOffset>							 
								<showFrame>yes</showFrame>
								<showFolder>no</showFolder>
								<showBackGround>no</showBackGround>
								<showInfoImage>no</showInfoImage>
								<scrollbarBackground>-</scrollbarBackground>						   
								<scrollbarBackground>scrollbar_bg.png</scrollbarBackground>
				<scrollbarLeft>scrollbar_left_hor.png</scrollbarLeft>
				<scrollbarRight>scrollbar_right_hor.png</scrollbarRight>
								<scrollbarWidth>630</scrollbarWidth>
								<scrollbarHeight>5</scrollbarHeight>
								<scrollbarYOff>487</scrollbarYOff>
								<thumbAnimation effect="zoom" start="100,100" reversible="false" end="108,111" center="0,430" time="200">focus</thumbAnimation>
								<thumbAnimation effect="zoom" start="108,111"  reversible="false" end="100,100" center="0,430" time="100">unfocus</thumbAnimation>			   
								<visible allowhiddenfocus="true">string.equals(#recentMedia, Music) + ![control.isvisible(601) | control.isvisible(501)] + ![Control.HasFocus(551) | Control.HasFocus(552) | Control.HasFocus(553) | Control.HasFocus(554) | Control.HasFocus(555) | Control.HasFocus(651) | Control.HasFocus(652) | Control.HasFocus(653) | Control.HasFocus(654) | Control.HasFocus(655) | Control.HasFocus(12) | Control.HasFocus(13) | Control.HasFocus(14) | Control.HasFocus(99999)] + string.equals(#latestMediaHandler.music.latest.enabled,true)</visible>
						</control>
				</control>
		</controls>
</window>


I then clear the cache and load mediaportal. The façade is shown on screen when music is selected. If I then go into the music section(or any other screen) and then return to the home screen the façade disappears. The only way to make this appear again is to close mediaportal and clear the cache.

Got to be something simple I am missing.
 

mrbonsen

Super User
  • Team MediaPortal
  • Super User
  • December 6, 2008
    6,563
    890
    Brensbach (HE) ehemals Görlitz
    Home Country
    Germany Germany
    extendet version ? (music) iss still in the editor titan editor or integrated adjustable.
    or it comes - in all homescreen views "latestmedia music" display?
    otherwise. . . how did you get that "visible" values​​? do not agree.
     
    Last edited:

    Mr. V

    Portal Pro
    September 15, 2007
    150
    164
    Brisbane
    Home Country
    extendet version ? (music) iss still in the editor titan editor or integrated adjustable.
    or it comes - in all homescreen views "latestmedia music" display?
    otherwise. . . how did you get that "visible" values? do not agree.

    I added the code into the titan extended theme directory. The existing code for latest media was enabled and working at the time of testing this.

    For the visible value it is copied and pasted from the original latest music xml. To clarify I can change the visible condition to 'true' and it still disappears on a screen change.

    May be try it out and see what I mean. Just add <import>BasicHome.recentlyaddedMusicFacade.xml</import> into the end of basichome.xml in the extended themes directory

    Then copy and paste the code above in a BasicHome.recentlyaddedMusicFacade.xml. Clear the cache and load titan extended.
     

    Mr. V

    Portal Pro
    September 15, 2007
    150
    164
    Brisbane
    Home Country
    I know how it goes. . .
    do not understand exactly what you want? google translator . . .fu****
    latestmedia music in all homescreen views?

    I want this to show when music is selected on the home screen.

    This does not work as intended and I don't know why. I only see the fadace the first time I load mediaportal, then it disappears.
    <visible allowhiddenfocus="true">string.equals(#recentMedia, Music) + string.equals(#latestMediaHandler.music.latest.enabled,true)</visible>

    Does it work for you?
    Can someone else in the community also try it and see if they can get it to work?

    I am thinking something may be hard coded into the titan skin that may prevent it from working.
     

    mrbonsen

    Super User
  • Team MediaPortal
  • Super User
  • December 6, 2008
    6,563
    890
    Brensbach (HE) ehemals Görlitz
    Home Country
    Germany Germany
    mhhh, so it works!
     

    Attachments

    • 11.jpg
      11.jpg
      205.3 KB

    Users who are viewing this thread

    Top Bottom