Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
✨ Hub fullscreen fanart widget
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Dec 29, 2022
1 parent 557f5c7 commit f2b0432
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 22 deletions.
9 changes: 6 additions & 3 deletions 1080i/Custom_1120_Hub_TMDb_Movies.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1120">
<defaultcontrol>6000</defaultcontrol>
<defaultcontrol>4900</defaultcontrol>
<onload>SetFocus(300,0,absolute)</onload>
<onload condition="Window.Previous(1114) | Window.Previous(1121)">SetFocus(4899)</onload>
<onload condition="Window.Previous(1114) | Window.Previous(1121)">SetFocus(399)</onload>
<onload condition="![Window.Previous(1114) | Window.Previous(1121)]">SetFocus(6000)</onload>
<onload condition="![Window.Previous(1114) | Window.Previous(1121)]">AlarmClock(refouc,SetFocus(4900),00:00,silent)</onload>
<controls>
<include>Defs_TMDbHelper_Loader</include>
<include>Background_ExtraFanart</include>
Expand All @@ -14,6 +15,8 @@
<param name="l_window_id">1114</param>
<param name="r_window_id">1121</param>

<param name="mainwidget_content">plugin://plugin.video.themoviedb.helper/?info=trakt_trending&amp;tmdb_type=movie&amp;nextpage=false&amp;widget=true</param>

<param name="submenu_label">TMDbHelper</param>
<param name="submenu_content">plugin://plugin.video.themoviedb.helper/?info=dir_movie</param>

