Skip to content

Commit

Permalink
globalsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Apr 29, 2024
1 parent bc24b4d commit ab5fc2a
Show file tree
Hide file tree
Showing 17 changed files with 451 additions and 79 deletions.
42 changes: 32 additions & 10 deletions 16x9/Actions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
<param name="type" default="videos" />
<param name="method" default="from_here" />
<definition>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3201)">RunScript(script.copacetic.helper,action=play_items,id=3201,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3202)">RunScript(script.copacetic.helper,action=play_items,id=3202,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3203)">RunScript(script.copacetic.helper,action=play_items,id=3203,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3204)">RunScript(script.copacetic.helper,action=play_items,id=3204,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3205)">RunScript(script.copacetic.helper,action=play_items,id=3205,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3206)">RunScript(script.copacetic.helper,action=play_items,id=3206,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3207)">RunScript(script.copacetic.helper,action=play_items,id=3207,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3208)">RunScript(script.copacetic.helper,action=play_items,id=3208,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3209)">RunScript(script.copacetic.helper,action=play_items,id=3209,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3201)">RunScript(script.copacetic.helper,action=play_items,id=3201,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3202)">RunScript(script.copacetic.helper,action=play_items,id=3202,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3203)">RunScript(script.copacetic.helper,action=play_items,id=3203,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3204)">RunScript(script.copacetic.helper,action=play_items,id=3204,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3205)">RunScript(script.copacetic.helper,action=play_items,id=3205,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3206)">RunScript(script.copacetic.helper,action=play_items,id=3206,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3207)">RunScript(script.copacetic.helper,action=play_items,id=3207,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3208)">RunScript(script.copacetic.helper,action=play_items,id=3208,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3209)">RunScript(script.copacetic.helper,action=play_items,id=3209,type=$PARAM[type],method=$PARAM[method])</onclick>
</definition>
</include>

