From e1297ae7de6ed8669a4e4284fa38d4d3fbd91385 Mon Sep 17 00:00:00 2001 From: beatmasterRS Date: Wed, 13 Dec 2023 12:51:29 +0100 Subject: [PATCH] [Versions] added versions support (#1053) * [Versions] added versions support * [Update] * [Update] * [Update] * [Update] --- 1080i/Custom_DialogInfoSettings.xml | 7 + 1080i/DialogVideoVersion.xml | 49 +++ 1080i/Includes.xml | 23 ++ 1080i/Includes_Animations.xml | 6 + 1080i/Includes_Defs.xml | 358 ++++++++++++++++++++ 1080i/Includes_DialogVideoInfo.xml | 4 +- 1080i/Includes_Labels.xml | 6 + 1080i/SkinSettings.xml | 11 +- language/resource.language.en_gb/strings.po | 16 + 9 files changed, 477 insertions(+), 3 deletions(-) create mode 100644 1080i/DialogVideoVersion.xml diff --git a/1080i/Custom_DialogInfoSettings.xml b/1080i/Custom_DialogInfoSettings.xml index 88ec18fef..f9c59f75c 100644 --- a/1080i/Custom_DialogInfoSettings.xml +++ b/1080i/Custom_DialogInfoSettings.xml @@ -83,6 +83,13 @@ Skin.ToggleSetting(hidebutton.video.rating) Window.IsVisible(DialogVideoInfo.xml) + + DefContextButtonGradientSelect + + !Skin.HasSetting(hidebutton.video.versions) + Skin.ToggleSetting(hidebutton.video.versions) + Window.IsVisible(DialogVideoInfo.xml) + DefContextButtonGradientSelect diff --git a/1080i/DialogVideoVersion.xml b/1080i/DialogVideoVersion.xml new file mode 100644 index 000000000..3f42e7470 --- /dev/null +++ b/1080i/DialogVideoVersion.xml @@ -0,0 +1,49 @@ + + +200 +Control.SetFocus(50) + + GlobalOverlay + + DefDialogBackground + + DefDialogHeader + + + + + + + + + + 95 + 40 + 40 + 1 + 10 + Black12 + common/white.png + + + 340 + 115 + 730 + 1 + common/white.png + + + 741 + 115 + 700 + 1 + common/white.png + Window.IsActive(videoversion) + + + DialogVideoVersionLayout + DialogVideoVersionSelectLayout + + + \ No newline at end of file diff --git a/1080i/Includes.xml b/1080i/Includes.xml index 64f7444e2..72363be57 100644 --- a/1080i/Includes.xml +++ b/1080i/Includes.xml @@ -1914,6 +1914,16 @@ [String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,episode)] + Control.IsEnabled(7) !Skin.HasSetting(hidebutton.video.rating) + + ClearProperty(moviecontent) + ClearProperty(ShowDisc) + buttondimensions + + + + String.IsEqual(ListItem.DBTYPE,movie) + !Skin.HasSetting(hidebutton.video.versions) + ClearProperty(moviecontent) ClearProperty(ShowDisc) @@ -5159,4 +5169,17 @@ es en + + + $INFO[Container(50).ListItem.Art(poster)] + $INFO[Container(50).ListItem.Art(thumb)] + $INFO[Container(51).ListItem.Art(poster)] + $INFO[Container(51).ListItem.Art(thumb)] + + + + $INFO[Container(50).ListItem.FileNameAndPath] + $INFO[Container(51).ListItem.FileNameAndPath] + $INFO[ListItem.FileNameAndPath] + diff --git a/1080i/Includes_Animations.xml b/1080i/Includes_Animations.xml index 772bff36e..69d19c358 100644 --- a/1080i/Includes_Animations.xml +++ b/1080i/Includes_Animations.xml @@ -172,6 +172,9 @@ + + + @@ -271,6 +274,9 @@ + + + diff --git a/1080i/Includes_Defs.xml b/1080i/Includes_Defs.xml index 6a18952c3..5a0ab49e7 100644 --- a/1080i/Includes_Defs.xml +++ b/1080i/Includes_Defs.xml @@ -3514,6 +3514,14 @@ misc/overlaywatched.png !ListItem.IsResumable + !$EXP[IsTVShowInProgress] + !ListItem.IsPlaying + [[String.IsEqual(ListItem.Overlay,OverlayUnwatched.png) + [$EXP[IsNewMovie] | $EXP[IsNewTVShow] | $EXP[IsNewEpisode]]]] + !Skin.HasSetting(hide.markers.newcontent) + + 8 + 8 + 100 + 100 + misc/overlaywatched.png + ![!ListItem.IsResumable + !$EXP[IsTVShowInProgress] + !ListItem.IsPlaying + [[String.IsEqual(ListItem.Overlay,OverlayUnwatched.png) + [$EXP[IsNewMovie] | $EXP[IsNewTVShow] | $EXP[IsNewEpisode]]]] + !Skin.HasSetting(hide.markers.newcontent)] + [ListItem.HasVideoVersions + !Skin.HasSetting(hide.markers.versions)] + -9 8 @@ -3598,6 +3606,14 @@ misc/overlaywatched.png !Container(301).ListItem.IsResumable + !$EXP[IsTVShowInProgress301] + !Container(301).ListItem.IsPlaying + [[String.IsEqual(Container(301).ListItem.Overlay,OverlayUnwatched.png) + [$EXP[IsNewMovie301] | $EXP[IsNewTVShow301] | $EXP[IsNewEpisode301]]]] + !Skin.HasSetting(hide.markers.newcontent) + + 8 + 8 + 100 + 100 + misc/overlaywatched.png + ![!Container(301).ListItem.IsResumable + !$EXP[IsTVShowInProgress301] + !Container(301).ListItem.IsPlaying + [[String.IsEqual(Container(301).ListItem.Overlay,OverlayUnwatched.png) + [$EXP[IsNewMovie301] | $EXP[IsNewTVShow301] | $EXP[IsNewEpisode301]]]] + !Skin.HasSetting(hide.markers.newcontent)] + [Container(301).ListItem.HasVideoVersions + !Skin.HasSetting(hide.markers.versions)] + -9 8 @@ -4913,4 +4929,346 @@ 40 •• + + + + 50% + 50% + 1020 + 710 + DialogVideoVersionCommonLayout + + + + + + + + + + 462 + 300 + 20 + 10 + 100 + 200 + true + 0 + 0 + + 300 + DefContextButtonGradientSelect + + + + 300 + DefContextButtonGradientSelect + + ControlGroup(200).HasFocus(201) + + + 300 + DefContextButtonGradientSelect + + ControlGroup(200).HasFocus(202) + + + 300 + DefContextButtonGradientSelect + + + + 300 + DefContextButtonGradientSelect + + + + 300 + DefContextButtonGradientSelect + + + + 300 + DefContextButtonGradientSelect + + ControlGroup(200).HasFocus(201) + + + + + + + + 50% + 50% + 1020 + 710 + DialogVideoVersionCommonLayout + + + + + + + + + + + + + + + 0 + 0 + vertical + 50 + 51 + -18 + 20 + + 330 + DefContextButtonGradientSelect + + Window.IsActive(videoversion)| Window.IsActive(videoversionselect) + Integer.IsGreater(Container(50).NumItems,0) + + + 330 + DefContextButtonGradientSelect + + Window.IsActive(videoversion) | Window.IsActive(videoversionselect) + Integer.IsGreater(Container(51).NumItems,0) + + + + Large Icon Image + 312 + 10 + 300 + 450 + $VAR[VideoVersionPosterVar] + keep + + + + 311 + 20 + 800 + 483 + 50 + 50 + 200 + 101 + ControlGroup(200).HasFocus(201) + + + 30 + 30 + Small + Black70 + 66 + center + ListItem.Label + + + + + 0 + 0 + 66 + common/white.png + Control.HasFocus(50) | ControlGroup(101).HasFocus() + + + 0 + 0 + 66 + common/gradient-box-wide.png + Control.HasFocus(50) | ControlGroup(101).HasFocus() + + + 30 + 30 + 66 + Small + center + Selected + ListItem.Label + Control.HasFocus(50) + + + 30 + 30 + 66 + Small + center + Black70 + ListItem.Label + !Control.HasFocus(50) + + + + + 30 + 30 + Small + Black70 + 66 + center + ListItem.Label + + + + + 0 + 0 + 66 + common/white.png + Control.HasFocus(50) | ControlGroup(101).HasFocus() + + + 0 + 0 + 66 + common/gradient-box-wide.png + Control.HasFocus(50) | ControlGroup(101).HasFocus() + + + 30 + 30 + 66 + Small + center + Selected + ListItem.Label + Control.HasFocus(50) + + + 30 + 30 + 66 + Small + center + Black70 + ListItem.Label + !Control.HasFocus(50) + + + + + 311 + 20 + 800 + 483 + 50 + 50 + 200 + 101 + ControlGroup(200).HasFocus(202) + + + 30 + 30 + Small + Black70 + 66 + center + ListItem.Label + + + + + 0 + 0 + 66 + common/white.png + Control.HasFocus(51) | ControlGroup(101).HasFocus() + + + 0 + 0 + 66 + common/gradient-box-wide.png + Control.HasFocus(51) | ControlGroup(101).HasFocus() + + + 30 + 30 + 66 + Small + center + Selected + ListItem.Label + Control.HasFocus(51) + + + 30 + 30 + 66 + Small + center + Black70 + ListItem.Label + !Control.HasFocus(51) + + + + + 30 + 30 + Small + Black70 + 66 + center + ListItem.Label + + + + + 0 + 0 + 66 + common/white.png + Control.HasFocus(51) | ControlGroup(101).HasFocus() + + + 0 + 0 + 66 + common/gradient-box-wide.png + Control.HasFocus(51) | ControlGroup(101).HasFocus() + + + 30 + 30 + 66 + Small + center + Selected + ListItem.Label + Control.HasFocus(51) + + + 30 + 30 + 66 + Small + center + Black70 + ListItem.Label + !Control.HasFocus(51) + + + + + + Control.HasFocus(50) | Control.HasFocus(51) + 340 + 10 + Tiny + 50 + 720 + right + Black70 + + + diff --git a/1080i/Includes_DialogVideoInfo.xml b/1080i/Includes_DialogVideoInfo.xml index 812903a73..d79f3361f 100644 --- a/1080i/Includes_DialogVideoInfo.xml +++ b/1080i/Includes_DialogVideoInfo.xml @@ -906,7 +906,7 @@ - + @@ -925,7 +925,7 @@ - + diff --git a/1080i/Includes_Labels.xml b/1080i/Includes_Labels.xml index 5a4d0c4ae..51cfe13ce 100644 --- a/1080i/Includes_Labels.xml +++ b/1080i/Includes_Labels.xml @@ -135,6 +135,7 @@ [COLOR=FF00DD44]✓[/COLOR] [COLOR=ColoredIcons][/COLOR] + @@ -145,6 +146,7 @@ $LOCALIZE[31493] $LOCALIZE[31494] + $LOCALIZE[40000] @@ -166,6 +168,7 @@ [COLOR=FF00DD44]✓[/COLOR] [COLOR=ColoredIcons][/COLOR] + @@ -176,6 +179,7 @@ $LOCALIZE[31493] $LOCALIZE[31494] + $LOCALIZE[40000] @@ -202,6 +206,7 @@ [COLOR=FF00DD44]✓[/COLOR] [COLOR=ColoredIcons][/COLOR] + @@ -1342,6 +1347,7 @@ $LOCALIZE[31498] $LOCALIZE[31486] $LOCALIZE[31711] + $LOCALIZE[40000] $LOCALIZE[518] $LOCALIZE[24020] $LOCALIZE[24138] diff --git a/1080i/SkinSettings.xml b/1080i/SkinSettings.xml index 38b304c72..6fec99192 100644 --- a/1080i/SkinSettings.xml +++ b/1080i/SkinSettings.xml @@ -1796,7 +1796,7 @@ - + $INFO[Skin.String(indicatorcolorbackgroundinprogress.name)] SetProperty(colorstring,$INFO[Skin.String(indicatorcolorbackgroundinprogress.name)],home) SetProperty(colordesc,indicatorcolorbackgroundinprogress.name,home) @@ -2675,6 +2675,15 @@ !Skin.HasSetting(hide.markers.newcontent) Skin.ToggleSetting(hide.markers.newcontent) + + ControlGroup(9100).HasFocus(9106) + DefSettingsButtonGradientSkinSettings + + left + !Skin.HasSetting(hide.markers) + !Skin.HasSetting(hide.markers.versions) + Skin.ToggleSetting(hide.markers.versions) + ControlGroup(9100).HasFocus(9106) DefSettingsButtonGradientSkinSettings diff --git a/language/resource.language.en_gb/strings.po b/language/resource.language.en_gb/strings.po index c7e0d4320..d790965da 100644 --- a/language/resource.language.en_gb/strings.po +++ b/language/resource.language.en_gb/strings.po @@ -2616,3 +2616,19 @@ msgstr "" msgctxt "#31718" msgid "Sandy yellow" msgstr "" + +msgctxt "#31719" +msgid "Add version" +msgstr "" + +msgctxt "#31720" +msgid "Add extras" +msgstr "" + +msgctxt "#31721" +msgid "Set default" +msgstr "" + +msgctxt "#31722" +msgid "Extras" +msgstr ""