Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ability to set custom favorite as home item
git-svn-id: https://repository-xbmcnerds.googlecode.com/svn/branches/confluence-mod-pvr@281 c45510fe-e722-28e9-bcae-387af076e948
- Loading branch information
Showing
5 changed files
with
320 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
<window type="dialog" id="1114"> | ||
<defaultcontrol always="true">451</defaultcontrol> | ||
<controls> | ||
<control type="group"> | ||
<animation effect="slide" start="400,0" end="0,0" time="400" tween="quadratic" easing="out">WindowOpen</animation> | ||
<animation effect="slide" start="0,0" end="400,0" time="400" tween="quadratic" easing="out">WindowClose</animation> | ||
<control type="image"> | ||
<posx>400r</posx> | ||
<posy>0</posy> | ||
<width>400</width> | ||
<height>720</height> | ||
<texture border="15,0,0,0" flipx="true">HomeBladeSub.png</texture> | ||
</control> | ||
<control type="button"> | ||
<description>Close Window button</description> | ||
<posx>380r</posx> | ||
<posy>0</posy> | ||
<width>64</width> | ||
<height>32</height> | ||
<label>-</label> | ||
<font>-</font> | ||
<onclick>PreviousMenu</onclick> | ||
<texturefocus>DialogCloseButton-focus.png</texturefocus> | ||
<texturenofocus>DialogCloseButton.png</texturenofocus> | ||
<onleft>450</onleft> | ||
<onright>450</onright> | ||
<onup>450</onup> | ||
<ondown>450</ondown> | ||
<visible>system.getbool(input.enablemouse)</visible> | ||
</control> | ||
<control type="image"> | ||
<posx>370r</posx> | ||
<posy>30</posy> | ||
<width>200</width> | ||
<height>200</height> | ||
<aspectratio align="center">keep</aspectratio> | ||
<fadetime>IconCrossfadeTime</fadetime> | ||
<texture>$INFO[ListItem.Icon]</texture> | ||
<bordertexture border="8">ThumbShadow.png</bordertexture> | ||
<bordersize>8</bordersize> | ||
</control> | ||
<control type="button" id="451"> | ||
<description>conditionally run RecentlyAdded script at startup</description> | ||
<posx>-20</posx> | ||
<posy>-20</posy> | ||
<width>1</width> | ||
<height>1</height> | ||
<label>-</label> | ||
<font>-</font> | ||
<texturenofocus>-</texturenofocus> | ||
<texturefocus>-</texturefocus> | ||
<onfocus>RunScript(special://skin/scripts/script.favourites/default.py,playlists=play)</onfocus> | ||
<onup>450</onup> | ||
<onleft>450</onleft> | ||
<onright>450</onright> | ||
<ondown>450</ondown> | ||
</control> | ||
|
||
<control type="list" id="450"> | ||
<posx>390r</posx> | ||
<posy>250</posy> | ||
<width>450</width> | ||
<height>380</height> | ||
<onup>450</onup> | ||
<onleft>Dialog.Close(1114)</onleft> | ||
<onright>450</onright> | ||
<ondown>450</ondown> | ||
<pagecontrol>-</pagecontrol> | ||
<scrolltime>200</scrolltime> | ||
<itemlayout height="40"> | ||
<control type="image"> | ||
<posx>0</posx> | ||
<posy>0</posy> | ||
<width>370</width> | ||
<height>40</height> | ||
<texture border="5">button-nofocus.png</texture> | ||
</control> | ||
<control type="label"> | ||
<posx>10</posx> | ||
<posy>0</posy> | ||
<width>350</width> | ||
<height>40</height> | ||
<font>cirrus_20</font> | ||
<align>left</align> | ||
<aligny>center</aligny> | ||
<selectedcolor>selected</selectedcolor> | ||
<info>ListItem.Label</info> | ||
</control> | ||
</itemlayout> | ||
<focusedlayout height="40"> | ||
<control type="image"> | ||
<posx>0</posx> | ||
<posy>0</posy> | ||
<width>370</width> | ||
<height>40</height> | ||
<visible>!Control.HasFocus(450)</visible> | ||
<texture border="3">button-nofocus.png</texture> | ||
</control> | ||
<control type="image"> | ||
<posx>0</posx> | ||
<posy>0</posy> | ||
<width>370</width> | ||
<height>40</height> | ||
<visible>Control.HasFocus(450)</visible> | ||
<texture border="3">button-focus.png</texture> | ||
</control> | ||
<control type="label"> | ||
<posx>10</posx> | ||
<posy>0</posy> | ||
<width>350</width> | ||
<height>40</height> | ||
<font>cirrus_20_Bold</font> | ||
<align>left</align> | ||
<aligny>center</aligny> | ||
<selectedcolor>selected</selectedcolor> | ||
<info>ListItem.Label</info> | ||
</control> | ||
</focusedlayout> | ||
|
||
<content> | ||
<item id="1"> | ||
<label>$INFO[Window(0).Property(favourite.1.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.1.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<!-- <visible>!IsEmpty(Window(0).Property(favourite.1.name))</visible> --> | ||
</item> | ||
<item id="2"> | ||
<label>$INFO[Window(0).Property(favourite.2.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.2.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<!-- <visible>!IsEmpty(Window(0).Property(favourite.2.name))</visible> --> | ||
</item> | ||
<item id="3"> | ||
<label>$INFO[Window(0).Property(favourite.3.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.3.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.3.name))</visible> | ||
</item> | ||
<item id="4"> | ||
<label>$INFO[Window(0).Property(favourite.4.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.4.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.4.name))</visible> | ||
</item> | ||
<item id="5"> | ||
<label>$INFO[Window(0).Property(favourite.5.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.5.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.5.name))</visible> | ||
</item> | ||
<item id="6"> | ||
<label>$INFO[Window(0).Property(favourite.6.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.6.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.6.name))</visible> | ||
</item> | ||
<item id="7"> | ||
<label>$INFO[Window(0).Property(favourite.7.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.7.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.7.name))</visible> | ||
</item> | ||
<item id="8"> | ||
<label>$INFO[Window(0).Property(favourite.8.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.8.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.8.name))</visible> | ||
</item> | ||
<item id="9"> | ||
<label>$INFO[Window(0).Property(favourite.9.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.9.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.9.name))</visible> | ||
</item> | ||
<item id="10"> | ||
<label>$INFO[Window(0).Property(favourite.10.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.10.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.10.name))</visible> | ||
</item> | ||
<item id="11"> | ||
<label>$INFO[Window(0).Property(favourite.11.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.11.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.11.name))</visible> | ||
</item> | ||
<item id="12"> | ||
<label>$INFO[Window(0).Property(favourite.12.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.12.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.12.name))</visible> | ||
</item> | ||
<item id="13"> | ||
<label>$INFO[Window(0).Property(favourite.13.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.13.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.13.name))</visible> | ||
</item> | ||
<item id="14"> | ||
<label>$INFO[Window(0).Property(favourite.14.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.14.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.14.name))</visible> | ||
</item> | ||
<item id="15"> | ||
<label>$INFO[Window(0).Property(favourite.15.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.15.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.15.name))</visible> | ||
</item> | ||
<item id="16"> | ||
<label>$INFO[Window(0).Property(favourite.16.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.16.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.16.name))</visible> | ||
</item> | ||
<item id="17"> | ||
<label>$INFO[Window(0).Property(favourite.17.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.17.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.17.name))</visible> | ||
</item> | ||
<item id="18"> | ||
<label>$INFO[Window(0).Property(favourite.18.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.18.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.18.name))</visible> | ||
</item> | ||
<item id="19"> | ||
<label>$INFO[Window(0).Property(favourite.19.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.19.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.19.name))</visible> | ||
</item> | ||
<item id="20"> | ||
<label>$INFO[Window(0).Property(favourite.20.name)]</label> | ||
<onclick>Skin.SetString($INFO[Skin.String(Menu_Sub_Custom_Favourites_Path)],$INFO[Window(0).Property(favourite.20.path)])</onclick> | ||
<onclick>Dialog.Close(1114)</onclick> | ||
<visible>!IsEmpty(Window(0).Property(favourite.20.name))</visible> | ||
</item> | ||
</content> | ||
</control> | ||
</control> | ||
</controls> | ||
</window> |
Oops, something went wrong.