2016-03-11, 18:25
(2016-03-11, 18:08)reaven Wrote:Code:$INFO[ListItem.VideoCodec,mediacase/,.png]
Obviously ... I don't know why but I'm still passing through this kind of typo
Nevermind, so you know you can use VAR aswell ...
(2016-03-11, 18:08)reaven Wrote:Code:$INFO[ListItem.VideoCodec,mediacase/,.png]
(2016-03-11, 18:08)reaven Wrote: as Jayz2K says and believe me the less you change of the original code the best, stick to the custom list and create your variables there, theres no need to modify variables.xml all this will be erase once you update the theme sooo. is less files to rememebr you have to modify again or replace
<control type="image"/>
<visible>SubString(Container().ListItem.filename,bluray) |
SubString(Container().ListItem.filename,blu-ray) |
SubString(Container().ListItem.filename,bdrip) |
SubString(Container().ListItem.filename,brrip) </visible>
<texture>bluray.png</texture>
<?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">
<left>-6</left>
<top>-5</top>
<width>162</width>
<height>222</height>
<aspectratio>scale</aspectratio>
<texture>common/white.png</texture>
</control>
<control type="image">
<left>0</left>
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF">$INFO[ListItem.Icon]</texture>
</control>
<control type="image">
<left>-6</left>
<top>220</top>
<width>162</width>
<height>222</height>
<aspectratio>scale</aspectratio>
<texture flipy="true">common/white.png</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
<control type="image">
<top>220</top>
<left>0</left>
<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>1</right>
<top>73</top>
<width>100</width>
<height>100</height>
<control type="image">
<right>-2</right>
<top>2</top>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$VAR[CategoryColor]">common/corner.png</texture>
</control>
<control type="image">
<right>5</right>
<top>5</top>
<width>25</width>
<height>25</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>6</right>
<top>6</top>
<width>25</width>
<height>25</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>5</right>
<top>5</top>
<width>25</width>
<height>25</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>5</right>
<top>5</top>
<width>25</width>
<height>25</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>
</itemlayout>
<focusedlayout width="170" height="$PARAM[height]">
<control type="group">
<top>80</top>
<left>15</left>
<control type="image">
<left>-6</left>
<top>-5</top>
<width>162</width>
<height>222</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1ItemF)]">common/white.png</texture>
</control>
<control type="image">
<left>0</left>
<width>150</width>
<height>210</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="FFFFFFFF">$INFO[ListItem.Icon]</texture>
</control>
<control type="image">
<left>-6</left>
<top>215</top>
<width>162</width>
<height>222</height>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$INFO[Skin.String(Color.B1ItemF)]">common/white.png</texture>
<animation effect="fade" start="25" end="25" time="300" condition="true">Conditional</animation>
</control>
<control type="image">
<top>220</top>
<left>0</left>
<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"/>
</animation>
<animation type="UnFocus">
<effect type="zoom" tween="Quadratic" start="130" end="100" center="auto" easing="Out" time="125" />
</animation>
</control>
<control type="group">
<right>1</right>
<top>73</top>
<width>100</width>
<height>100</height>
<control type="image">
<right>-2</right>
<top>2</top>
<aspectratio>scale</aspectratio>
<texture colordiffuse="$VAR[CategoryColor]">common/corner.png</texture>
</control>
<control type="image">
<right>5</right>
<top>5</top>
<width>25</width>
<height>25</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>6</right>
<top>6</top>
<width>25</width>
<height>25</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>5</right>
<top>5</top>
<width>25</width>
<height>25</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>5</right>
<top>5</top>
<width>25</width>
<height>25</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="16,-36" easing="Out" time="250"/>
</animation>
<animation type="UnFocus">
<effect type="slide" tween="Quadratic" start="16,-36" end="0,0" easing="Out" time="125"/>
</animation>
</control>
</focusedlayout>
<!-- DO NOT MODIFY FROM HERE -->
</include>
</includes>
<!-- TO HERE -->
<?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.Path,dvd)|SubString(ListItem.VideoCodec,dx50)|SubString(ListItem.VideoCodec,divx)|SubString(ListItem.VideoCodec,xvid)">cases/case_dvd.png</value>
<value condition="SubString(ListItem.FileName,mkv)+!SubString(ListItem.Path,bluray)+!SubString(ListItem.FileName,bluray)+!SubString(ListItem.Path,3d)">cases/case_mkv.png</value>
<value condition="SubString(ListItem.Path,bluray)|SubString(ListItem.FileName,bluray)">cases/case_bd.png</value>
<value condition="SubString(ListItem.Path,3d)">cases/case_3d.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.FileName,x264)|SubString(ListItem.VideoCodec,h264)+!SubString(ListItem.Path,bluray)+!SubString(ListItem.FileName,bluray)+!SubString(ListItem.Path,3d)">cases/logo_h264.png</value>
<value condition="SubString(ListItem.FileName,x265)|SubString(ListItem.VideoCodec,h265)+!SubString(ListItem.Path,bluray)+!SubString(ListItem.FileName,bluray)+!SubString(ListItem.Path,3d)">cases/logo_h265.png</value>
<value condition="SubString(ListItem.Path,bluray)|SubString(ListItem.FileName,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 -->