Expand Down Expand Up @@ -110,6 +110,11 @@
<onclick>ActivateWindow(music,musicdb://albums/$INFO[Container.ListItem.DBID]/-2/?albumid=$INFO[Container.ListItem.DBID],return)</onclick>
</include>

<include name="ClickAction_Play_All_Videos">
<onclick>Dialog.Close(all)</onclick>
<include content="Default_Play_Items" />
</include>

<include name="ClickAction_Play_All_Songs">
<include content="Default_Play_Items">
<param name="type" value="music" />
Expand All @@ -123,16 +128,33 @@
<onclick condition="Integer.IsGreater(ListItem.DBID,0) + !String.IsEqual(Container(3201).ListItem.DBID,window(movieinformation).property(SelectedItem))">PlayMedia($ESCINFO[ListItem.Filenameandpath])</onclick>
</include>

<include name="ClickAction_Play_File">
<onclick>Dialog.Close(all)</onclick>
<onclick>PlayMedia($ESCINFO[ListItem.Filenameandpath])</onclick>
</include>

<include name="ClickAction_Open_Season_Folder">
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">Dialog.Close(all)</onclick>
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">SetProperty(SentFromInfo,true,movieinformation)</onclick>
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">ActivateWindow(Videos,$INFO[Container(3202).ListItem.FolderPath]/,return)</onclick>
</include>

<include name="ClickAction_Open_Artist">
<onclick>Dialog.Close(all)</onclick>
<onclick>SetProperty(SentFromInfo,true,musicinformation)</onclick>
<onclick condition="Control.HasFocus(3204)">ActivateWindow(music,musicdb://artists/$INFO[Container(3202).ListItem.DBID]/,return)</onclick>
</include>

<include name="ClickAction_Open_Album">
<onclick>Dialog.Close(all)</onclick>
<onclick>SetProperty(SentFromInfo,true,musicinformation)</onclick>
<onclick>ActivateWindow(music,musicdb://albums/$INFO[Container(3202).ListItem.DBID]/-2/,return)</onclick>
<onclick condition="Control.HasFocus(3202)">ActivateWindow(music,musicdb://albums/$INFO[Container(3202).ListItem.DBID]/-2/,return)</onclick>
<onclick condition="Control.HasFocus(3205)">ActivateWindow(music,musicdb://albums/$INFO[Container(3205).ListItem.DBID]/-2/,return)</onclick>
</include>

<include name="ClickAction_Open_TVShow">
<onclick>Dialog.Close(all)</onclick>
<onclick>ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</onclick>
</include>

<include name="ClickAction_Open_Set">
Expand Down
4 changes: 2 additions & 2 deletions 16x9/Buttons_Infoscreen_Path_Tracer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">ClearProperty(ContainerPath_1,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">ClearProperty(Breadcrumb_Level,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">Dialog.Close(all,true)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">Dialog.Close</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + !String.IsEmpty(Window(home).Property(Origin))">ActivateWindow(home)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + !String.IsEmpty(Window(home).Property(Origin))">SetFocus(6001)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1)">ClearProperty(Origin,home)</onfocus>
Expand Down Expand Up @@ -100,7 +100,7 @@
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),10)">ClearProperty(ContainerPath_10,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),10)">SetProperty(Breadcrumb_Level,9,$PARAM[window])</onfocus>

<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">Dialog.Close(all,true)</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">Dialog.Close</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">SetFocus(6001)</onfocus>

</control>
Expand Down
24 changes: 22 additions & 2 deletions 16x9/Colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
<value>$VAR[Primary_Color]</value>
</variable>
<variable name="Home_Scroll_Widget_Background_Color">
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground]">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground] | Control.HasFocus(4201)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + Skin.String(Widget1_View,Showcase)">$VAR[Alpha_15]$VAR[Dark_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Posters) + !String.IsEmpty(Container(3201).ListItemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Square) + !String.IsEmpty(Container(3201).ListItemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down Expand Up @@ -788,7 +788,7 @@
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
</variable>
<variable name="Home_Scroll_Widget_Focused_Color">
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground]">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground] | Control.HasFocus(4201)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + Skin.String(Widget1_View,Showcase)">$VAR[Dark_Grey_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Posters) + !String.IsEmpty(Container(3201).ListItemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Square) + !String.IsEmpty(Container(3201).ListItemNoWrap(1).Label)">$VAR[Light_Color]</value>
Expand Down Expand Up @@ -854,6 +854,26 @@
<value condition="Control.HasFocus(3209) + Skin.String(Widget9_View,Grid) + Skin.String(Widget9_Display,Fanart) + !String.IsEmpty(Container(3209).ListItemNoWrap(3).Label)">$VAR[Light_Color]</value>
<value>$VAR[Primary_Color]</value>
</variable>

<variable name="globalsearch_Scroll_Widget_Background_Color">
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3201).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3202) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3202).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3203) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3203).ListitemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3204) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3204).ListitemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3205) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3205).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3206) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3206).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value>$VAR[Alpha_15]$VAR[Dark_Hex]</value>
</variable>
<variable name="globalsearch_Scroll_Widget_Focused_Color">
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3201).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3202) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3202).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3203) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3203).ListitemNoWrap(1).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3204) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3204).ListitemNoWrap(1).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3205) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3205).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3206) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3206).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value>$VAR[Dark_Grey_Color]</value>
</variable>

<variable name="Seekbar_Background_Color">
<value condition="Skin.String(Theme,Light) + $EXP[visualisation_Background_IsEmpty] + Skin.String(visualisation_Layout,Large)">$VAR[Alpha_15]$VAR[Dark_Hex]</value>
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down
36 changes: 0 additions & 36 deletions 16x9/Components_Viewtypes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,42 +99,6 @@
</control>
</include>

<include name="Media_Cacher">
<control type="grouplist">
<include content="Hidden_Control" />
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo-alt)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo-billboard)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo-alt)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo-billboard)]</texture>
</control>
</control>
</include>

