Added: changes for a very simple 'kids/master' profile (#49)

Added, thanks.
This commit is contained in:
Bas Rieter 2019-02-24 09:09:15 +01:00 committed by Kevin Goffe
parent f6b1a9bac3
commit 786aa21d01
5 changed files with 297 additions and 22 deletions

View File

@ -817,7 +817,7 @@
<include>HomeSubMenuCommonValues</include>
<onleft>9016</onleft>
<onright>9016</onright>
<visible>Container(9000).HasFocus(10) + !String.IsEmpty(Container(90160).ListItemNoWrap(0).Label)</visible>
<visible>Container(9000).HasFocus(10) + !String.IsEmpty(Container(90160).ListItemNoWrap(0).Label) + [System.IsMaster | !Skin.HasSetting(HomeMenuMovieUsePlaylist)]</visible>
<!-- Buttons for the grouplist -->
<include>HomeSubMenuMovies</include>
</control>
@ -825,7 +825,7 @@
<include>HomeSubMenuCommonValues</include>
<onleft>9017</onleft>
<onright>9017</onright>
<visible>Container(9000).HasFocus(11) + !String.IsEmpty(Container(90170).ListItemNoWrap(0).Label)</visible>
<visible>Container(9000).HasFocus(11) + !String.IsEmpty(Container(90170).ListItemNoWrap(0).Label) + [System.IsMaster | !Skin.HasSetting(HomeMenuTVShowUsePlaylist)]</visible>
<!-- Buttons for the grouplist -->
<include>HomeSubMenuTVShows</include>
</control>
@ -833,7 +833,7 @@
<include>HomeSubMenuCommonValues</include>
<onleft>9011</onleft>
<onright>9011</onright>
<visible>Container(9000).HasFocus(3) + !String.IsEmpty(Container(90110).ListItemNoWrap(0).Label)</visible>
<visible>Container(9000).HasFocus(3) + !String.IsEmpty(Container(90110).ListItemNoWrap(0).Label) + [System.IsMaster | !Skin.HasSetting(HomeMenuMusicUsePlaylist)]</visible>
<!-- Buttons for the grouplist -->
<include>HomeSubMenuMusic</include>
</control>
@ -981,21 +981,21 @@
<onclick condition="String.IsEmpty(Weather.Plugin)">ActivateWindow(servicesettings,weather)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoWeatherButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoWeatherButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoWeatherButton) + System.IsMaster]</visible>
</item>
<item id="4">
<label>31951</label>
<onclick>ActivateWindow(Pictures)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoPicturesButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoPicturesButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoPicturesButton) + System.IsMaster]</visible>
</item>
<item id="14">
<label>31001</label>
<onclick>ActivateWindow(Games)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoGamesButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoGamesButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoGamesButton) + System.IsMaster]</visible>
</item>
<item id="13">
<label>31960</label>
@ -1017,29 +1017,32 @@
<onclick condition="!String.IsEqual(Window.Property(VideosDirectLink),True)">ActivateWindow(Videos,root)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoVideosButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoVideosButton) + System.IsMaster]</visible>
</item>
<item id="10">
<label>31954</label>
<onclick>ActivateWindow(Videos,MovieTitles,return)</onclick>
<onclick condition="System.IsMaster | !Skin.HasSetting(HomeMenuMovieUsePlaylist)">ActivateWindow(Videos,MovieTitles,return)</onclick>
<onclick condition="!System.IsMaster + Skin.HasSetting(HomeMenuMovieUsePlaylist)">ActivateWindow(Videos,$INFO[Skin.String(HomeMenuMoviePlaylist)],return)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton) + Library.HasContent(Movies)</visible>
<visible>[[!Skin.HasSetting(HomeMenuNoMovieButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoMovieButton) + System.IsMaster]] + Library.HasContent(Movies)</visible>
</item>
<item id="11">
<label>31955</label>
<onclick>ActivateWindow(Videos,TVShowTitles,return)</onclick>
<onclick condition="System.IsMaster | !Skin.HasSetting(HomeMenuTVShowUsePlaylist)">ActivateWindow(Videos,TVShowTitles,return)</onclick>
<onclick condition="!System.IsMaster + Skin.HasSetting(HomeMenuTVShowUsePlaylist)">ActivateWindow(Videos,$INFO[Skin.String(HomeMenuTVShowPlaylist)],return)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoTVShowButton) + Library.HasContent(TVShows)</visible>
<visible>[[!Skin.HasSetting(HomeMenuNoTVShowButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoTVShowButton) + System.IsMaster]] + Library.HasContent(TVShows)</visible>
</item>
<item id="3">
<label>31956</label>
<onclick condition="String.IsEqual(Window.Property(MusicDirectLink),True)">ActivateWindow(Music)</onclick>
<onclick condition="!String.IsEqual(Window.Property(MusicDirectLink),True)">ActivateWindow(Music,root)</onclick>
<onclick condition="[System.IsMaster | !Skin.HasSetting(HomeMenuMusicUsePlaylist)] + String.IsEqual(Window.Property(MusicDirectLink),True)">ActivateWindow(Music)</onclick>
<onclick condition="[System.IsMaster | !Skin.HasSetting(HomeMenuMusicUsePlaylist)] + !String.IsEqual(Window.Property(MusicDirectLink),True)">ActivateWindow(Music,root)</onclick>
<onclick condition="!System.IsMaster + Skin.HasSetting(HomeMenuMusicUsePlaylist)">ActivateWindow(Music,$INFO[Skin.String(HomeMenuMusicPlaylist)],return)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoMusicButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoMusicButton) + System.IsMaster]</visible>
</item>
<item id="1">
<label>31957</label>
@ -1047,7 +1050,7 @@
<onclick condition="System.Platform.Android">ActivateWindow(Programs)</onclick>
<icon/>
<thumb/>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>
<visible>[!Skin.HasSetting(HomeMenuNoProgramsButton) + !System.IsMaster] | [!Skin.HasSetting(MasterHomeMenuNoProgramsButton) + System.IsMaster]</visible>
</item>
<item id="6">
<label>31958</label>
@ -1061,6 +1064,7 @@
<onclick>ActivateWindow(Settings)</onclick>
<icon/>
<thumb/>
<visible>[!Skin.HasSetting(HomeMenuNoSystemButton) + !System.IsMaster] | System.IsMaster</visible>
</item>
</content>
</control>

