Skip to content

Commit

Permalink
recently added for a custom playlist on Home
Browse files Browse the repository at this point in the history
(you need to name the playlist custom1 to get this working properly)
  • Loading branch information
mad-max committed Feb 20, 2012
1 parent ab39140 commit a34f22f
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 1 deletion.
1 change: 1 addition & 0 deletions 720p/Home.xml
Expand Up @@ -3,6 +3,7 @@
<onload condition="Window.Previous(startup)+Skin.HasSetting(customstartupfocus)">Control.Move(9000,$INFO[Skin.String(CustomFocusOffset)])</onload>
<onload condition="Skin.HasSetting(watchlist)">RunScript(script.watchlist,movies=true&amp;episodes=true&amp;albums=true&amp;limit=10)</onload>
<onload condition="!Skin.HasSetting(HomeMenuNoDocuButton)">XBMC.RunScript(script.randomandlastitems,limit=3,method=Last,playlist=special://skin/playlists/Doku.xsp,menu=Menu1)</onload>
<onload condition="Skin.HasSetting(Menu_Custom1)">XBMC.RunScript(script.randomandlastitems,limit=3,method=Last,playlist=special://masterprofile/playlists/video/custom1.xsp,menu=Menu2)</onload>
<allowoverlay>no</allowoverlay>
<controls>
<control type="multiimage">
Expand Down
137 changes: 136 additions & 1 deletion 720p/IncludesHomeRecentlyAdded.xml
Expand Up @@ -428,7 +428,142 @@
</control>
</control>

<!-- Doku Ende-->
<!-- Doku Ende-->
<!-- Custom1 Anfang -->
<control type="group">
<posx>740</posx>
<posy>30</posy>
<visible>Library.HasContent(Movies)</visible>
<visible>Container(9000).Hasfocus(15)</visible>
<include>VisibleFadeEffect</include>
<control type="label">
<description>Title label</description>
<posx>0</posx>
<posy>220</posy>
<height>20</height>
<width>540</width>
<label>40032</label>
<align>center</align>
<aligny>center</aligny>
<font>font12_title</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<animation effect="fade" start="100" end="0" time="300" condition="Control.HasFocus(8001)">Conditional</animation>
</control>
<control type="list" id="8000">
<posx>0</posx>
<posy>0</posy>
<width>900</width>
<height>220</height>
<onleft>SetFocus(8001,3)</onleft>
<onright>SetFocus(8001,3)</onright>
<onup>20</onup>
<ondown>600</ondown>
<viewtype label="535">list</viewtype>
<pagecontrol>-</pagecontrol>
<scrolltime>200</scrolltime>
<orientation>Horizontal</orientation>
<itemlayout height="220" width="180">
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>180</width>
<height>220</height>
<texture border="15">RecentAddedBack.png</texture>
</control>
<control type="image">
<posx>10</posx>
<posy>10</posy>
<width>160</width>
<height>170</height>
<texture background="true">$INFO[ListItem.Icon]</texture>
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>5</bordersize>
</control>
<control type="label">
<posx>90</posx>
<posy>185</posy>
<width>150</width>
<height>20</height>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<selectedcolor>selected</selectedcolor>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
<focusedlayout height="220" width="180">
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>180</width>
<height>220</height>
<texture border="15">RecentAddedBack.png</texture>
</control>
<control type="image">
<posx>10</posx>
<posy>10</posy>
<width>160</width>
<height>170</height>
<texture background="true">$INFO[ListItem.Icon]</texture>
<bordertexture border="5">folder-focus.png</bordertexture>
<bordersize>5</bordersize>
<visible>Control.HasFocus(8000)</visible>
</control>
<control type="image">
<posx>10</posx>
<posy>10</posy>
<width>160</width>
<height>170</height>
<texture>$INFO[ListItem.Icon]</texture>
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>5</bordersize>
<visible>!Control.HasFocus(8000)</visible>
</control>
<control type="label">
<posx>90</posx>
<posy>185</posy>
<width>150</width>
<height>20</height>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<selectedcolor>selected</selectedcolor>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</focusedlayout>
<content>
<item id="1">
<label>$INFO[Window.Property(PlaylistLastMovieMenu2.1.Title)]</label>
<label2></label2>
<onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.1.Path)])</onclick>
<icon>$INFO[Window.Property(PlaylistLastMovieMenu2.1.Thumb)]</icon>
<thumb>-</thumb>
</item>
<item id="2">
<label>$INFO[Window.Property(PlaylistLastMovieMenu2.2.Title)]</label>
<label2></label2>
<onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.2.Path)])</onclick>
<icon>$INFO[Window.Property(PlaylistLastMovieMenu2.2.Thumb)]</icon>
<thumb>-</thumb>
</item>
<item id="3">
<label>$INFO[Window.Property(PlaylistLastMovieMenu2.3.Title)]</label>
<label2></label2>
<onclick>PlayMedia($INFO[Window.Property(PlaylistLastMovieMenu2.3.Path)])</onclick>
<icon>$INFO[Window.Property(PlaylistLastMovieMenu2.3.Thumb)]</icon>
<thumb>-</thumb>
</item>
</content>
</control>
</control>
<!-- Custom1 Ende -->

<control type="group">
<posx>0</posx>
Expand Down

0 comments on commit a34f22f

Please sign in to comment.