Skip to content

Commit

Permalink
[Versions] added versions support (#1053)
Browse files Browse the repository at this point in the history
* [Versions] added versions support

* [Update]

* [Update]

* [Update]

* [Update]
  • Loading branch information
beatmasterRS authored Dec 13, 2023
1 parent a565023 commit e1297ae
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 3 deletions.
7 changes: 7 additions & 0 deletions 1080i/Custom_DialogInfoSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
<onclick>Skin.ToggleSetting(hidebutton.video.rating)</onclick>
<visible>Window.IsVisible(DialogVideoInfo.xml)</visible>
</control>
<control type="radiobutton" id="130">
<include>DefContextButtonGradientSelect</include>
<label>40000</label>
<selected>!Skin.HasSetting(hidebutton.video.versions)</selected>
<onclick>Skin.ToggleSetting(hidebutton.video.versions)</onclick>
<visible>Window.IsVisible(DialogVideoInfo.xml)</visible>
</control>
<control type="radiobutton" id="104">
<include>DefContextButtonGradientSelect</include>
<label>31282</label>
Expand Down
49 changes: 49 additions & 0 deletions 1080i/DialogVideoVersion.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">200</defaultcontrol>
<onload condition="Window.IsActive(videoversionselect)">Control.SetFocus(50)</onload>
<controls>
<include>GlobalOverlay</include>
<control type="group">
<include>DefDialogBackground</include>
<control type="label" id="2">
<include>DefDialogHeader</include>
<label/>
</control>
<include content="Kodi_Logo">
<param name="dimensions" value="40"/>
<param name="top" value="40"/>
<param name="left" value="40"/>
</include>

<!-- Lines -->
<control type="image">
<top>95</top>
<left>40</left>
<right>40</right>
<height>1</height>
<bottom>10</bottom>
<colordiffuse>Black12</colordiffuse>
<texture>common/white.png</texture>
</control>
<control type="image">
<posx>340</posx>
<top>115</top>
<height>730</height>
<width>1</width>
<texture colordiffuse="Black12">common/white.png</texture>
</control>
<control type="image">
<posx>741</posx>
<top>115</top>
<height>700</height>
<width>1</width>
<texture colordiffuse="Black12">common/white.png</texture>
<visible>Window.IsActive(videoversion)</visible>
</control>

<include condition="Window.IsActive(videoversion)">DialogVideoVersionLayout</include>
<include condition="Window.IsActive(videoversionselect)">DialogVideoVersionSelectLayout</include>
</control>
</controls>
</window>
23 changes: 23 additions & 0 deletions 1080i/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,16 @@
<visible>[String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,episode)] + Control.IsEnabled(7)</visible>
<visible>!Skin.HasSetting(hidebutton.video.rating)</visible>
</control>
<control type="radiobutton" id="14">
<onfocus>ClearProperty(moviecontent)</onfocus>
<onfocus>ClearProperty(ShowDisc)</onfocus>
<include>buttondimensions</include>
<include content="buttontextures">
<param name="icon" value="buttonsdialogs/seasons.png"/>
</include>
<visible>String.IsEqual(ListItem.DBTYPE,movie)</visible>
<visible>!Skin.HasSetting(hidebutton.video.versions)</visible>
</control>
<control type="radiobutton" id="1236">
<onfocus>ClearProperty(moviecontent)</onfocus>
<onfocus>ClearProperty(ShowDisc)</onfocus>
Expand Down Expand Up @@ -5159,4 +5169,17 @@
<value condition="String.Contains(System.Language,Spanish)">es</value>
<value>en</value>
</variable>

<variable name="VideoVersionPosterVar">
<value condition="ControlGroup(200).HasFocus(201) + !String.IsEmpty(Container(50).ListItem.Art(poster))">$INFO[Container(50).ListItem.Art(poster)]</value>
<value condition="ControlGroup(200).HasFocus(201) + String.IsEmpty(Container(51).ListItem.Art(poster))">$INFO[Container(50).ListItem.Art(thumb)]</value>
<value condition="ControlGroup(200).HasFocus(202) + !String.IsEmpty(Container(51).ListItem.Art(poster))">$INFO[Container(51).ListItem.Art(poster)]</value>
<value condition="ControlGroup(200).HasFocus(202) + String.IsEmpty(Container(51).ListItem.Art(poster))">$INFO[Container(51).ListItem.Art(thumb)]</value>
</variable>

<variable name="VideoVersionFileVar">
<value condition="Control.HasFocus(50)">$INFO[Container(50).ListItem.FileNameAndPath]</value>
<value condition="Control.HasFocus(51)">$INFO[Container(51).ListItem.FileNameAndPath]</value>
<value>$INFO[ListItem.FileNameAndPath]</value>
</variable>
</includes>
6 changes: 6 additions & 0 deletions 1080i/Includes_Animations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
<animation type="Conditional" condition="Control.HasFocus(9015) + ControlGroup(9000).HasFocus()" reversible="false">
<effect type="fade" end="100" start="0" time="400" delay="2300"/>
</animation>
<animation type="Conditional" condition="Control.HasFocus(14) + ControlGroup(9000).HasFocus()" reversible="false">
<effect type="fade" end="100" start="0" time="400" delay="2300"/>
</animation>
<animation type="Conditional" condition="Control.HasFocus(49) + ControlGroup(9000).HasFocus()" reversible="false">
<effect type="fade" end="100" start="0" time="400" delay="2300"/>
</animation>
Expand Down Expand Up @@ -271,6 +274,9 @@
<animation type="Conditional" condition="Control.HasFocus(9077) + !String.IsEmpty(ListItem.FileNameAndPath)" reversible="false">
<effect type="fade" end="0" start="100" time="400" delay="2000"/>
</animation>
<animation type="Conditional" condition="Control.HasFocus(14) + !String.IsEmpty(ListItem.FileNameAndPath)" reversible="false">
<effect type="fade" end="0" start="100" time="400" delay="2000"/>
</animation>
<animation type="Conditional" condition="Control.HasFocus(9078) + !String.IsEmpty(ListItem.FileNameAndPath)" reversible="false">
<effect type="fade" end="0" start="100" time="400" delay="2000"/>
</animation>
Expand Down
Loading

0 comments on commit e1297ae

Please sign in to comment.