View File

@ -16,7 +16,16 @@
<include>BackgroundDimensions</include>
<aspectratio>scale</aspectratio>
<texture>$INFO[Skin.String(CustomBackgroundPath)]</texture>
<visible>Skin.HasSetting(UseCustomBackground) + !String.IsEmpty(Skin.String(CustomBackgroundPath))</visible>
<visible>!System.IsMaster + Skin.HasSetting(UseCustomBackground) + !String.IsEmpty(Skin.String(CustomBackgroundPath))</visible>
<include>VisibleFadeEffect</include>
</control>
<control type="image">
<depth>DepthBackground</depth>
<description>User Set Background Image Master</description>
<include>BackgroundDimensions</include>
<aspectratio>scale</aspectratio>
<texture fallback="special://skin/backgrounds/SKINDEFAULT.jpg">$INFO[Skin.String(MasterCustomBackgroundPath)]</texture>
<visible>System.IsMaster + Skin.HasSetting(UseCustomBackground) + !String.IsEmpty(Skin.String(MasterCustomBackgroundPath))</visible>
<include>VisibleFadeEffect</include>
</control>
<control type="image">

View File

@ -14,7 +14,7 @@
<left>190</left>
<top>50</top>
<visible>Library.HasContent(Movies)</visible>
<visible>Container(9000).Hasfocus(10) + !Skin.HasSetting(HomepageHideRecentlyAddedVideo)</visible>
<visible>Container(9000).Hasfocus(10) + !Skin.HasSetting(HomepageHideRecentlyAddedVideo) + !Skin.HasSetting(HomeMenuMovieUsePlaylist)</visible>
<include>VisibleFadeEffect</include>
<control type="label">
<description>Title label</description>
@ -251,7 +251,7 @@
<left>160</left>
<top>50</top>
<visible>Library.HasContent(TVShows)</visible>
<visible>Container(9000).Hasfocus(11) + !Skin.HasSetting(HomepageHideRecentlyAddedVideo)</visible>
<visible>Container(9000).Hasfocus(11) + !Skin.HasSetting(HomepageHideRecentlyAddedVideo) + !Skin.HasSetting(HomeMenuTVShowUsePlaylist)</visible>
<include>VisibleFadeEffect</include>
<control type="label">
<description>Title label</description>
@ -513,7 +513,7 @@
<left>240</left>
<top>50</top>
<visible>Library.HasContent(Music)</visible>
<visible>Container(9000).Hasfocus(3) + !Skin.HasSetting(HomepageHideRecentlyAddedAlbums)</visible>
<visible>Container(9000).Hasfocus(3) + !Skin.HasSetting(HomepageHideRecentlyAddedAlbums) + !Skin.HasSetting(HomeMenuMusicUsePlaylist)</visible>
<include>VisibleFadeEffect</include>
<control type="label">
<description>Title label</description>

