From 1d6bf8d3141dc5eb58d120541db4b51da1227191 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Mon, 7 Nov 2022 12:19:02 +0100 Subject: [Estuary] Add skin settings to control tv show and movie set select action. --- .../resource.language.en_gb/resources/strings.po | 4 +++ .../language/resource.language.en_gb/strings.po | 14 +++++++++- addons/skin.estuary/xml/Home.xml | 6 ++++ addons/skin.estuary/xml/Includes_Home.xml | 2 ++ addons/skin.estuary/xml/SkinSettings.xml | 14 ++++++++++ addons/skin.estuary/xml/Variables.xml | 32 ++++++++++++++++++++++ 6 files changed, 71 insertions(+), 1 deletion(-) 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 @@ + + @@ -131,6 +133,8 @@ + + @@ -143,6 +147,8 @@ + + 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 @@ + false $PARAM[widget_header] @@ -41,6 +42,7 @@ Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating 0 503 + $PARAM[onclick_action] 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 @@ InstallAddon(plugin.library.node.editor) !Skin.HasSetting(HomeMenuNoMovieButton) + + + DefaultSettingButton + Skin.SelectBool(31176, 37015|movieset_onclick_browse, 13362|movieset_onclick_continuewatching, 12021|movieset_onclick_playfrombeginning, 10008|movieset_onclick_playnext, 13347|movieset_onclick_queue) + $VAR[MovieSetOnClickActionLabel2Var] + !Skin.HasSetting(HomeMenuNoMovieButton) + DefaultSettingButton @@ -181,6 +188,13 @@ InstallAddon(plugin.library.node.editor) !Skin.HasSetting(HomeMenuNoTVShowButton) + + + DefaultSettingButton + Skin.SelectBool(31175, 37015|tvshow_onclick_browse, 13362|tvshow_onclick_continuewatching, 12021|tvshow_onclick_playfrombeginning, 10008|tvshow_onclick_playnext, 13347|tvshow_onclick_queue) + $VAR[TVShowOnClickActionLabel2Var] + !Skin.HasSetting(HomeMenuNoTVShowButton) + DefaultSettingButton 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 @@ QueueMedia(musicdb://albums/$INFO[ListItem.DBID]/) ActivateWindow(music,musicdb://albums/$INFO[ListItem.DBID]/,return) + + $LOCALIZE[37015] + $LOCALIZE[13362] + $LOCALIZE[12021] + $LOCALIZE[10008] + $LOCALIZE[13347] + $LOCALIZE[37015] + + + ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return) + PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,resume) + PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,noresume) + QueueMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,playnext) + QueueMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/) + ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return) + + + $LOCALIZE[37015] + $LOCALIZE[13362] + $LOCALIZE[12021] + $LOCALIZE[10008] + $LOCALIZE[13347] + $LOCALIZE[37015] + + + ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return) + PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,resume) + PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,noresume) + QueueMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,playnext) + QueueMedia(videodb://movies/sets/$INFO[ListItem.DBID]/) + ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return) + [COLOR button_focus]$LOCALIZE[24170][/COLOR][CR]$INFO[ListItem.AddonLifecycleDesc] [COLOR button_focus]$LOCALIZE[24171][/COLOR][CR]$INFO[ListItem.AddonLifecycleDesc] -- cgit v1.2.3