Skip to content

Commit

Permalink
container transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Mar 15, 2024
1 parent c837ddc commit 7ff8f1d
Show file tree
Hide file tree
Showing 24 changed files with 104 additions and 60 deletions.
8 changes: 4 additions & 4 deletions 16x9/Animations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@
<animation effect="fade" start="100" end="0" delay="360" time="30" reversible="false" tween="sine" easing="inout" condition="Control.HasFocus(3100)">Conditional</animation>
</include>
<include name="Settings_WindowOpenClose_Fade_Delayed_Animation">
<animation effect="fade" start="0" end="100" time="360" delay="360" tween="sine" easing="inout" reversible="true" condition="Window.Previous(settings)">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="180" tween="sine" easing="inout" reversible="true" condition="!Window.Next(home) + !Window.Next(addonbrowser) + !$EXP[Window.Next(all_settings_windows)]">WindowClose</animation>
<animation effect="fade" start="0" end="100" time="360" delay="360" tween="sine" easing="inout" reversible="true" condition="!$EXP[Window.Previous(all_settings_windows)]">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="180" tween="sine" easing="inout" reversible="true" condition="!$EXP[Window.Next(all_settings_windows)]">WindowClose</animation>
</include>
<include name="Settings_WindowOpenClose_Fade_Delayed_Long_Animation">
<animation effect="fade" start="0" end="100" time="360" delay="1260" tween="sine" easing="inout" reversible="true" condition="Window.Previous(settings)">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="180" tween="sine" easing="inout" reversible="true" condition="!Window.Next(home) + !Window.Next(addonbrowser) + !$EXP[Window.Next(all_settings_windows)]">WindowClose</animation>
<animation effect="fade" start="0" end="100" time="360" delay="1260" tween="sine" easing="inout" reversible="true" condition="!$EXP[Window.Previous(all_settings_windows)]">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="180" tween="sine" easing="inout" reversible="true" condition="!$EXP[Window.Next(all_settings_windows)]">WindowClose</animation>
</include>
<include name="Trailer_Autoplay_Fade_Animation">
<animation effect="fade" start="100" end="0" time="360" delay="1080" tween="sine" easing="inout" reversible="false" condition="$EXP[Trailer_Autoplay_IsVisible]">Conditional</animation>
Expand Down
4 changes: 2 additions & 2 deletions 16x9/Components_Buttons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@
<param name="width" default="120" />
<definition>
<include content="Check_unfocused_template_$PARAM[width]">
<param name="visible" value="!String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled)" />
<param name="visible" value="!String.Contains(Container.FolderPath,/user/) + [ListItem.Property(Addon.IsInstalled) | String.Contains(ListItem.Label,Copacetic)]" />
<param name="color" value="$PARAM[color]" />
<param name="rotated" value="true" />
<nested />
Expand All @@ -1259,7 +1259,7 @@
<param name="width" default="120" />
<definition>
<include content="Check_focused_template_$PARAM[width]">
<param name="visible" value="!String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled)" />
<param name="visible" value="!String.Contains(Container.FolderPath,/user/) + [ListItem.Property(Addon.IsInstalled) | String.Contains(ListItem.Label,Copacetic)]" />
<param name="color" value="$PARAM[color]" />
<param name="rotated" value="true" />
<nested />
Expand Down
1 change: 1 addition & 0 deletions 16x9/Components_Infoscreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
<param name="dropshadow_condition" />
<definition>
<control type="group">
<include content="Dialog_Over_Artwork_Fadediffuse_Animation" />
<top>$PARAM[top]</top>
<height>$PARAM[height]</height>
<width>$PARAM[width]</width>
Expand Down
4 changes: 2 additions & 2 deletions 16x9/Components_Viewtype_505_Grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<param name="backing_visible" value="false" />
<param name="color" value="$VAR[Light_Color]" />
<param name="icon" value="Special_Addonbrowser_focused" />
<param name="visible" value="[!String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled)] | [$EXP[Container_Addons_NonRepo] + String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled) + !ListItem.Property(Addon.IsEnabled)]" />
<param name="visible" value="[!String.Contains(Container.FolderPath,/user/) + [ListItem.Property(Addon.IsInstalled) | String.Contains(ListItem.Label,Copacetic)]] | [$EXP[Container_Addons_NonRepo] + String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled) + !ListItem.Property(Addon.IsEnabled)]" />
</include>
</include>
</include>
Expand Down Expand Up @@ -218,7 +218,7 @@
<include content="Grid_Icon" condition="Skin.HasSetting(GridView_AltWatchedStatus_Enabled) + Window.Is(videos)" />
<include content="Grid_Icon" condition="Skin.HasSetting(GridView_AltWatchedStatus_Enabled) + [Window.Is(addonbrowser) | Window.Is(programs)]">
<param name="icon" value="Special_Addonbrowser_focused" />
<param name="visible" value="[!String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled)] | [$EXP[Container_Addons_NonRepo] + String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled) + !ListItem.Property(Addon.IsEnabled)]" />
<param name="visible" value="[!String.Contains(Container.FolderPath,/user/) + [ListItem.Property(Addon.IsInstalled) | String.Contains(ListItem.Label,Copacetic)]] | [$EXP[Container_Addons_NonRepo] + String.Contains(Container.FolderPath,/user/) + ListItem.Property(Addon.IsInstalled) + !ListItem.Property(Addon.IsEnabled)]" />
</include>
</control>
</definition>
Expand Down
3 changes: 2 additions & 1 deletion 16x9/Content_Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@
<control type="radiobutton" id="1409">
<description>Enable Up Next widget during playback</description>
<label>$LOCALIZE[31490]</label>
<onclick>RunScript(script.copacetic.helper,action=toggle_addon,id=service.upnext)</onclick>
<onclick condition="System.HasAddon(service.upnext)">RunScript(script.copacetic.helper,action=toggle_addon,id=service.upnext)</onclick>
<onclick condition="!System.HasAddon(service.upnext)">InstallAddon(service.upnext)</onclick>
<selected>System.AddonIsEnabled(service.upnext)</selected>
<visible>ControlGroup(9).HasFocus(14)</visible>
</control>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1110_Container_Level_0.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1110">
<visible>![[Container.Content() + String.IsEmpty(Container.FolderName)] | [Container.Content() + String.IsEqual(Container.FolderName,$LOCALIZE[10040])] | [Container.Content() + String.Contains(Container.PluginName,advanced.emulator.launcher) + String.Contains(Container.FolderPath,com)] | [String.Contains(Container.PluginName,themoviedb.helper) + !String.Contains(Container.FolderPath,?info)]]</visible>
<visible>!$EXP[all_Level_0]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1111_Container_Level_1.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1111">
<visible>![[!Container.Content() + String.IsEmpty(Container.FolderName)] | [!Container.Content() + String.IsEqual(Container.FolderName,$LOCALIZE[10040])] | [!Container.Content() + String.Contains(Container.PluginName,advanced.emulator.launcher) + String.Contains(Container.FolderPath,com)] | [String.Contains(Container.PluginName,themoviedb.helper) + String.Contains(Container.FolderPath,?info=dir)]]</visible>
<visible>!$EXP[all_Level_1]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1112_Container_Level_2.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1112">
<visible>!$EXP[Containers_Background] + !Container.Content(actors) + ![[Container.Content(images) | Container.Content(files)] + Container.HasFolders + Container.HasFiles] + ![String.Contains(Container.PluginName,themoviedb.helper) + String.Contains(Container.FolderPath,?info) + !String.Contains(Container.FolderPath,?info=dir)]</visible>
<visible>!$EXP[all_Level_2]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1113_Container_Level_3.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1113">
<visible>![Container.Content(movies) + !String.IsEqual(Container.FolderName,ListItem.Set)] + !Container.Content(sets) + !Container.Content(tvshows) + !Container.Content(artists) + !Container.Content(addons) + ![[Container.Content(images) | Container.Content(files)] + Container.HasFolders + !Container.HasFiles] + !$EXP[Container_Programs_IsFolders]</visible>
<visible>!$EXP[all_Level_3]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1114_Container_Level_4.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1114">
<visible>![Container.Content(movies) + String.IsEqual(Container.FolderName,ListItem.Set)] + !Container.Content(seasons) + ![String.IsEqual(Container.Content,episodes) + !String.Contains(Container.FolderPath,videodb://) + ListItem.IsFolder] + !Container.Content(albums) + ![[Container.Content(images) | Container.Content(files)] + Container.HasFiles + !Container.HasFolders] + !$EXP[Container_Programs_IsFiles]</visible>
<visible>!$EXP[all_Level_4]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1115_Container_Level_5.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1115">
<visible>![Container.Content(episodes) + !ListItem.IsFolder] + !Container.Content(songs) + ![[Container.Content(images) | Container.Content(files)] + !Container.HasFiles + !Container.HasFolders]</visible>
<visible>!$EXP[all_Level_5]</visible>
<animation effect="fade" start="100" end="0" time="360">WindowClose</animation>
<zorder>0</zorder>
<controls/>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/Custom_1199_Test_Label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<width>200</width>
<height>200</height>
<right>0</right>
<texture colordiffuse="black">views/white_100.png</texture>
<texture colordiffuse="pink">views/white_100.png</texture>
</control>
<control type="label">
<align>right</align>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/DialogSelect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<control type="button" id="4010">
<visible allowhiddenfocus="true">false</visible>
<onfocus condition="Control.IsVisible(3)">SetFocus(3)</onfocus>
<onfocus condition="Control.IsVisible(6)">SetFocus(6)</onfocus>
<onfocus condition="!Control.IsVisible(3) + Control.IsVisible(6)">SetFocus(6)</onfocus>
</control>
</controls>
</window>
Loading

0 comments on commit 7ff8f1d

Please sign in to comment.