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

Commit

Permalink
possible fix for trailer window - #17 #69
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Jun 6, 2022
1 parent 0dd3740 commit b5c8d69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
1 change: 1 addition & 0 deletions 1080i/Background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<include name="Background_Main">
<control type="group">
<include>Animation_Background_FadeInOut</include>
<control type="videowindow" />
<include condition="Skin.String(BackgroundStyle,None)">Background_None</include>
<include condition="Skin.String(BackgroundStyle,Image)">Background_Image</include>
<include condition="Skin.String(BackgroundStyle,Fanart)">Background_Fanart</include>
Expand Down
14 changes: 0 additions & 14 deletions 1080i/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<window type="dialog">
<defaultcontrol always="true">5000</defaultcontrol>
<menucontrol>9000</menucontrol>
<onunload>CancelAlarm(SetTrailerDelayed,silent)</onunload>
<onunload>ClearProperty(HasTrailer,Home)</onunload>
<controls>

Expand Down Expand Up @@ -121,52 +120,39 @@
<font />
<width>1</width>
<height>1</height>
<onfocus condition="!Skin.HasSetting(DisableTrailerWindow)">CancelAlarm(SetTrailerDelayed,silent)</onfocus>
<onfocus condition="!Skin.HasSetting(DisableTrailerWindow)">ClearProperty(HasTrailer,Home)</onfocus>
<onfocus condition="!Skin.HasSetting(DisableTrailerWindow)">AlarmClock(SetTrailerDelayed,SetProperty(HasTrailer,$INFO[ListItem.Trailer],Home),00:01,silent)</onfocus>

<onleft condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">SetFocus(5000)</onleft>
<onleft condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onleft>
<onleft condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">ClearProperty(HasTrailer,Home)</onleft>
<onleft condition="!Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Stop</onleft>
<onright condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">SetFocus(5000)</onright>
<onright condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onright>
<onright condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">ClearProperty(HasTrailer,Home)</onright>
<onright condition="!Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Stop</onright>
<onup condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">SetFocus(5000)</onup>
<onup condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onup>
<onup condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">ClearProperty(HasTrailer,Home)</onup>
<onup condition="!Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Stop</onup>
<ondown condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">SetFocus(5000)</ondown>
<ondown condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</ondown>
<ondown condition="!Skin.HasSetting(DisableTrailerWindow) | !Player.HasVideo">ClearProperty(HasTrailer,Home)</ondown>
<ondown condition="!Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Stop</ondown>
<onback>SetFocus(5000)</onback>
<onback>CancelAlarm(SetTrailerDelayed,silent)</onback>
<onback>ClearProperty(HasTrailer,Home)</onback>
<onback condition="Player.HasVideo">Stop</onback>
<oninfo>SetFocus(5000)</oninfo>
<oninfo>CancelAlarm(SetTrailerDelayed,silent)</oninfo>
<oninfo>ClearProperty(HasTrailer,Home)</oninfo>
<oninfo condition="Player.HasVideo">Stop</oninfo>
<onclick condition="Player.HasVideo">Fullscreen</onclick>
<onclick>CancelAlarm(SetTrailerDelayed,silent)</onclick>
<onclick>ClearProperty(HasTrailer,Home)</onclick>
<onleft condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Fullscreen</onleft>
<onleft condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">StepBack</onleft>
<onleft condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onleft>
<onleft condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">ClearProperty(HasTrailer,Home)</onleft>
<onright condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Fullscreen</onright>
<onright condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">StepForward</onright>
<onright condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onright>
<onright condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">ClearProperty(HasTrailer,Home)</onright>
<onup condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Fullscreen</onup>
<onup condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">BigStepForward</onup>
<onup condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</onup>
<onup condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">ClearProperty(HasTrailer,Home)</onup>
<ondown condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">Fullscreen</ondown>
<ondown condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">BigStepBack</ondown>
<ondown condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">CancelAlarm(SetTrailerDelayed,silent)</ondown>
<ondown condition="Skin.HasSetting(DisableTrailerWindow) + Player.HasVideo">ClearProperty(HasTrailer,Home)</ondown>
</control>

Expand Down
11 changes: 4 additions & 7 deletions 1080i/Dialogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -742,17 +742,14 @@
<include name="Dialog_VideoInfoTrailer">
<control type="group">
<include>Dimension_Info</include>
<include>Animation_Right_Delay</include>
<visible>Control.HasFocus(7001)</visible>
<visible>Player.HasVideo</visible>
<control type="image">
<include>Texture_Shadow_40</include>
<visible>Control.HasFocus(7001)</visible>
<include>Animation_Right_Delay</include>
<texture colordiffuse="black" border="10">common/box.png</texture>
</control>
<control type="videowindow">
<visible>Player.HasVideo</visible>
<visible>Control.HasFocus(7001)</visible>
<visible>!String.IsEmpty(Window(Home).Property(HasTrailer))</visible>
</control>
<control type="videowindow" />
</control>
</include>

Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="skin.arctic.horizon.2" name="Arctic Horizon 2" provider-name="jurialmunkey" version="0.1.9">
<addon id="skin.arctic.horizon.2" name="Arctic Horizon 2" provider-name="jurialmunkey" version="0.1.10">
<requires>
<import addon="xbmc.gui" version="5.15.0" />
<import addon="script.skinshortcuts" version="0.4.0" />
Expand Down

1 comment on commit b5c8d69

@krzysztofwinnik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, that was fast and it solves #69 perfectly.
Thank you again @jurialmunkey.
You can close the issue.

Please sign in to comment.