Expand Down Expand Up @@ -88,7 +91,7 @@
<onright>Control.Move(300,1)</onright>
<onright>ReplaceWindow(1121)</onright>
<onleft>ActivateWindow(1114)</onleft>
<ondown>6000</ondown>
<ondown>4899</ondown>
<onup>Close</onup>
<onclick>ActivateWindow(videos,plugin://plugin.video.themoviedb.helper/?info=user_discover&amp;tmdb_type=movie,return)</onclick>
</include>
Expand Down
9 changes: 6 additions & 3 deletions 1080i/Custom_1121_Hub_TMDb_TVShows.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1121">
<defaultcontrol>6000</defaultcontrol>
<defaultcontrol>4900</defaultcontrol>
<onload>SetFocus(300,1,absolute)</onload>
<onload condition="Window.Previous(1120) | Window.Previous(1122)">SetFocus(4899)</onload>
<onload condition="Window.Previous(1120) | Window.Previous(1122)">SetFocus(399)</onload>
<onload condition="![Window.Previous(1120) | Window.Previous(1122)]">SetFocus(6000)</onload>
<onload condition="![Window.Previous(1120) | Window.Previous(1122)]">AlarmClock(refouc,SetFocus(4900),00:00,silent)</onload>
<controls>
<include>Defs_TMDbHelper_Loader</include>
<include>Background_ExtraFanart</include>
Expand All @@ -14,6 +15,8 @@
<param name="l_window_id">1120</param>
<param name="r_window_id">1122</param>

<param name="mainwidget_content">plugin://plugin.video.themoviedb.helper/?info=trakt_trending&amp;tmdb_type=tv&amp;nextpage=false&amp;widget=true</param>

<param name="submenu_label">TMDbHelper</param>
<param name="submenu_content">plugin://plugin.video.themoviedb.helper/?info=dir_tv</param>

Expand Down Expand Up @@ -90,7 +93,7 @@
<onleft>ReplaceWindow(1120)</onleft>
<onright>Control.Move(300,1)</onright>
<onright>ReplaceWindow(1122)</onright>
<ondown>6000</ondown>
<ondown>4899</ondown>
<onup>Close</onup>
<onclick>ActivateWindow(videos,plugin://plugin.video.themoviedb.helper/?info=user_discover&amp;tmdb_type=tv,return)</onclick>
</include>
Expand Down
9 changes: 6 additions & 3 deletions 1080i/Custom_1122_Hub_TMDb_Mixed.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1122">
<defaultcontrol>6000</defaultcontrol>
<defaultcontrol>4900</defaultcontrol>
<onload>SetFocus(300,2,absolute)</onload>
<onload condition="Window.Previous(1121)">SetFocus(4899)</onload>
<onload condition="Window.Previous(1121)">SetFocus(399)</onload>
<onload condition="!Window.Previous(1121)">SetFocus(6000)</onload>
<onload condition="!Window.Previous(1121)">AlarmClock(refouc,SetFocus(4900),00:00,silent)</onload>
<controls>
<include>Defs_TMDbHelper_Loader</include>
<include>Background_ExtraFanart</include>
Expand All @@ -14,6 +15,8 @@
<param name="l_window_id">1121</param>
<param name="r_window_id">1123</param>

<param name="mainwidget_content">plugin://plugin.video.themoviedb.helper/?info=trakt_trending&amp;tmdb_type=both&amp;nextpage=false&amp;widget=true</param>

<param name="submenu_label">TMDbHelper</param>
<param name="submenu_content">plugin://plugin.video.themoviedb.helper/?info=dir_random</param>

Expand Down Expand Up @@ -88,7 +91,7 @@
<param name="id" value="399" />
<onleft>Control.Move(300,-1)</onleft>
<onleft>ReplaceWindow(1121)</onleft>
<ondown>6000</ondown>
<ondown>4899</ondown>
<onup>Close</onup>
<onclick>ActivateWindow(videos,plugin://plugin.video.themoviedb.helper/,return)</onclick>
</include>
Expand Down
7 changes: 3 additions & 4 deletions 1080i/Custom_1130_Hub_Library_Movies.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1130">
<defaultcontrol>6000</defaultcontrol>
<defaultcontrol>4900</defaultcontrol>
<controls>
<include>Defs_TMDbHelper_Loader</include>
<include>Background_ExtraFanart</include>
Expand All @@ -11,12 +11,11 @@
<param name="l_window_id">1114</param>
<param name="r_window_id">1114</param>

<param name="mainwidget_content">special://skin/extras/playlists/RandomMovies.xsp</param>

<param name="submenu_label">Library</param>
<param name="submenu_content">videodb://movies/</param>




<include content="Hub_Widget_SideStack">
<param name="id">500</param>
<param name="label">$LOCALIZE[535]</param>
Expand Down
4 changes: 3 additions & 1 deletion 1080i/Custom_1131_Hub_Library_TVShows.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="window" id="1131">
<defaultcontrol>6000</defaultcontrol>
<defaultcontrol>4900</defaultcontrol>
<controls>
<include>Defs_TMDbHelper_Loader</include>
<include>Background_ExtraFanart</include>
Expand All @@ -11,6 +11,8 @@
<param name="l_window_id">1114</param>
<param name="r_window_id">1114</param>

<param name="mainwidget_content">special://skin/extras/playlists/RandomTvShows.xsp</param>

<param name="submenu_label">Library</param>
<param name="submenu_content">videodb://tvshows/</param>

Expand Down
172 changes: 165 additions & 7 deletions 1080i/Includes_Hubs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<include content="Object_WallFade">
<param name="id" value="6000" />
<param name="direction_buttons">true</param>
<param name="visible_top">!Control.HasFocus(399) + !Control.HasFocus(4900)</param>
<param name="visible_top">!Control.HasFocus(399) + !Control.HasFocus(4900) + !Integer.IsEqual(Window.Property(TMDBHelper.WidgetContainer),301)</param>
<visible>!$EXP[Exp_InfoDialogs]</visible>
<visible>String.IsEmpty(Window(Home).Property(TMDbHelper.HideView))</visible>
<include>Animation_FadeIn</include>
Expand Down Expand Up @@ -51,16 +51,99 @@
<onback condition="!Integer.IsEqual(Container($PARAM[id]0).ListItem.CurrentItem,1)">SetFocus($PARAM[id]0,0,absolute)</onback>
<onback condition="Integer.IsEqual(Container($PARAM[id]0).ListItem.CurrentItem,1)">SetFocus(4900)</onback>
<onback condition="Integer.IsEqual(Container($PARAM[id]0).ListItem.CurrentItem,1)">399</onback>
<onfocus>SetProperty(TMDbHelper.WidgetContainer,$PARAM[id]0)</onfocus>
<onfocus condition="$PARAM[infowidget]">SetProperty(Slide.WidgetContainer,$PARAM[id]0)</onfocus>
<onunfocus>ClearProperty(Slide.WidgetContainer)</onunfocus>
</include>
</definition>
</include>

<include name="Hub_Grouplist">

<control type="list" id="301">
<preloaditems>2</preloaditems>
<onfocus>SetProperty(TMDbHelper.WidgetContainer,301)</onfocus>
<onup condition="!Skin.HasSetting(Hubs.DisableQuickSwitch)">300</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch) | [!Window.IsVisible(1120) + !Window.IsVisible(1121) + !Window.IsVisible(1122)]">Close</onup>
<ondown>SetFocus(300)</ondown>
<onback>SetFocus(300)</onback>
<orientation>horizontal</orientation>
<scrolltime tween="quadratic">400</scrolltime>
<hitrect x="0" y="0" w="0" h="0" />
<include content="Defs_AutoScroll">
<param name="condition">Control.HasFocus(4900)</param>
</include>
<itemlayout width="1920" height="1080" />
<focusedlayout width="1920" height="1080" />
<include content="Object_ContentDynamic">
<param name="content">$PARAM[mainwidget_content]</param>
<param name="target">videos</param>
<param name="sortby" />
<param name="sortorder" />
<param name="limit" />
</include>
</control>

<!-- Fullscreen Widget -->
<control type="group">
<visible>Integer.IsEqual(Window.Property(TMDBHelper.WidgetContainer),301)</visible>
<visible>!$EXP[Exp_InfoDialogs]</visible>
<visible>!$EXP[Exp_RecommendationDialogs]</visible>
<animation effect="fade" start="0" end="100" time="400" reversible="false">Visible</animation>
<animation effect="fade" start="100" end="0" time="400" reversible="false">Hidden</animation>
<include>Animation_Foreground_FadeInOut</include>
<include>Background_NotVideo</include>
<control type="group">
<animation condition="!Container(301).OnNext" effect="slide" start="0" end="-1920" delay="0" time="400" tween="quadratic" easing="out" reversible="false">Conditional</animation>
<animation condition="!Container(301).OnPrevious" effect="slide" start="0" end="1920" delay="0" time="400" tween="quadratic" easing="out" reversible="false">Conditional</animation>
<control type="image">
<left>-1920</left>
<width>1920</width>
<height>1080</height>
<texture background="true">$VAR[Image_FullscreenWidget_Artwork-1]</texture>
<aspectratio>scale</aspectratio>
<visible>Container(301).OnNext | Container(301).OnPrevious</visible>
<animation effect="fade" start="100" end="0" delay="400" time="1" reversible="false">Hidden</animation>
</control>
<control type="image">
<width>1920</width>
<height>1080</height>
<texture background="true">$VAR[Image_FullscreenWidget_Artwork]</texture>
<aspectratio>scale</aspectratio>
<fadetime>400</fadetime>
</control>
<control type="image">
<left>1920</left>
<width>1920</width>
<height>1080</height>
<texture background="true">$VAR[Image_FullscreenWidget_Artwork+1]</texture>
<aspectratio>scale</aspectratio>
<visible>Container(301).OnNext | Container(301).OnPrevious</visible>
<animation effect="fade" start="100" end="0" delay="400" time="1" reversible="false">Hidden</animation>
</control>
</control>
<control type="image">
<texture>background/vignetted.png</texture>
</control>
<control type="group">
<top>-260</top>
<height>1080</height>
<visible>Control.HasFocus(4900)</visible>
<animation effect="fade" start="0" end="100" time="300">VisibleChange</animation>
<control type="image">
<texture>background/vignetted.png</texture>
</control>
<control type="image">
<top>1080</top>
<height>1080</height>
<texture flipy="true">background/vignetted.png</texture>
</control>
</control>
</control>

<control type="grouplist" id="6000">
<onup condition="!Skin.HasSetting(Hubs.DisableQuickSwitch)">300</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch)">Close</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch) | [!Window.IsVisible(1120) + !Window.IsVisible(1121) + !Window.IsVisible(1122)]">Close</onup>
<ondown>330</ondown>
<animation type="Conditional" condition="Control.IsVisible(340)" reversible="false">
<effect type="slide" end="0,20" time="60" tween="sine" />
Expand Down Expand Up @@ -101,20 +184,95 @@
<visible>!$EXP[Exp_InfoDialogs]</visible>
<visible>String.IsEmpty(Window(Home).Property(TMDbHelper.HideView))</visible>

<control type="group" id="4800">
<top>fullscreenwidget_buttongroup_t</top>
<height>fullscreenwidget_buttongroup_h</height>

<animation effect="fade" start="0" end="100" time="400" delay="400" reversible="false" condition="[Integer.IsEqual(Window.Property(TMDBHelper.WidgetContainer),301) + !Integer.IsEqual(Container(301).NumItems,0)]">Conditional</animation>
<animation effect="fade" start="100" end="0" time="0" reversible="false" condition="![Integer.IsEqual(Window.Property(TMDBHelper.WidgetContainer),301) + !Integer.IsEqual(Container(301).NumItems,0)]">Conditional</animation>

<include content="Info_Panel">
<param name="plotheight" value="info_plot_h" />
<param name="controltype">label</param>
<param name="line_id" value="4898" />
<param name="container" value="Container(301)." />
<height>320</height>
<width>info_panel_w</width>
<top>fullscreenwidget_infopanel_t</top>
<left>view_pad</left>
</include>
<control type="grouplist" id="4899">
<left>40</left>
<orientation>horizontal</orientation>
<height>256</height>
<top>-8</top>
<itemgap>-60</itemgap>
<onup condition="!Skin.HasSetting(Hubs.DisableQuickSwitch)">300</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch) | [!Window.IsVisible(1120) + !Window.IsVisible(1121) + !Window.IsVisible(1122)]">Close</onup>
<onback>SetFocus(300)</onback>
<ondown>4900</ondown>
<onleft>Control.Move(301,-1)</onleft>
<onright>Control.Move(301,1)</onright>
<include content="Object_Info_Button">
<param name="id" value="4801" />
<param name="groupid" value="4811" />
<param name="sliceid" value="4821" />
<param name="label" value="$VAR[Label_FullscreenWidget_PlayButton]" />
<param name="icon" value="$VAR[Image_FullscreenWidget_PlayButton]" />
<onup condition="!Skin.HasSetting(Hubs.DisableQuickSwitch)">300</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch) | [!Window.IsVisible(1120) + !Window.IsVisible(1121) + !Window.IsVisible(1122)]">Close</onup>
<onback>SetFocus(300)</onback>
<ondown>4900</ondown>
<onclick>SetFocus(301)</onclick>
<onclick>Action(Select)</onclick>
<onclick condition="!Container(301).ListItem.IsFolder">SetFocus(4801)</onclick>

