Skip to content

Commit

Permalink
[AutoTrailer] improvements (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
beatmasterRS committed Jan 14, 2022
1 parent 9d4ea43 commit be2cdb4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
32 changes: 12 additions & 20 deletions 1080i/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -533,14 +533,18 @@
<include>Dimensions_Fullscreen</include>
<texture colordiffuse="Background">common/bg.jpg</texture>
</control>
<include condition="Skin.HasSetting(global.showvideo)">VideoWindow</include>
</include>

<include name="VideoWindow">
<control type="image" description="Background">
<include>Dimensions_Fullscreen</include>
<texture colordiffuse="ff000000">common/white.png</texture>
<visible>Player.HasVideo + Skin.HasSetting(global.showvideo)</visible>
<visible>Player.HasVideo + !$EXP[TrailerIsPlaying]</visible>
</control>
<control type="videowindow">
<include>Dimensions_Fullscreen</include>
<visible>Player.HasVideo + Skin.HasSetting(global.showvideo)</visible>
<visible>Player.HasVideo + !$EXP[TrailerIsPlaying]</visible>
</control>
</include>

Expand Down Expand Up @@ -696,18 +700,10 @@

<include name="TrailerWindow">
<control type="videowindow">
<visible>$EXP[TrailerWindowIsActive] + !$EXP[ExtendedNowPlayingIsVisible] + ![$EXP[HomeIsCleanMinimal] + Window.IsVisible(Home)]</visible>
<width>1280</width>
<height>720</height>
<right>0</right>
<top>0</top>
<animation effect="slide" start="0,0" end="0,-90" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window.force)">Conditional</animation>
<animation effect="slide" start="0,0" end="0,-50" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window) + String.IsEqual(VideoPlayer.VideoAspect,1.85) + !String.IsEmpty(VideoPlayer.VideoAspect)">Conditional</animation>
<animation effect="slide" start="0,0" end="0,-90" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window) + !String.IsEqual(VideoPlayer.VideoAspect,1.85) + !String.IsEqual(VideoPlayer.VideoAspect,1.78) + !String.IsEqual(VideoPlayer.VideoAspect,1.66) + !String.IsEqual(VideoPlayer.VideoAspect,1.37) + !String.IsEqual(VideoPlayer.VideoAspect,1.33) + !String.IsEmpty(VideoPlayer.VideoAspect)">Conditional</animation>
<animation type="WindowClose" reversible="false">
<effect type="zoom" center="auto" start="100" end="0" time="0" />
</animation>
</control>
<visible>$EXP[TrailerWindowIsActive] + !$EXP[ExtendedNowPlayingIsVisible]</visible>
<include condition="![$EXP[HomeIsCleanMinimal] + Window.IsVisible(Home)]">DefTrailerVideoWindowSmall</include>
<include condition="$EXP[HomeIsCleanMinimal] + Window.IsVisible(Home)">DefTrailerVideoWindowFullscreen</include>
</control>
<control type="image" description="Background">
<animation effect="slide" start="0,0" end="0,-90" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window.force)">Conditional</animation>
<animation effect="slide" start="0,0" end="0,-50" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window) + String.IsEqual(VideoPlayer.VideoAspect,1.85) + !String.IsEmpty(VideoPlayer.VideoAspect)">Conditional</animation>
Expand All @@ -717,10 +713,6 @@
<include>Dimensions_Fullscreen</include>
<texture colordiffuse="Background">common/trailerwindow.png</texture>
</control>
<control type="videowindow">
<visible>$EXP[TrailerWindowIsActive] + !$EXP[ExtendedNowPlayingIsVisible] + $EXP[HomeIsCleanMinimal] + Window.IsVisible(Home)</visible>
<include>Dimensions_Fullscreen</include>
</control>
</include>

<include name="BlurImageEmbuary">
Expand All @@ -729,8 +721,8 @@
<right>-3000</right>
<width>10</width>
<height>10</height>
<texture background="true">$VAR[GlobalFanart]</texture>
<visible>!Window.IsVisible(Custom_Blur.xml)</visible>
<texture background="true">$VAR[GlobalFanart]</texture>
<visible>!Window.IsVisible(Custom_Blur.xml)</visible>
</control>
</include>

Expand Down
17 changes: 17 additions & 0 deletions 1080i/Includes_Defs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4955,4 +4955,21 @@
<onclick>RunScript(script.embuary.helper,action=blurimg,file='"$VAR[CustomBlurImage]"',prop=BlurImage)</onclick>
<onclick>Close</onclick>
</include>

<include name="DefTrailerVideoWindowSmall">
<width>1280</width>
<height>720</height>
<right>0</right>
<top>0</top>
<animation effect="slide" start="0,0" end="0,-90" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window.force)">Conditional</animation>
<animation effect="slide" start="0,0" end="0,-50" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window) + String.IsEqual(VideoPlayer.VideoAspect,1.85) + !String.IsEmpty(VideoPlayer.VideoAspect)">Conditional</animation>
<animation effect="slide" start="0,0" end="0,-90" time="0" condition="Skin.HasSetting(home.netflix.autoplay.trailer.custom.window) + !String.IsEqual(VideoPlayer.VideoAspect,1.85) + !String.IsEqual(VideoPlayer.VideoAspect,1.78) + !String.IsEqual(VideoPlayer.VideoAspect,1.66) + !String.IsEqual(VideoPlayer.VideoAspect,1.37) + !String.IsEqual(VideoPlayer.VideoAspect,1.33) + !String.IsEmpty(VideoPlayer.VideoAspect)">Conditional</animation>
<animation type="WindowClose" reversible="false">
<effect type="zoom" center="auto" start="100" end="0" time="0" />
</animation>
</include>

<include name="DefTrailerVideoWindowFullscreen">
<include>Dimensions_Fullscreen</include>
</include>
</includes>

0 comments on commit be2cdb4

Please sign in to comment.