<include name="Custom_List">
<param name="type" default="fixedlist" />
<param name="id" />
Expand Down
39 changes: 39 additions & 0 deletions 16x9/Custom_1180_globalsearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1180">
<!-- global search -->
<include content="Widget_Position_Reset_OnLoad" />
<defaultcontrol always="true">3000</defaultcontrol>
<controls>

<!-- Button bouncer until containers are populated -->
<control type="button" id="3000">
<visible allowhiddenfocus="true">false</visible>
<animation effect="slide" end="0,0" time="360" reversible="false">Focus</animation>
<include content="globalsearch_Focus_Setter">
<param name="bounce_id" value="3001" />
</include>
</control>
<control type="button" id="3001">
<visible allowhiddenfocus="true">false</visible>
<animation effect="slide" end="0,0" time="360" reversible="false">Focus</animation>
<include content="globalsearch_Focus_Setter">
<param name="bounce_id" value="3000" />
</include>
</control>

<control type="group">
<visible>!$EXP[Infoscreen_IsVisible]</visible>
<include content="Visible_Fade_Delayed_Animation" />
<include content="WindowOpenClose_Fade_Delayed_Long_Animation" />
<include content="User_Scroll_Delay" />
<include content="globalsearch_Widget_3201_Movies" />
<include content="globalsearch_Widget_3202_TVShows" />
<include content="globalsearch_Widget_3203_Episodes" />
<include content="globalsearch_Widget_3204_Artists" />
<include content="globalsearch_Widget_3205_Albums" />
<include content="globalsearch_Widget_3206_Songs" />
<include content="globalsearch_Scrollbar" />
</control>

</controls>
</window>
3 changes: 2 additions & 1 deletion 16x9/Expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<includes>

<!-- Windows -->
<expression name="Home_HasBackground">Window.IsVisible(home) + [String.IsEmpty(Window(home).Property(Home_Widget)) | $EXP[BillboardView_Display_IsFanart_Widget_Home]]</expression>
<expression name="Home_HasBackground">Window.IsVisible(home) + [String.IsEmpty(Window(home).Property(Home_Widget)) | $EXP[BillboardView_Display_IsFanart_Widget_Home]] + !$EXP[globalsearch_IsVisible]</expression>
<expression name="Settings_Window_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)</expression>
<expression name="Window_HasBackground">Window.IsVisible(addonsettings) + !String.IsEmpty(ListItem.Art(fanart))] | [Window.IsVisible(addonbrowser) + !Container.Content(addons)] | Window.IsVisible(favouritesbrowser) | Window.IsVisible(loginscreen) | Window.IsVisible(musicplaylisteditor)</expression>
<expression name="Container_HasBackground">$EXP[ListView_Display_IsBackground] | $EXP[BillboardView_IsVisible] | $EXP[ShowcaseView_Display_HasBackground]</expression>
Expand All @@ -13,6 +13,7 @@
<expression name="Infoscreen_IsVisible">Window.IsVisible(movieinformation) | Window.IsVisible(musicinformation) | Window.IsVisible(songinformation) | Window.IsVisible(addoninformation) | $EXP[Infoscreen_Widget_Transition] | Window.IsVisible(pvrguideinfo) | Window.IsVisible(pvrrecordinginfo)</expression>
<expression name="Infoscreen_Widget_HasFocus">$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))]</expression>
<expression name="Infoscreen_Widget_Transition">Control.HasFocus(6001) | Control.HasFocus(6002) | String.IsEqual(Window(home).Property(Infoscreen_Transition),true)</expression>
<expression name="globalsearch_IsVisible">Window.IsVisible(1180)</expression>

<expression name="PanelDialog_IsVisible">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)</expression>
<expression name="NoPanelDialog_IsVisible">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)</expression>
Expand Down
Loading

0 comments on commit ab5fc2a

Please sign in to comment.