<oninfo>SetFocus(301)</oninfo>
<oninfo condition="Skin.HasSetting(Widgets.FullScreenContext)">Action(Info)</oninfo>
<oninfo condition="!Skin.HasSetting(Widgets.FullScreenContext)">Action(ContextMenu)</oninfo>
<oninfo>SetFocus(4801)</oninfo>

<onfocus>SetProperty(TMDbHelper.WidgetContainer,301)</onfocus>
<onfocus>SetProperty(FullscreenWidgetRefocus,4801,Home)</onfocus>
</include>
<include content="Object_Info_Button">
<param name="id" value="4803" />
<param name="groupid" value="4813" />
<param name="sliceid" value="4823" />
<param name="label" value="$VAR[Label_FullscreenWidget_InfoButton]" />
<param name="icon" value="$VAR[Image_FullscreenWidget_InfoButton]" />
<onup condition="!Skin.HasSetting(Hubs.DisableQuickSwitch)">300</onup>
<onup condition="Skin.HasSetting(Hubs.DisableQuickSwitch) | [!Window.IsVisible(1120) + !Window.IsVisible(1121) + !Window.IsVisible(1122)]">Close</onup>
<onback>SetFocus(300)</onback>
<ondown>4900</ondown>

<oninfo>SetFocus(301)</oninfo>
<oninfo condition="![Skin.HasSetting(Widgets.FullScreenContext) | String.IsEqual(Window(Home).Property(TMDbHelper.KodiSetting.DefaultSelectAction),$NUMBER[3])]">Action(Info)</oninfo>
<oninfo condition="[Skin.HasSetting(Widgets.FullScreenContext) | String.IsEqual(Window(Home).Property(TMDbHelper.KodiSetting.DefaultSelectAction),$NUMBER[3])]">Action(ContextMenu)</oninfo>
<oninfo>SetFocus(4803)</oninfo>

