Skip to content

Commit

Permalink
fix for trailer_autoscroll
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed May 9, 2024
1 parent 3916672 commit 588d0df
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion 16x9/Custom_1140_Widget_Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<window type="dialog" id="1140">
<defaultcontrol always="true">3200</defaultcontrol>
<controls>
<include content="Default_Settings_Panel_Layout">
<include content="Default_Dialog_Panel_Layout">
<param name="visible" value="!Window.IsVisible(shutdownmenu) + !Window.IsVisible(selectdialog) + !String.Contains(Window(home).Property(SelectDialog),Active) + !Window.IsVisible(virtualkeyboard)" />
<param name="left_list_id" value="3200" />
<param name="right_list_id" value="3201" />
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<expression name="Background_FadeOut_Exceptions_musicplaylist">[$EXP[Background_FadeOut_Exceptions] + Skin.String(Background_Slideshow,Artists)] | Window.Next(music)</expression>
<!-- children -->
<expression name="Window.Previous(addonbrowser)">Window.Previous(addonbrowser) + String.IsEmpty(Window(home).Property(Container_Addons_NonRepo))</expression>
<expression name="Window.Previous(all_settings_windows)">[Window.Previous(skinsettings) + !Window.IsVisible(1140)] | Window.Previous(interfacesettings) | Window.Previous(mediasettings) | Window.Previous(playersettings) | Window.Previous(systemsettings) | Window.Previous(servicesettings) | Window.Previous(gamesettings) | Window.Previous(pvrsettings) | Window.Previous(profiles) | Window.Previous(systeminfo) | Window.Previous(filemanager)</expression>
<expression name="Window.Previous(all_settings_windows)">Window.Previous(skinsettings) | Window.Previous(interfacesettings) | Window.Previous(mediasettings) | Window.Previous(playersettings) | Window.Previous(systemsettings) | Window.Previous(servicesettings) | Window.Previous(gamesettings) | Window.Previous(pvrsettings) | Window.Previous(profiles) | Window.Previous(systeminfo) | Window.Previous(filemanager)</expression>
<expression name="Window.Previous(home)">Window.Previous(home) + Skin.HasSetting(Home_Background_Override_Enabled) + String.IsEmpty(window(home).property(Home_Widget))</expression>
<expression name="Window.Previous(music)">Window.Previous(music) + Container.Content(playlists) + Skin.String(Background_Slideshow,Artists)</expression>
<expression name="Window.Previous(musicplaylisteditor)">Window.Previous(musicplaylisteditor) + Skin.String(Background_Slideshow,Artists)</expression>
Expand Down
4 changes: 0 additions & 4 deletions 16x9/Home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,5 @@
<include content="Trailer_Autoplay_Fade_Animation" condition="Skin.HasSetting(Trailer_Autoplay)" />
</include>
</control>
<control type="label">
<align>right</align>
<label>Trailer Autoplay: $INFO[Window(home).Property(Trailer_Autoplay)][CR]Trailer Autoscroll: $INFO[Window(home).Property(Trailer_Autoscroll)]</label>
</control>
</controls>
</window>
5 changes: 4 additions & 1 deletion 16x9/Templates_Panels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<include name="Default_Settings_Panel_Layout">
<param name="visible" default="!System.HasVisibleModalDialog" />
<param name="window_animation_panel" default="WindowOpenClose_Fade_Delayed_Animation" />
<param name="window_animation_content" default="WindowOpenClose_Fade_Delayed_Long_Animation" />
<param name="window_animation_condition" default="true" />
<param name="panel_edge_top" default="180" />
<param name="panel_edge_bottom" default="180" />
<param name="alt_right_id" default="20" />
Expand All @@ -58,7 +61,7 @@
<param name="top" value="$PARAM[panel_edge_top]" />
<param name="bottom" value="$PARAM[panel_edge_bottom]" />
<include content="Settings_WindowOpenClose_Fade_Delayed_Animation" />
<include content="Visible_Fade_Animation" />
<include content="Visible_Fade_Delayed_Animation" />
</include>
<control type="group">
<include content="Settings_WindowOpenClose_Fade_Delayed_Long_Animation" />
Expand Down
26 changes: 13 additions & 13 deletions 16x9/Timers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<timer>
<name>trailer_autoplay_home</name>
<start reset="true">Window.Is(home) + Skin.HasSetting(Trailer_Autoplay) + !String.IsEmpty(window(home).property(Home_Widget)) + Window.IsVisible(1160) + !Player.HasMedia</start>
<stop>String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo</stop>
<stop>!String.IsEmpty(ListItem.Trailer) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo</stop>
<onstart condition="Control.HasFocus(3201) + !Window.IsVisible(1131) + Skin.HasSetting(Widget1_Trailer_Autoplay) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !String.IsEmpty(ListItem.Trailer)">SetProperty(Trailer_Autoplay,true,home)</onstart>
<onstart condition="Control.HasFocus(3201) + !Window.IsVisible(1131) + Skin.HasSetting(Widget1_Trailer_Autoplay) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !String.IsEmpty(ListItem.Trailer)">PlayMedia($ESCINFO[ListItem.Trailer],1,noresume)</onstart>
<onstart condition="Control.HasFocus(3202) + !Window.IsVisible(1132) + Skin.HasSetting(Widget2_Trailer_Autoplay) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !String.IsEmpty(ListItem.Trailer)">SetProperty(Trailer_Autoplay,true,home)</onstart>
Expand All @@ -71,17 +71,17 @@
</timer>
<timer>
<name>widget_spotlight</name>
<start reset="true">Control.HasFocus(3201) | Control.HasFocus(3202) | Control.HasFocus(3203) | Control.HasFocus(3204) | Control.HasFocus(3205) | Control.HasFocus(3206) | Control.HasFocus(3207) | Control.HasFocus(3208) | Control.HasFocus(3209)</start>
<stop>[[Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),15) + System.IdleTime(15) + String.IsEmpty(Window(home).Property(Trailer_Autoscroll))] | [Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),4) + System.IdleTime(4) + String.IsEqual(Window(home).Property(Trailer_Autoscroll),true)]] + !Window.IsVisible(movieinformation) + !Player.HasVideo</stop>
<onstop condition="Control.HasFocus(3201) + Skin.HasSetting(Widget1_AutoScroll)">Control.Move(3201,1)</onstop>
<onstop condition="Control.HasFocus(3202) + Skin.HasSetting(Widget2_AutoScroll)">Control.Move(3202,1)</onstop>
<onstop condition="Control.HasFocus(3203) + Skin.HasSetting(Widget3_AutoScroll)">Control.Move(3203,1)</onstop>
<onstop condition="Control.HasFocus(3204) + Skin.HasSetting(Widget4_AutoScroll)">Control.Move(3204,1)</onstop>
<onstop condition="Control.HasFocus(3205) + Skin.HasSetting(Widget5_AutoScroll)">Control.Move(3205,1)</onstop>
<onstop condition="Control.HasFocus(3205) + Skin.HasSetting(Widget5_AutoScroll) + String.IsEqual(Window(home).Property(Trailer_Autoplay),true)">ClearProperty(Trailer_Autoplay,home)</onstop>
<onstop condition="Control.HasFocus(3206) + Skin.HasSetting(Widget6_AutoScroll)">Control.Move(3206,1)</onstop>
<onstop condition="Control.HasFocus(3207) + Skin.HasSetting(Widget7_AutoScroll)">Control.Move(3207,1)</onstop>
<onstop condition="Control.HasFocus(3208) + Skin.HasSetting(Widget8_AutoScroll)">Control.Move(3208,1)</onstop>
<onstop condition="Control.HasFocus(3209) + Skin.HasSetting(Widget9_AutoScroll)">Control.Move(3209,1)</onstop>
<start reset="true">[Skin.HasSetting(Widget1_AutoScroll) + Control.HasFocus(3201)] | [Skin.HasSetting(Widget2_AutoScroll) + Control.HasFocus(3202)] | [Skin.HasSetting(Widget3_AutoScroll) + Control.HasFocus(3203)] | [Skin.HasSetting(Widget4_AutoScroll) + Control.HasFocus(3204)] | [Skin.HasSetting(Widget5_AutoScroll) + Control.HasFocus(3205)] | [Skin.HasSetting(Widget6_AutoScroll) + Control.HasFocus(3206)] | [Skin.HasSetting(Widget7_AutoScroll) + Control.HasFocus(3207)] | [Skin.HasSetting(Widget8_AutoScroll) + Control.HasFocus(3208)] | [Skin.HasSetting(Widget9_AutoScroll) + Control.HasFocus(3209)]</start>
<reset>Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog)</reset>
<stop>[[!Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),2) + System.IdleTime(2) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Window.IsVisible(movieinformation) + !Player.HasVideo + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog)</stop>
<onstop condition="Skin.HasSetting(Widget1_Trailer_Autoplay) + String.IsEqual(Window(home).Property(Trailer_Autoplay),true)">ClearProperty(Trailer_Autoplay,home)</onstop>
<onstop condition="Control.HasFocus(3201)">Control.Move(3201,1)</onstop>
<onstop condition="Control.HasFocus(3202)">Control.Move(3202,1)</onstop>
<onstop condition="Control.HasFocus(3203)">Control.Move(3203,1)</onstop>
<onstop condition="Control.HasFocus(3204)">Control.Move(3204,1)</onstop>
<onstop condition="Control.HasFocus(3205)">Control.Move(3205,1)</onstop>
<onstop condition="Control.HasFocus(3206)">Control.Move(3206,1)</onstop>
<onstop condition="Control.HasFocus(3207)">Control.Move(3207,1)</onstop>
<onstop condition="Control.HasFocus(3208)">Control.Move(3208,1)</onstop>
</timer>
</timers>
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisc

### Changelog
---
**1.3.6**
- Fix for preventing widgets from auto-playing trailers when auto-scroll also enabled

**1.3.5**
- Added visual listitem indicator for Collections (sets) and items with VideoVersions
- Added tvchannels window
Expand Down
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="skin.copacetic" version="1.3.5" name="Copacetic" provider-name="realcopacetic">
<addon id="skin.copacetic" version="1.3.6" name="Copacetic" provider-name="realcopacetic">
<requires>
<import addon="xbmc.gui" version="5.17.0" />
<import addon="script.copacetic.helper" version="1.0.12" />
<import addon="resource.fonts.copacetic" version="1.0.5" />
<import addon="script.skinshortcuts" version="1.1.5" />
<import addon="service.upnext" version="1.1.9+MATRIX.1" />
</requires>
<extension point="xbmc.gui.skin" defaultthemename="Textures.xbt" effectslowdown="0.7" debugging="true">
<extension point="xbmc.gui.skin" defaultthemename="Textures.xbt" effectslowdown="0.7" debugging="false">
<res width="1920" height="1080" aspect="16:9" default="true" folder="16x9" />
</extension>
<extension point="xbmc.addon.metadata">
Expand Down

0 comments on commit 588d0df

Please sign in to comment.