From 842ff4e4f16d2a96f346046d06b9187e0d0c895c Mon Sep 17 00:00:00 2001 From: jurialmunkey Date: Wed, 20 Oct 2021 14:10:23 +1100 Subject: [PATCH] Widget fixes - allow background setting for None widget, restore submenu widget functionality, allow renaming fallbackwidget --- 16x9/DialogSelect.xml | 4 ++++ 16x9/Includes_Defs.xml | 1 + 16x9/SkinSettings.xml | 1 + addon.xml | 2 +- shortcuts/template.xml | 4 ++-- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/16x9/DialogSelect.xml b/16x9/DialogSelect.xml index 0881bdd8..80ad1b32 100644 --- a/16x9/DialogSelect.xml +++ b/16x9/DialogSelect.xml @@ -1,11 +1,15 @@ 3 + Skin.SetString(home.fallbackwidget.name) + ClearProperty(home.fallbackwidget.name,home) GlobalOverlay Dialog_Select Dialog_Select_Game + + false diff --git a/16x9/Includes_Defs.xml b/16x9/Includes_Defs.xml index d1e1016a..0e8fbc0a 100644 --- a/16x9/Includes_Defs.xml +++ b/16x9/Includes_Defs.xml @@ -468,6 +468,7 @@ + - $INFO[Window(Weather).Property(Current.FanartCode),resource://resource.images.weatherfanart.multi/,]/ $INFO[Window(Weather).Property(Current.FanartCode),resource://resource.images.weatherfanart.multi/,]/ $INFO[Skin.String(home.fallbackwidget)] diff --git a/16x9/SkinSettings.xml b/16x9/SkinSettings.xml index f250266d..d0b6f650 100644 --- a/16x9/SkinSettings.xml +++ b/16x9/SkinSettings.xml @@ -179,6 +179,7 @@ 100% $VAR[Label_SkinSetting_FallbackWidget] + SetProperty(home.fallbackwidget.name,$INFO[Skin.String(home.fallbackwidget.name)],home) RunScript(script.skinshortcuts,type=widgets&grouping=widget&skinWidgetPath=home.fallbackwidget&skinWidget=home.fallbackwidget.node&skinWidgetName=home.fallbackwidget.name&skinWidgetType=home.fallbackwidget.type&skinWidgetTarget=home.fallbackwidget.target) 72 Defs_OptionButton diff --git a/addon.xml b/addon.xml index ef758a6f..2d6d928a 100644 --- a/addon.xml +++ b/addon.xml @@ -1,4 +1,4 @@ - + diff --git a/shortcuts/template.xml b/shortcuts/template.xml index 51061983..81ab228f 100644 --- a/shortcuts/template.xml +++ b/shortcuts/template.xml @@ -8,7 +8,7 @@ False - Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widgetType)) + Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widget)) visibility !Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)] horizontal @@ -42,7 +42,7 @@ False - !Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widgetType)) + !Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widget)) visibility !Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)] horizontal