<onclick>SetFocus(301)</onclick>
<onclick condition="![Skin.HasSetting(Widgets.FullScreenContext) | String.IsEqual(Window(Home).Property(TMDbHelper.KodiSetting.DefaultSelectAction),$NUMBER[3])]">Action(Info)</onclick>
<onclick condition="[Skin.HasSetting(Widgets.FullScreenContext) | String.IsEqual(Window(Home).Property(TMDbHelper.KodiSetting.DefaultSelectAction),$NUMBER[3])]">Action(ContextMenu)</onclick>
<onclick>SetFocus(4803)</onclick>
<onfocus>SetProperty(TMDbHelper.WidgetContainer,301)</onfocus>
<onfocus>SetProperty(FullscreenWidgetRefocus,4801,Home)</onfocus>
</include>
</control>
</control>

<control type="group" id="6100">
<height>widget_tbump_h</height>
</control>

<include content="Widget_Submenu">
<include content="Widget_Hub_Submenu">
<param name="groupid" value="4901" />
<param name="id" value="4900" />
<param name="spacerid" value="4902" />
<param name="buttonid" value="4903" />
<param name="detailed">false</param>
<param name="infowidget" value="false" />
<param name="label" value="$PARAM[submenu_label]" />
<param name="include" value="List_Button_Row" />
<content target="videos">$PARAM[submenu_content]</content>
<onfocus>SetProperty(TMDbHelper.WidgetContainer,301)</onfocus>
<movement>6</movement>
</include>


Expand Down
1 change: 0 additions & 1 deletion 1080i/Includes_Images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
</variable>

<variable name="Image_FullscreenWidget_Artwork">
<value condition="!$EXP[Exp_FullscreenWidgetStandard]" />
<value condition="!String.IsEmpty(Container(301).ListItem.Art(fanart))">$INFO[Container(301).ListItem.Art(fanart)]</value>
<value condition="!String.IsEmpty(Container(301).ListItem.EPGEventIcon) + !Skin.HasSetting(PVR.DisableEPGEventIconFanart)">$INFO[Container(301).ListItem.EPGEventIcon]</value>
<value condition="String.IsEqual(Container(301).ListItem.DBtype,movie) | String.IsEqual(Container(301).ListItem.DBtype,set)">special://skin/extras/backgrounds/fallbacks/film.jpg</value>
Expand Down
Loading

0 comments on commit f2b0432

Please sign in to comment.