aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2022-11-07 12:19:02 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2022-11-11 13:11:48 +0100
commit1d6bf8d3141dc5eb58d120541db4b51da1227191 (patch)
treef436c3adb375037b263d7911d00b7505e87d176e
parent44de228f71eed22d5cf906cb172eaef20ff1c54c (diff)
[Estuary] Add skin settings to control tv show and movie set select action.
-rw-r--r--addons/resource.language.en_gb/resources/strings.po4
-rw-r--r--addons/skin.estuary/language/resource.language.en_gb/strings.po14
-rw-r--r--addons/skin.estuary/xml/Home.xml6
-rw-r--r--addons/skin.estuary/xml/Includes_Home.xml2
-rw-r--r--addons/skin.estuary/xml/SkinSettings.xml14
-rw-r--r--addons/skin.estuary/xml/Variables.xml32
6 files changed, 71 insertions, 1 deletions
diff --git a/addons/resource.language.en_gb/resources/strings.po b/addons/resource.language.en_gb/resources/strings.po
index 4915b1c293..7563845de9 100644
--- a/addons/resource.language.en_gb/resources/strings.po
+++ b/addons/resource.language.en_gb/resources/strings.po
@@ -5717,6 +5717,8 @@ msgstr ""
#empty strings from id 12015 to 12020
#. Label of various controls for starting playback from the beginning
+#: addons/skin.estuary/xml/SkinSettings.xml
+#: addons/skin.estuary/xml/Variables.xml
#: xbmc/Autorun.cpp
#: xbmc/pvr/PVRContextMenus.cpp
#: xbmc/pvr/PVRGUIActions.cpp
@@ -6994,6 +6996,8 @@ msgid "Enable voice"
msgstr ""
#. label for resume context menu item for video folders (like a TV show or a single season of a TV show)
+#: addons/skin.estuary/xml/SkinSettings.xml
+#: addons/skin.estuary/xml/Variables.xml
#: xbmc/video/windows/GUIWindowVideoBase.cpp
msgctxt "#13362"
msgid "Continue watching"
diff --git a/addons/skin.estuary/language/resource.language.en_gb/strings.po b/addons/skin.estuary/language/resource.language.en_gb/strings.po
index 1692a96166..d930a28a83 100644
--- a/addons/skin.estuary/language/resource.language.en_gb/strings.po
+++ b/addons/skin.estuary/language/resource.language.en_gb/strings.po
@@ -844,7 +844,19 @@ msgctxt "#31174"
msgid "Default select action for albums on the home screen"
msgstr ""
-#empty strings from id 31175 to 31599
+#: /xml/SkinSettings.xml
+#. Setting to control what happens when clicking a TV show on the home screen
+msgctxt "#31175"
+msgid "Default select action for TV shows on the home screen"
+msgstr ""
+
+#: /xml/SkinSettings.xml
+#. Setting to control what happens when clicking a movie set on the home screen
+msgctxt "#31176"
+msgid "Default select action for movie sets on the home screen"
+msgstr ""
+
+#empty strings from id 31177 to 31599
#: /xml/DialogPlayerProcessInfo.xml
#. Label to show the video codec name
diff --git a/addons/skin.estuary/xml/Home.xml b/addons/skin.estuary/xml/Home.xml
index 09ccb1a372..5b9f2fbf57 100644
--- a/addons/skin.estuary/xml/Home.xml
+++ b/addons/skin.estuary/xml/Home.xml
@@ -96,6 +96,8 @@
<param name="widget_target" value="videos"/>
<param name="sortby" value="random"/>
<param name="list_id" value="5600"/>
+ <param name="onclick_condition" value="true"/>
+ <param name="onclick_action" value="$VAR[MovieSetOnClickActionVar]"/>
</include>
</control>
<include content="ImageWidget" condition="!Library.HasContent(movies)">
@@ -131,6 +133,8 @@
<param name="widget_header" value="$LOCALIZE[626]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="6100"/>
+ <param name="onclick_condition" value="true"/>
+ <param name="onclick_action" value="$VAR[TVShowOnClickActionVar]"/>
</include>
<include content="WidgetListEpisodes" condition="Library.HasContent(tvshows)">
<param name="content_path" value="special://skin/playlists/recent_unwatched_episodes.xsp"/>
@@ -143,6 +147,8 @@
<param name="widget_header" value="$LOCALIZE[31122]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="6300"/>
+ <param name="onclick_condition" value="true"/>
+ <param name="onclick_action" value="$VAR[TVShowOnClickActionVar]"/>
</include>
<include content="WidgetListCategories" condition="Library.HasContent(tvshows)">
<param name="content_path" value="videodb://tvshows/genres/"/>
diff --git a/addons/skin.estuary/xml/Includes_Home.xml b/addons/skin.estuary/xml/Includes_Home.xml
index cde8a85e90..8a2200a393 100644
--- a/addons/skin.estuary/xml/Includes_Home.xml
+++ b/addons/skin.estuary/xml/Includes_Home.xml
@@ -26,6 +26,7 @@
</definition>
</include>
<include name="WidgetListPoster">
+ <param name="onclick_condition">false</param>
<definition>
<include content="CategoryLabel">
<param name="label">$PARAM[widget_header]</param>
@@ -41,6 +42,7 @@
<visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
<right>0</right>
<height>503</height>
+ <onclick condition="$PARAM[onclick_condition]">$PARAM[onclick_action]</onclick>
<include content="WidgetListCommon">
<param name="list_id" value="$PARAM[list_id]"/>
</include>
diff --git a/addons/skin.estuary/xml/SkinSettings.xml b/addons/skin.estuary/xml/SkinSettings.xml
index 800f240da2..7f86e125e5 100644
--- a/addons/skin.estuary/xml/SkinSettings.xml
+++ b/addons/skin.estuary/xml/SkinSettings.xml
@@ -167,6 +167,13 @@
<onclick condition="!System.HasAddon(plugin.library.node.editor)">InstallAddon(plugin.library.node.editor)</onclick>
<enable>!Skin.HasSetting(HomeMenuNoMovieButton)</enable>
</control>
+ <control type="button" id="627">
+ <label>- $LOCALIZE[31176]</label>
+ <include>DefaultSettingButton</include>
+ <onclick>Skin.SelectBool(31176, 37015|movieset_onclick_browse, 13362|movieset_onclick_continuewatching, 12021|movieset_onclick_playfrombeginning, 10008|movieset_onclick_playnext, 13347|movieset_onclick_queue)</onclick>
+ <label2>$VAR[MovieSetOnClickActionLabel2Var]</label2>
+ <enable>!Skin.HasSetting(HomeMenuNoMovieButton)</enable>
+ </control>
<control type="radiobutton" id="612">
<label>$LOCALIZE[20343]</label>
<include>DefaultSettingButton</include>
@@ -181,6 +188,13 @@
<onclick condition="!System.HasAddon(plugin.library.node.editor)">InstallAddon(plugin.library.node.editor)</onclick>
<enable>!Skin.HasSetting(HomeMenuNoTVShowButton)</enable>
</control>
+ <control type="button" id="626">
+ <label>- $LOCALIZE[31175]</label>
+ <include>DefaultSettingButton</include>
+ <onclick>Skin.SelectBool(31175, 37015|tvshow_onclick_browse, 13362|tvshow_onclick_continuewatching, 12021|tvshow_onclick_playfrombeginning, 10008|tvshow_onclick_playnext, 13347|tvshow_onclick_queue)</onclick>
+ <label2>$VAR[TVShowOnClickActionLabel2Var]</label2>
+ <enable>!Skin.HasSetting(HomeMenuNoTVShowButton)</enable>
+ </control>
<control type="radiobutton" id="613">
<label>$LOCALIZE[2]</label>
<include>DefaultSettingButton</include>
diff --git a/addons/skin.estuary/xml/Variables.xml b/addons/skin.estuary/xml/Variables.xml
index b28b170b34..6567d6a59f 100644
--- a/addons/skin.estuary/xml/Variables.xml
+++ b/addons/skin.estuary/xml/Variables.xml
@@ -194,6 +194,38 @@
<value condition="Skin.HasSetting(album_onclick_queue)">QueueMedia(musicdb://albums/$INFO[ListItem.DBID]/)</value>
<value>ActivateWindow(music,musicdb://albums/$INFO[ListItem.DBID]/,return)</value>
</variable>
+ <variable name="TVShowOnClickActionLabel2Var">
+ <value condition="Skin.HasSetting(tvshow_onclick_browse)">$LOCALIZE[37015]</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_continuewatching)">$LOCALIZE[13362]</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_playfrombeginning)">$LOCALIZE[12021]</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_playnext)">$LOCALIZE[10008]</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_queue)">$LOCALIZE[13347]</value>
+ <value>$LOCALIZE[37015]</value>
+ </variable>
+ <variable name="TVShowOnClickActionVar">
+ <value condition="Skin.HasSetting(tvshow_onclick_browse)">ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_continuewatching)">PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,resume)</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_playfrombeginning)">PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,noresume)</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_playnext)">QueueMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,playnext)</value>
+ <value condition="Skin.HasSetting(tvshow_onclick_queue)">QueueMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/)</value>
+ <value>ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</value>
+ </variable>
+ <variable name="MovieSetOnClickActionLabel2Var">
+ <value condition="Skin.HasSetting(movieset_onclick_browse)">$LOCALIZE[37015]</value>
+ <value condition="Skin.HasSetting(movieset_onclick_continuewatching)">$LOCALIZE[13362]</value>
+ <value condition="Skin.HasSetting(movieset_onclick_playfrombeginning)">$LOCALIZE[12021]</value>
+ <value condition="Skin.HasSetting(movieset_onclick_playnext)">$LOCALIZE[10008]</value>
+ <value condition="Skin.HasSetting(movieset_onclick_queue)">$LOCALIZE[13347]</value>
+ <value>$LOCALIZE[37015]</value>
+ </variable>
+ <variable name="MovieSetOnClickActionVar">
+ <value condition="Skin.HasSetting(movieset_onclick_browse)">ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return)</value>
+ <value condition="Skin.HasSetting(movieset_onclick_continuewatching)">PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,resume)</value>
+ <value condition="Skin.HasSetting(movieset_onclick_playfrombeginning)">PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,noresume)</value>
+ <value condition="Skin.HasSetting(movieset_onclick_playnext)">QueueMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,playnext)</value>
+ <value condition="Skin.HasSetting(movieset_onclick_queue)">QueueMedia(videodb://movies/sets/$INFO[ListItem.DBID]/)</value>
+ <value>ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return)</value>
+ </variable>
<variable name="AddonLifecycleType">
<value condition="String.IsEqual(ListItem.AddonLifecycleType,$LOCALIZE[24170])">[COLOR button_focus]$LOCALIZE[24170][/COLOR][CR]$INFO[ListItem.AddonLifecycleDesc]</value> <!-- Deprecated -->
<value condition="String.IsEqual(ListItem.AddonLifecycleType,$LOCALIZE[24171])">[COLOR button_focus]$LOCALIZE[24171][/COLOR][CR]$INFO[ListItem.AddonLifecycleDesc]</value> <!-- Broken -->