Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
fix watched list vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Jan 2, 2015
1 parent 5edb8df commit a563e4d
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 21 deletions.
39 changes: 29 additions & 10 deletions 1080i/Includes_Images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,47 @@
<value condition="Player.Paused">common/bigpause.png</value>
</variable>

<variable name="WatchedImage">
<value condition="ListItem.IsPlaying + Window.IsVisible(MyPVR.xml)">overlay/OverlayPlaying.png</value>
<value condition="ListItem.IsPlaying + ![Control.IsVisible(50) | Control.IsVisible(55) | Control.IsVisible(57) | Control.IsVisible(59)]">overlay/OverlayPlaying.png</value>
<variable name="WatchedImage-List">
<value condition="ListItem.IsPlaying">overlay/OverlayPlaying-List.png</value>

<value condition="stringcompare(ListItem.Overlay,OverlayWatched.png) + Window.IsVisible(MyPVR.xml)">overlay/OverlayWatched.png</value>
<value condition="stringcompare(ListItem.Overlay,OverlayWatched.png) + ![Control.IsVisible(50) | Control.IsVisible(55) | Control.IsVisible(57) | Control.IsVisible(59)]">overlay/OverlayWatched.png</value>
<value condition="stringcompare(ListItem.Overlay,OverlayWatched.png)">overlay/OverlayWatched-List.png</value>

<value condition="stringcompare(ListItem.Overlay,OverlayUnwatched.png) + Window.IsVisible(MyPVR.xml)">noop</value>
<value condition="[stringcompare(ListItem.Overlay,OverlayUnwatched.png) | Container.Content(songs)] + !Control.IsVisible(51) + !Control.IsVisible(52) + !Control.IsVisible(54) + ![Control.IsVisible(50) | Control.IsVisible(55) | Control.IsVisible(57) | Control.IsVisible(59)]">overlay/OverlayEmpty.png</value>
<value condition="[stringcompare(ListItem.Overlay,OverlayUnwatched.png) | Container.Content(songs)] + !Control.IsVisible(51) + !Control.IsVisible(52) + !Control.IsVisible(54)">overlay/OverlayEmpty-List.png</value>
</variable>

<variable name="WatchedImage-Poster">
<value condition="ListItem.IsPlaying">overlay/OverlayPlaying.png</value>
<value condition="stringcompare(ListItem.Overlay,OverlayWatched.png)">overlay/OverlayWatched.png</value>
<value condition="stringcompare(ListItem.Overlay,OverlayUnwatched.png) + Window.IsVisible(MyPVR.xml)">noop</value>
<value condition="[stringcompare(ListItem.Overlay,OverlayUnwatched.png) | Container.Content(songs)] + !Control.IsVisible(51) + !Control.IsVisible(52) + !Control.IsVisible(54)">overlay/OverlayEmpty.png</value>
</variable>

<include name="WatchedImage">
<control type="image">
<posx>10</posx>
<posy>10</posy>
<height>32</height>
<width>32</width>
<colordiffuse>DFffffff</colordiffuse>
<texture background="true" colordiffuse="PanelFG-NF">$VAR[WatchedImage]</texture>
<texture background="true" colordiffuse="PanelFG-NF">$VAR[WatchedImage-Poster]</texture>
<aspectratio aligny="top">keep</aspectratio>
<visible>Container.Content(songs) | ListItem.IsPlaying | IntegerGreaterThan(ListItem.PercentPlayed,99) | !IntegerGreaterThan(ListItem.PercentPlayed,1)</visible>
</control>
<control type="image">
<width>54</width>
<height>54</height>
<aspectratio aligny="top">keep</aspectratio>
<texture colordiffuse="PanelFG" diffuse="common/circle/mask.png">$INFO[ListItem.PercentPlayed,common/circle/,.png]</texture>
<visible>!ListItem.IsPlaying + !IntegerGreaterThan(ListItem.PercentPlayed,99) + IntegerGreaterThan(ListItem.PercentPlayed,1)</visible>
</control>
</include>

<include name="WatchedImageList">
<control type="image">
<posx>10</posx>
<posy>10</posy>
<height>32</height>
<width>32</width>
<colordiffuse>DFffffff</colordiffuse>
<texture background="true" colordiffuse="PanelFG-NF">$VAR[WatchedImage-List]</texture>
<aspectratio aligny="top">keep</aspectratio>
<visible>Container.Content(songs) | ListItem.IsPlaying | IntegerGreaterThan(ListItem.PercentPlayed,99) | !IntegerGreaterThan(ListItem.PercentPlayed,1)</visible>
</control>
Expand Down
6 changes: 3 additions & 3 deletions 1080i/View_50_List.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<control type="group">
<posx>10</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
<control type="label">
<posx>64</posx>
Expand Down Expand Up @@ -121,7 +121,7 @@
<control type="group">
<posx>10</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
<control type="label">
<posx>64</posx>
Expand Down Expand Up @@ -166,7 +166,7 @@
<control type="group">
<posx>10</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
<control type="label">
<posx>64</posx>
Expand Down
8 changes: 4 additions & 4 deletions 1080i/View_55_Banner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<control type="group">
<posx>72r</posx>
<posy>62r</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
<animation effect="fade" start="100" end="50" condition="true">Conditional</animation>
</control>

Expand Down Expand Up @@ -117,7 +117,7 @@
<control type="group">
<posx>320</posx>
<posy>68r</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
<animation effect="fade" start="100" end="50" condition="true">Conditional</animation>
</control>
</control>
Expand Down Expand Up @@ -176,7 +176,7 @@
<control type="group">
<posx>72r</posx>
<posy>62r</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
</control>

Expand Down Expand Up @@ -221,7 +221,7 @@
<control type="group">
<posx>320</posx>
<posy>68r</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
</control>
</focusedlayout>
Expand Down
4 changes: 2 additions & 2 deletions 1080i/View_57_InfoList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<control type="group">
<posx>10</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
<animation effect="fade" start="100" end="50" condition="true">Conditional</animation>
</control>
<control type="label">
Expand Down Expand Up @@ -158,7 +158,7 @@
<control type="group">
<posx>10</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
<control type="label">
<posx>64</posx>
Expand Down
4 changes: 2 additions & 2 deletions 1080i/View_59_MediaInfo3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<control type="group">
<posx>56r</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
</include>
<include name="View_59_MediaInfo3">
Expand Down Expand Up @@ -154,7 +154,7 @@
<control type="group">
<posx>56r</posx>
<posy>8</posy>
<include>WatchedImage</include>
<include>WatchedImageList</include>
</control>
</control>
<control type="group">
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Kaitoast changes
Fix lyrics window
Fix pvr hub back functions
Fix watched indicators vars

[B]1.1.7[/B]
Fully Customisable Hubs for Movies, TvShows and Music (resets previous customisations)
Expand Down

0 comments on commit a563e4d

Please sign in to comment.