2016-03-12, 05:50
(2016-03-12, 04:37)djoole Wrote: Done!
Here is the code :
https://www.dropbox.com/s/8q3e4plgj7pbnm...5.xml?dl=0Code:<?xml version="1.0" encoding="UTF-8"?>
<includes>
<!-- Custom List 5 -->
<!-- DO NOT MODIFY FROM HERE -->
<include name="Custom5">
<!-- TO HERE -->
<itemlayout width="170" height="$PARAM[height]">
<control type="group">
<left>15</left>
<top>80</top>
<control type="image">
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF">$INFO[ListItem.Icon]</texture>
</control>
<control type="image">
<top>216</top>
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF" flipy="true">$INFO[ListItem.Icon]</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
</control>
<control type="group">
<right>5</right>
<top>80</top>
<width>60</width>
<height>60</height>
<control type="image">
<right>0</right>
<top>0</top>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$VAR[CategoryColor]">common/corner.png</texture>
</control>
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">material/check.png</texture>
<visible>!ListItem.HasTimer + !ListItem.IsRecording + !ListItem.IsResumable</visible>
</control>
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">osd/pause.png</texture>
<visible>ListItem.IsResumable</visible>
</control>
<!-- Recording image -->
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">osd/record.png</texture>
<visible>ListItem.IsRecording</visible>
</control>
<!-- Timer image -->
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">material/clock.png</texture>
<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
</control>
<visible>[Skin.HasSetting(WatchedFlag) + [Container.Content(movies) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(episodes) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(seasons) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(tvshows) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | ListItem.IsResumable] | ListItem.IsRecording | ListItem.HasTimer</visible>
</control>
<control type="image">
<left>0</left>
<top>46</top>
<width>188</width>
<height>265</height>
<aspectratio>stretch</aspectratio>
<texture>$VAR[MyCase]</texture>
</control>
<control type="image">
<left>70</left>
<top>58</top>
<width>40</width>
<height>20</height>
<aspectratio>scale</aspectratio>
<texture>$VAR[MyFlag]</texture>
</control>
<control type="image">
<left>0</left>
<top>275</top>
<width>188</width>
<height>265</height>
<aspectratio>stretch</aspectratio>
<texture flipy="true">$VAR[MyCase]</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
</itemlayout>
<focusedlayout width="170" height="$PARAM[height]">
<control type="group">
<top>80</top>
<left>15</left>
<control type="image">
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF">$INFO[ListItem.Icon]</texture>
</control>
<control type="image">
<top>216</top>
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF" flipy="true">$INFO[ListItem.Icon]</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
<animation type="Focus">
<effect type="zoom" tween="Quadratic" start="100" end="130" center="auto" easing="Out" time="250"/>
<effect type="slide" tween="Quadratic" end="1,10" easing="Out" time="250"/>
</animation>
<animation type="UnFocus">
<effect type="zoom" tween="Quadratic" start="130" end="100" center="auto" easing="Out" time="125" />
<effect type="slide" tween="Quadratic" start="1,10" end="0,0" easing="Out" time="125"/>
</animation>
</control>
<control type="group">
<right>5</right>
<top>80</top>
<width>60</width>
<height>60</height>
<control type="image">
<right>0</right>
<top>0</top>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$VAR[CategoryColor]">common/corner.png</texture>
</control>
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">material/check.png</texture>
<visible>!ListItem.HasTimer + !ListItem.IsRecording + !ListItem.IsResumable</visible>
</control>
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">osd/pause.png</texture>
<visible>ListItem.IsResumable</visible>
</control>
<!-- Recording image -->
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">osd/record.png</texture>
<visible>ListItem.IsRecording</visible>
</control>
<!-- Timer image -->
<control type="image">
<right>4</right>
<top>4</top>
<width>15</width>
<height>15</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1Txt1F)]">material/clock.png</texture>
<visible>ListItem.HasTimer + !ListItem.IsRecording</visible>
</control>
<visible>[Skin.HasSetting(WatchedFlag) + [Container.Content(movies) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(episodes) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(seasons) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | [Container.Content(tvshows) + stringcompare(ListItem.Overlay,OverlayWatched.png)] | ListItem.IsResumable] | ListItem.IsRecording | ListItem.HasTimer</visible>
<animation type="Focus">
<effect type="slide" tween="Quadratic" end="23,-28" easing="Out" time="250"/>
</animation>
<animation type="UnFocus">
<effect type="slide" tween="Quadratic" start="23,-28" end="0,0" easing="Out" time="125"/>
</animation>
</control>
<control type="group">
<control type="image">
<left>0</left>
<top>46</top>
<width>188</width>
<height>265</height>
<aspectratio>stretch</aspectratio>
<texture>$VAR[MyCase]</texture>
</control>
<control type="image">
<left>70</left>
<top>58</top>
<width>40</width>
<height>20</height>
<aspectratio>scale</aspectratio>
<texture>$VAR[MyFlag]</texture>
</control>
<control type="image">
<left>0</left>
<top>275</top>
<width>188</width>
<height>265</height>
<aspectratio>stretch</aspectratio>
<texture flipy="true">$VAR[MyCase]</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
<animation type="Focus">
<effect type="zoom" tween="Quadratic" start="100" end="130" center="auto" easing="Out" time="250"/>
</animation>
<animation type="UnFocus">
<effect type="zoom" tween="Quadratic" start="130" end="100" center="auto" easing="Out" time="125" />
</animation>
</control>
</focusedlayout>
<!-- DO NOT MODIFY FROM HERE -->
</include>
<variable name="MyCase">
<value condition="SubString(ListItem.VideoCodec,dx50)|SubString(ListItem.VideoCodec,divx)|SubString(ListItem.VideoCodec,xvid)">cases/case_dvd.png</value>
<value condition="SubString(ListItem.Path,bluray)">cases/case_bd.png</value>
<value condition="SubString(ListItem.Path,dvd)">cases/case_dvd.png</value>
<value condition="SubString(ListItem.Path,3d)">cases/case_3d.png</value>
<value condition="SubString(ListItem.FileName,mkv)">cases/case_mkv.png</value>
<value condition="StringCompare(ListItem.DBTYPE,set)">cases/case_sets.png</value>
</variable>
<variable name="MyFlag">
<value condition="SubString(ListItem.VideoCodec,dx50)|SubString(ListItem.VideoCodec,divx)|SubString(ListItem.VideoCodec,xvid)">cases/logo_divx.png</value>
<value condition="SubString(ListItem.VideoCodec,h264)+!SubString(ListItem.Path,bluray)+!SubString(ListItem.Path,3d)">cases/logo_h264.png</value>
<value condition="SubString(ListItem.VideoCodec,h265)+!SubString(ListItem.Path,3d)">cases/logo_h265.png</value>
<value condition="SubString(ListItem.FileName,x264)+!SubString(ListItem.Path,3d)">cases/logo_h264.png</value>
<value condition="SubString(ListItem.FileName,x265)+!SubString(ListItem.Path,3d)">cases/logo_h265.png</value>
<value condition="SubString(ListItem.Path,bluray)">cases/logo_bluray.png</value>
<value condition="SubString(ListItem.Path,dvd)">cases/logo_dvd.png</value>
<value condition="SubString(ListItem.Path,3d)">cases/logo_3d.png</value>
<value condition="StringCompare(ListItem.DBTYPE,set)">cases/logo_sets.png</value>
</variable>
</includes>
<!-- TO HERE -->
I'll make sure the cases PNGs author allows me to share them before doing that
niiiiiiice !!!!
how was the experience ?