View File

@ -502,6 +502,229 @@
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="240">
<description>Hide Settings Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[31114]</label>
<onclick>Skin.ToggleSetting(HomeMenuNoSystemButton)</onclick>
<selected>Skin.HasSetting(HomeMenuNoSystemButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<!-- Playlist buttons -->
<control type="label" id="247">
<width>750</width>
<height>45</height>
<font>font13_title</font>
<label>31115</label>
<textcolor>blue</textcolor>
<shadowcolor>black</shadowcolor>
<align>left</align>
<aligny>center</aligny>
</control>
<control type="radiobutton" id="241">
<description>Use Movies playlist</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31143] $LOCALIZE[20342] $LOCALIZE[31144]</label>
<onclick>Skin.ToggleSetting(HomeMenuMovieUsePlaylist)</onclick>
<selected>Skin.HasSetting(HomeMenuMovieUsePlaylist)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<enable>Library.HasContent(Movies)</enable>
</control>
<control type="button" id="242">
<width>750</width>
<height>40</height>
<font>font13</font>
<label>- $LOCALIZE[20342] $LOCALIZE[31145]: </label>
<label2>[COLOR=selected]$INFO[Skin.String(HomeMenuMoviePlaylist)][/COLOR]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<onclick>Skin.SetFile(HomeMenuMoviePlaylist,*.xsp,special://profile/playlists/)</onclick>
<enable>Skin.HasSetting(HomeMenuMovieUsePlaylist)</enable>
</control>
<control type="radiobutton" id="243">
<description>Use TV Shows playlist</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31143] $LOCALIZE[20343] $LOCALIZE[31144]</label>
<onclick>Skin.ToggleSetting(HomeMenuTVShowUsePlaylist)</onclick>
<selected>Skin.HasSetting(HomeMenuTVShowUsePlaylist)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<enable>Library.HasContent(Movies)</enable>
</control>
<control type="button" id="244">
<width>750</width>
<height>40</height>
<font>font13</font>
<label>- $LOCALIZE[20343] $LOCALIZE[31145]: </label>
<label2>[COLOR=selected]$INFO[Skin.String(HomeMenuTVShowPlaylist)][/COLOR]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<onclick>Skin.SetFile(HomeMenuTVShowPlaylist,*.xsp,special://profile/playlists/)</onclick>
<enable>Skin.HasSetting(HomeMenuTVShowUsePlaylist)</enable>
</control>
<control type="radiobutton" id="245">
<description>Use Music playlist</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31143] $LOCALIZE[2] $LOCALIZE[31144]</label>
<onclick>Skin.ToggleSetting(HomeMenuMusicUsePlaylist)</onclick>
<selected>Skin.HasSetting(HomeMenuMusicUsePlaylist)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="button" id="246">
<width>750</width>
<height>40</height>
<font>font13</font>
<label>- $LOCALIZE[2] $LOCALIZE[31145]: </label>
<label2>[COLOR=selected]$INFO[Skin.String(HomeMenuMusicPlaylist)][/COLOR]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<onclick>Skin.SetFile(HomeMenuMusicPlaylist,*.xsp,special://profile/playlists/)</onclick>
<enable>Skin.HasSetting(HomeMenuMusicUsePlaylist)</enable>
</control>
<!-- Master buttons -->
<control type="label" id="230">
<width>750</width>
<height>45</height>
<font>font13_title</font>
<label>31209</label>
<textcolor>blue</textcolor>
<shadowcolor>black</shadowcolor>
<align>left</align>
<aligny>center</aligny>
</control>
<control type="radiobutton" id="231">
<description>Hide Videos Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[3]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoVideosButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoVideosButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="232">
<description>Hide Movies Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[20342] [COLOR=grey3] ($LOCALIZE[20314])[/COLOR]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoMovieButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoMovieButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<enable>Library.HasContent(Movies)</enable>
</control>
<control type="radiobutton" id="233">
<description>Hide TV Shows Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[20343] [COLOR=grey3] ($LOCALIZE[20314])[/COLOR]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoTVShowButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoTVShowButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<enable>Library.HasContent(TVShows)</enable>
</control>
<control type="radiobutton" id="234">
<description>Hide Music Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[2]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoMusicButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoMusicButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="235">
<description>Hide Pictures Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[1]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoPicturesButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoPicturesButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="236">
<description>Hide Programs Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[24001]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoProgramsButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoProgramsButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="238">
<description>Hide Weather Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[8]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoWeatherButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoWeatherButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
<control type="radiobutton" id="239">
<description>Hide Games Button</description>
<width>750</width>
<height>40</height>
<font>font13</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$LOCALIZE[31111] - $LOCALIZE[15016]</label>
<onclick>Skin.ToggleSetting(MasterHomeMenuNoGamesButton)</onclick>
<selected>Skin.HasSetting(MasterHomeMenuNoGamesButton)</selected>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
</control>
</control>
<control type="scrollbar" id="60">
<left>1060</left>
@ -624,6 +847,19 @@
<onclick>Skin.SetImage(CustomBackgroundPath)</onclick>
<enable>Skin.HasSetting(UseCustomBackground)</enable>
</control>
<control type="button" id="313">
<width>750</width>
<height>40</height>
<font>font13</font>
<label>- $LOCALIZE[31113]</label>
<label2>[COLOR=selected]$INFO[Skin.String(MasterCustomBackgroundPath)][/COLOR]</label2>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus>MenuItemFO.png</texturefocus>
<texturenofocus>MenuItemNF.png</texturenofocus>
<onclick>Skin.SetImage(MasterCustomBackgroundPath)</onclick>
<enable>Skin.HasSetting(UseCustomBackground)</enable>
</control>
</control>
<control type="group">
<control type="grouplist" id="9004">

View File

@ -272,7 +272,17 @@ msgctxt "#31112"
msgid "Options"
msgstr ""
#empty strings from id 31113 to 31115
msgctxt "#31113"
msgid "Background path Master:"
msgstr ""
msgctxt "#31114"
msgid "System"
msgstr ""
msgctxt "#31115"
msgid "Main button playlists"
msgstr ""
msgctxt "#31116"
msgid "Show recently added albums"
@ -357,7 +367,19 @@ msgctxt "#31142"
msgid "Settings level"
msgstr ""
#empty strings from id 31143 to 31199
msgctxt "#31143"
msgid "Use"
msgstr ""
msgctxt "#31144"
msgid "playlist"
msgstr ""
msgctxt "#31145"
msgid "playlist path"
msgstr ""
#empty strings from id 31146 to 31199
#Script labels
msgctxt "#31200"
@ -388,7 +410,11 @@ msgctxt "#31208"
msgid "Upcoming episodes"
msgstr ""
#empty strings from id 31209 to 31299
msgctxt "#31209"
msgid "Hide Master profile main menu buttons"
msgstr ""
#empty strings from id 31210 to 31299
#Extra labels
msgctxt "#31300"