From a18e7f1c187feefb93ed5b7978cb53b2797df874 Mon Sep 17 00:00:00 2001 From: realcopacetic Date: Fri, 26 Apr 2024 13:42:21 +0100 Subject: [PATCH] global search wip --- 16x9/Custom_1180_globalsearch.xml | 27 +++-- 16x9/Expressions.xml | 5 +- 16x9/Home.xml | 6 +- 16x9/Navigation.xml | 80 +++++++++++++ 16x9/Templates_Widgets.xml | 122 ++++++++++++++++++-- 16x9/Variables_Paths_Widgets.xml | 31 +++++ 16x9/Variables_Textures_Artwork_Widgets.xml | 6 + 16x9/Viewtype_504_Strip.xml | 8 +- 16x9/script-globalsearch-main.xml | 11 -- addon.xml | 2 +- 10 files changed, 259 insertions(+), 39 deletions(-) delete mode 100644 16x9/script-globalsearch-main.xml diff --git a/16x9/Custom_1180_globalsearch.xml b/16x9/Custom_1180_globalsearch.xml index cafb244e..93801b0b 100644 --- a/16x9/Custom_1180_globalsearch.xml +++ b/16x9/Custom_1180_globalsearch.xml @@ -1,17 +1,24 @@ - 100 + 3000 - - Skin.SetString(globalsearch) - 3201 - - - - - - right + + !$EXP[Infoscreen_IsVisible] + + + Skin.SetString(globalsearch) + ClearProperty(Infoscreen_Widget,home) + 3201 + + + + + + + + + \ No newline at end of file diff --git a/16x9/Expressions.xml b/16x9/Expressions.xml index deba5e90..387a14e7 100644 --- a/16x9/Expressions.xml +++ b/16x9/Expressions.xml @@ -2,7 +2,7 @@ - Window.IsVisible(home) + [String.IsEmpty(Window(home).Property(Home_Widget)) | $EXP[BillboardView_Display_IsFanart_Widget_Home]] + Window.IsVisible(home) + [String.IsEmpty(Window(home).Property(Home_Widget)) | $EXP[BillboardView_Display_IsFanart_Widget_Home]] + !$EXP[globalsearch_IsVisible] Window.IsVisible(settings) | Window.IsVisible(skinsettings) | Window.IsVisible(appearancesettings) | Window.IsVisible(mediasettings) | Window.IsVisible(playersettings) | Window.IsVisible(servicesettings) | Window.IsVisible(systemsettings) | Window.IsVisible(pvrsettings) | Window.IsVisible(gamesettings) | Window.IsVisible(profiles) | Window.IsVisible(systeminfo) | Window.IsVisible(filemanager) Window.IsVisible(addonsettings) + !String.IsEmpty(ListItem.Art(fanart))] | [Window.IsVisible(addonbrowser) + !Container.Content(addons)] | Window.IsVisible(favouritesbrowser) | Window.IsVisible(loginscreen) | Window.IsVisible(musicplaylisteditor) $EXP[ListView_Display_IsBackground] | $EXP[BillboardView_IsVisible] | $EXP[ShowcaseView_Display_HasBackground] @@ -10,9 +10,10 @@ [Window.IsVisible(movieinformation) + [Window.IsVisible(1104) | Window.IsVisible(1150) | !String.IsEmpty(Window(movieinformation).Property(Focused_Button)) | String.IsEqual(Window(home).Property(Infoscreen_Widget),3205)]] | [Window.IsVisible(musicinformation) + String.IsEqual(Window(musicinformation).Property(Info_Type),artist) + [Window.IsVisible(1104) | Window.IsVisible(1150) | !String.IsEmpty(Window(musicinformation).Property(Focused_Button))]] | [Window.IsVisible(musicinformation) + String.IsEqual(Window(musicinformation).Property(Focused_Button),$LOCALIZE[21891])] $EXP[Home_HasBackground] | $EXP[Settings_Window_IsVisible] | $EXP[Container_HasBackground] | $EXP[Content_HasBackground] | $EXP[Infoscreen_HasBackground] | [Container.Content() + $EXP[ListView_Display_IsBackground] + [Window.IsVisible(videos) | Window.IsVisible(music)]] - Window.IsVisible(movieinformation) | Window.IsVisible(musicinformation) | Window.IsVisible(songinformation) | Window.IsVisible(addoninformation) | $EXP[Infoscreen_Widget_Transition] | Window.IsVisible(pvrguideinfo) | Window.IsVisible(pvrrecordinginfo) | Window.IsVisible(1180) + Window.IsVisible(movieinformation) | Window.IsVisible(musicinformation) | Window.IsVisible(songinformation) | Window.IsVisible(addoninformation) | $EXP[Infoscreen_Widget_Transition] | Window.IsVisible(pvrguideinfo) | Window.IsVisible(pvrrecordinginfo) $EXP[Infoscreen_IsVisible] + [String.IsEmpty(Window(movieinformation).Property(Focused_Button)) + String.IsEmpty(Window(musicinformation).Property(Focused_Button)) + String.IsEmpty(Window(addoninformation).Property(Focused_Button)) + String.IsEmpty(Window(pvrguideinfo).Property(Focused_Button))] Control.HasFocus(6001) | Control.HasFocus(6002) | String.IsEqual(Window(home).Property(Infoscreen_Transition),true) + Window.IsVisible(1180) Window.IsVisible(selectdialog) | Window.IsVisible(selectvideoversion) | !String.IsEmpty(Window(home).Property(SelectDialog)) | Window.IsVisible(filebrowser) | Window.IsVisible(virtualkeyboard) | Window.IsVisible(numericinput) | Window.IsVisible(mediasource) | Window.IsVisible(mediafilter) | Window.IsVisible(smartplaylistrule) | Window.IsVisible(addonsettings) | Window.IsVisible(osdsubtitlesettings) | Window.IsVisible(osdvideosettings) | Window.IsVisible(osdaudiosettings) | Window.IsVisible(networksetup) | Window.IsVisible(profilesettings) | Window.IsVisible(locksettings) | Window.IsVisible(contentsettings) | Window.IsVisible(libexportsettings) | Window.IsVisible(peripheralsettings) | Window.IsVisible(osdcmssettings) | Window.IsVisible(infoprovidersettings) | Window.IsVisible(pvrtimersetting) | Window.IsVisible(gamevideofilter) | Window.IsVisible(visualisationpresetlist) | Window.IsVisible(managevideoversions) | Window.IsVisible(managevideoextras) String.IsEqual(Window(home).Property(OptionsMenu),Active) | Window.IsVisible(shutdownmenu) | Window.IsVisible(contextmenu) | Window.IsVisible(okdialog) | Window.IsVisible(yesnodialog) | Window.IsVisible(progressdialog) | Window.IsVisible(10148) | Window.IsVisible(dialogcolorpicker) diff --git a/16x9/Home.xml b/16x9/Home.xml index 2157c481..5bd044dc 100644 --- a/16x9/Home.xml +++ b/16x9/Home.xml @@ -35,14 +35,14 @@ - [Control.HasFocus(4010) | Control.HasFocus(3000) | Control.HasFocus(4300) | $EXP[Music_Player_HasFocus]] + !$EXP[Infoscreen_IsVisible] + [Control.HasFocus(4010) | Control.HasFocus(3000) | Control.HasFocus(4300) | $EXP[Music_Player_HasFocus]] + !$EXP[Infoscreen_IsVisible] + !$EXP[globalsearch_IsVisible] - + @@ -53,7 +53,7 @@ Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] - !$EXP[TransparentDialog_IsVisible] + !$EXP[Infoscreen_IsVisible] + !$EXP[TransparentDialog_IsVisible] + !$EXP[Infoscreen_IsVisible] + !$EXP[globalsearch_IsVisible] diff --git a/16x9/Navigation.xml b/16x9/Navigation.xml index 904c4e6a..1ce94a99 100644 --- a/16x9/Navigation.xml +++ b/16x9/Navigation.xml @@ -480,6 +480,86 @@ SetFocus(3000) + + 3201 + 3202 + 3203 + 3204 + 3205 + 3206 + 3207 + 3207 + 3206 + 3205 + 3204 + 3203 + 3202 + 3201 + + + + SetFocus(3000) + 0 + 0 + 3202 + 3203 + 3204 + 3205 + 3206 + 3207 + SetFocus(3000) + 3203 + 3204 + 3205 + 3206 + 3207 + SetFocus(3000) + 3204 + 3205 + 3206 + 3207 + SetFocus(3000) + 3205 + 3206 + 3207 + SetFocus(3000) + 3206 + 3207 + SetFocus(3000) + 3207 + SetFocus(3000) + SetFocus(3000) + + 3206 + 3205 + 3204 + 3203 + 3202 + 3201 + SetFocus(3000) + 3205 + 3204 + 3203 + 3202 + 3201 + SetFocus(3000) + 3204 + 3203 + 3202 + 3201 + SetFocus(3000) + 3203 + 3202 + 3201 + SetFocus(3000) + 3202 + 3201 + SetFocus(3000) + 3201 + SetFocus(3000) + SetFocus(3000) + + ClearProperty(Multiart_0,home) ClearProperty(Multiart_1,home) diff --git a/16x9/Templates_Widgets.xml b/16x9/Templates_Widgets.xml index 7214781f..03735ead 100644 --- a/16x9/Templates_Widgets.xml +++ b/16x9/Templates_Widgets.xml @@ -452,6 +452,7 @@ + @@ -469,7 +470,7 @@ - + @@ -788,24 +789,129 @@ + + + - + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file diff --git a/16x9/Variables_Paths_Widgets.xml b/16x9/Variables_Paths_Widgets.xml index 50aa8185..9a9a8a3c 100644 --- a/16x9/Variables_Paths_Widgets.xml +++ b/16x9/Variables_Paths_Widgets.xml @@ -105,4 +105,35 @@ musicdb://songs/?xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B$ESCINFO[ListItem.Genre]%5D%7D%2C%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22isnot%22%2C%22value%22%3A%5B$ESCINFO[ListItem.Title]%5D%7D%5D%7D%2C%22type%22%3A%22songs%22%7D%0A + + + + videodb://movies/titles/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22plot%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22set%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22director%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22studio%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22tag%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22movies%22%7D + + + + + videodb://tvshows/titles/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22plot%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22director%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22studio%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22tag%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22tvshows%22%7D + + + + + videodb://recentlyaddedepisodes/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22plot%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22director%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22episodes%22%7D + + + + + musicdb://artists/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22biography%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22artists%22%7D + + + + + musicdb://albums/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22album%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22review%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22label%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22albums%22%7D + + + + + musicdb://songs/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22album%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%2C%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Skin.String(globalsearch)]%22%5D%7D%5D%7D%2C%22type%22%3A%22songs%22%7D + + \ No newline at end of file diff --git a/16x9/Variables_Textures_Artwork_Widgets.xml b/16x9/Variables_Textures_Artwork_Widgets.xml index f399a195..b639982a 100644 --- a/16x9/Variables_Textures_Artwork_Widgets.xml +++ b/16x9/Variables_Textures_Artwork_Widgets.xml @@ -1027,6 +1027,8 @@ $INFO[Container(3201).ListItem(0).Art(fanart)] $INFO[Container(3201).ListItem(0).Icon] $INFO[Container(50).ListItem(0).Icon] + $INFO[Container(3203).ListItem(0).Icon] + $INFO[Container(3204).ListItem(0).Art(fanart)] $INFO[Container(3205).ListItem(0).Art(fanart)] $INFO[Container(3205).ListItem(0).Icon] $INFO[Container(3206).ListItem(0).Art(fanart)] @@ -1069,6 +1071,10 @@ $INFO[Container(3201).ListItem(0).Icon] $INFO[Container(3202).ListItem(0).Icon] + $INFO[Container(3203).ListItem(0).Icon] + $INFO[Container(3204).ListItem(0).Icon] + $INFO[Container(3205).ListItem(0).Icon] + $INFO[Container(3206).ListItem(0).Icon] $INFO[Container(3207).ListItem(0).Icon] diff --git a/16x9/Viewtype_504_Strip.xml b/16x9/Viewtype_504_Strip.xml index 55268165..d4aaed90 100644 --- a/16x9/Viewtype_504_Strip.xml +++ b/16x9/Viewtype_504_Strip.xml @@ -48,12 +48,12 @@ - + Conditional - Conditional - Conditional + Conditional + Conditional @@ -66,7 +66,7 @@ Conditional - + diff --git a/16x9/script-globalsearch-main.xml b/16x9/script-globalsearch-main.xml deleted file mode 100644 index b620466b..00000000 --- a/16x9/script-globalsearch-main.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - 111 - $VAR[Dark_Color] - - - - - - \ No newline at end of file diff --git a/addon.xml b/addon.xml index 877973c7..25075483 100644 --- a/addon.xml +++ b/addon.xml @@ -7,7 +7,7 @@ - +