Project

General

Profile

Bug #69 » IncludesCodecFlagging.xml

xbs, 05/08/2010 11:28 PM

 
<includes>
<include name="VideoCodecFlaggingConditions">
<visible>!Skin.HasSetting(HideMediaFlags)</visible>
<control type="image">
<description>Video rez Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.VideoResolution,flagging/video/,.png]</texture>
</control>
<control type="image">
<description>Common Codec Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.VideoCodec,flagging/video/,.png]</texture>
<!-- Don't show if its one of the 500 divx codecs -->
<visible>![substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]</visible>
</control>
<control type="image">
<description>Divx Codec Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/divx.png</texture>
<visible>[substring(ListItem.VideoCodec,div,left) | stringcompare(ListItem.VideoCodec,dx50)]</visible>
</control>
</include>
<include name="VideoTypeHackFlaggingConditions">
<visible>!Skin.HasSetting(HideMediaFlags)</visible>
<control type="image">
<description>Bluray Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/bluray.png</texture>
<visible>[substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip)] + !Skin.HasSetting(HideFilenameFlagging)</visible>
</control>
<control type="image">
<description>HDDVD Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/hddvd.png</texture>
<visible>substring(ListItem.FilenameAndPath,hddvd) + !Skin.HasSetting(HideFilenameFlagging)</visible>
</control>
<control type="image">
<description>DVD Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/dvd.png</texture>
<visible>[substring(ListItem.FilenameAndPath,dvd) + ![substring(ListItem.FilenameAndPath,hddvd) | substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip)]] + !Skin.HasSetting(HideFilenameFlagging)</visible>
</control>
<control type="image">
<description>TV Types Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/TV.png</texture>
<visible>[substring(ListItem.FilenameAndPath,pdtv) | substring(ListItem.FilenameAndPath,hdtv) | substring(ListItem.FilenameAndPath,dsr)] + !Skin.HasSetting(HideFilenameFlagging)</visible>
</control>
<control type="image">
<description>VHS Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/video/vhs.png</texture>
<visible>substring(ListItem.FilenameAndPath,vhs) + !Skin.HasSetting(HideFilenameFlagging)</visible>
</control>
</include>
<include name="VideoMPAAFlaggingConditions">
<visible>!Skin.HasSetting(HideMediaFlags)</visible>
<control type="image">
<description>Rated G</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/mpaa_general.png</texture>
<visible>substring(listitem.mpaa,Rated G)</visible>
</control>
<control type="image">
<description>Rated PG</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/mpaa_pg.png</texture>
<visible>substring(listitem.mpaa,Rated PG) + !substring(listitem.mpaa,Rated PG-13)</visible>
</control>
<control type="image">
<description>Rated PG-13</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/mpaa_pg13.png</texture>
<visible>substring(listitem.mpaa,Rated PG-13)</visible>
</control>
<control type="image">
<description>Rated R</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/mpaa_restricted.png</texture>
<visible>substring(Listitem.mpaa,Rated R)</visible>
</control>
<control type="image">
<description>Rated NC-17</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/mpaa_nc17.png</texture>
<visible>substring(Listitem.mpaa,Rated NC)</visible>
</control>
</include>
<include name="AudioCodecFlaggingConditions">
<visible>!Skin.HasSetting(HideMediaFlags)</visible>
<control type="image">
<description>Dolby Digital Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/audio/dolbydigital.png</texture>
<visible>[stringcompare(ListItem.AudioCodec,ac3) + stringcompare(ListItem.AudioChannels,6)]</visible>
</control>
<control type="image">
<description>Audio Codec Image</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.AudioCodec,flagging/audio/,.png]</texture>
<!-- Don't show if I want the Dolby Digital Logo -->
<visible>![stringcompare(ListItem.AudioCodec,ac3) + stringcompare(ListItem.AudioChannels,6)]</visible>
</control>
<control type="image">
<description>Audio Channels Image</description>
<width>45</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.AudioChannels,flagging/audio/,.png]</texture>
</control>
</include>
<include name="AspectCodecFlaggingConditions">
<visible>!Skin.HasSetting(HideMediaFlags)</visible>
<control type="image">
<description>Aspectratio Image</description>
<width>60</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[ListItem.VideoAspect,flagging/aspectratio/,.png]</texture>
</control>
</include>
</includes>
(2-2/3)