Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix4 includes view posters #5

Open
wants to merge 5 commits into
base: Matrix-withFixes
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions 1080i/Includes_Object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3591,6 +3591,49 @@
</control>
</definition>
</include>
<include name="Object_MediumPoster">
<param name="container" default="" />
<param name="visible" default="!Container.IsUpdating" />
<param name="variable" default="$VAR[Image_Poster]" />
<param name="height" default="550" />
<param name="width" default="350" />
<param name="discart" default="false" />
<param name="aspect" default="keep" />
<definition>
<control type="group">
<left>0</left>
<top>0</top>
<width>400</width>
<height>$PARAM[height]</height>
<visible>$PARAM[visible]</visible>
<control type="group">
<visible>!Window.IsVisible(MyPics.xml)</visible>
<control type="group">
<control type="image">
<aspectratio aligny="center" scalediffuse="false">scale</aspectratio>
<texture background="true" fallback="DefaultAddonImages.png" diffuse="diffuse/bigposter.png">$PARAM[variable]</texture>
<visible>[!$PARAM[container]ListItem.IsParentFolder + [!String.IsEmpty($PARAM[container]ListItem.Art(tvshow.poster)) | !String.IsEmpty($PARAM[container]ListItem.Art(poster)) | !String.IsEmpty($PARAM[container]ListItem.Art(season.poster))]]</visible>
</control>
<control type="group">
<visible>[[!$PARAM[container]ListItem.IsParentFolder + !String.StartsWith($PARAM[container]ListItem.Icon,DefaultIcon)] + ![!String.IsEmpty($PARAM[container]ListItem.Art(tvshow.poster)) | !String.IsEmpty($PARAM[container]ListItem.Art(poster)) | !String.IsEmpty($PARAM[container]ListItem.Art(season.poster))]]</visible>
<control type="image">
<aspectratio aligny="center" scalediffuse="false">$PARAM[aspect]</aspectratio>
<texture background="true" fallback="DefaultAddonImages.png" diffuse="diffuse/bigposter.png">$PARAM[variable]</texture>
</control>
</control>
</control>
<control type="group">
<visible>$PARAM[container]ListItem.IsParentFolder | String.StartsWith($PARAM[container]ListItem.Icon,DefaultIcon)</visible>
<control type="image">
<aspectratio aligny="center" scalediffuse="false">center</aspectratio>
<texture background="true" colordiffuse="PosterFront" fallback="DefaultAddonNone.png" diffuse="diffuse/bigposter.png">$VAR[serenicons]</texture>
<visible>String.Contains(ListItem.Path,plugin://plugin.video.seren)</visible>
</control>
</control>
</control>
</control>
</definition>
</include>
<include name="Object_Flags">
<param name="container" default="" />
<param name="source" default="ListItem." />
Expand Down
20 changes: 20 additions & 0 deletions 1080i/Includes_View.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,26 @@
</control>
</include>

<include name="View_Library_Poster_Medium">
<control type="group">
<left>50</left>
<bottom>view_pad</bottom>
<top>420</top>
<visible>Container.Control.IsVisible(502) | Control.HasFocus(502)</visible>
<control type="group">
<width>350</width>
<height>550</height>
<control type="image">
<texture colordiffuse="Background" border="20">common/box.png</texture>
<visible>Control.IsVisible(502)</visible>
</control>
<include content="Object_MediumPoster">
<param name="discart" value="false" />
</include>
</control>
</control>
</include>

<include name="View_WatchedOverlay">
<include condition="Skin.HasSetting(LightWatchedOverlay)">View_WatchedOverlay_White</include>
<include condition="!Skin.HasSetting(LightWatchedOverlay)">View_WatchedOverlay_Black</include>
Expand Down
1 change: 1 addition & 0 deletions 1080i/Includes_View_Posters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,7 @@
<control type="group">
<visible>Control.IsVisible(502)</visible>
<visible>Container.Content(episodes) | Container.Content(seasons)</visible>
<include>View_Library_Poster_Medium</include>
<control type="group">
<include condition="Skin.HasSetting(DisableNetflixView)">View_Pad</include>
<include condition="!Skin.HasSetting(DisableNetflixView)">Object_Episodes_Info</include>
Expand Down