Permalink
Browse files

Changed: [Confluence] streamlined the code for the new ListItem.Art s…

…tuff
  • Loading branch information...
1 parent 5fc16bd commit 6bd25d4caa12e4e0930191c60e4a1c844605ad68 @JezzX JezzX committed Oct 14, 2012
@@ -343,19 +343,7 @@
<aspectratio>stretch</aspectratio>
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>4</bordersize>
- <texture background="true">$INFO[ListItem.Icon]</texture>
- <visible>IsEmpty(ListItem.Art(poster))</visible>
- </control>
- <control type="image">
- <posx>0</posx>
- <posy>0</posy>
- <width>270</width>
- <height>380</height>
- <aspectratio>stretch</aspectratio>
- <bordertexture border="5">button-nofocus.png</bordertexture>
- <bordersize>4</bordersize>
- <texture background="true">$INFO[ListItem.Art(poster)]</texture>
- <visible>!IsEmpty(ListItem.Art(poster))</visible>
+ <texture background="true">$VAR[PosterThumb]</texture>
</control>
<control type="image">
<posx>4</posx>
@@ -432,18 +432,7 @@
<height>105</height>
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>5</bordersize>
- <texture background="true">$INFO[Listitem.Icon]</texture>
- <visible>IsEmpty(ListItem.Art(banner))</visible>
- </control>
- <control type="image">
- <posx>1</posx>
- <posy>0</posy>
- <width>538</width>
- <height>105</height>
- <bordertexture border="5">button-nofocus.png</bordertexture>
- <bordersize>5</bordersize>
- <texture background="true">$INFO[Listitem.Art(banner)]</texture>
- <visible>!IsEmpty(ListItem.Art(banner))</visible>
+ <texture background="true">$VAR[BannerThumb]</texture>
</control>
<control type="image">
<posx>500</posx>
@@ -462,18 +451,7 @@
<height>105</height>
<bordertexture border="5">folder-focus.png</bordertexture>
<bordersize>5</bordersize>
- <texture background="true">$INFO[Listitem.Icon]</texture>
- <visible>IsEmpty(ListItem.Art(banner))</visible>
- </control>
- <control type="image">
- <posx>1</posx>
- <posy>0</posy>
- <width>538</width>
- <height>105</height>
- <bordertexture border="5">folder-focus.png</bordertexture>
- <bordersize>5</bordersize>
- <texture background="true">$INFO[Listitem.Art(banner)]</texture>
- <visible>!IsEmpty(ListItem.Art(banner))</visible>
+ <texture background="true">$VAR[BannerThumb]</texture>
</control>
<control type="image">
<posx>500</posx>
@@ -36,19 +36,7 @@
<aspectratio>stretch</aspectratio>
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>4</bordersize>
- <texture background="true">$INFO[ListItem.Icon]</texture>
- <visible>IsEmpty(ListItem.Art(poster))</visible>
- </control>
- <control type="image">
- <posx>2</posx>
- <posy>40</posy>
- <width>214</width>
- <height>310</height>
- <aspectratio>stretch</aspectratio>
- <bordertexture border="5">button-nofocus.png</bordertexture>
- <bordersize>4</bordersize>
- <texture background="true">$INFO[ListItem.Art(poster)]</texture>
- <visible>!IsEmpty(ListItem.Art(poster))</visible>
+ <texture background="true">$VAR[PosterThumb]</texture>
</control>
</itemlayout>
<focusedlayout height="310" width="218">
@@ -60,23 +48,9 @@
<aspectratio>stretch</aspectratio>
<bordertexture border="8">ThumbBorder.png</bordertexture>
<bordersize>8</bordersize>
- <texture background="true">$INFO[ListItem.Icon]</texture>
+ <texture background="true">$VAR[PosterThumb]</texture>
<animation reversible="false" effect="zoom" start="-2,36,222,318" end="-28,0,284,390" time="200">focus</animation>
<animation reversible="false" effect="zoom" end="-2,36,222,318" start="-28,0,284,390" time="200">unfocus</animation>
- <visible>IsEmpty(ListItem.Art(poster))</visible>
- </control>
- <control type="image">
- <posx>-2</posx>
- <posy>36</posy>
- <width>222</width>
- <height>318</height>
- <aspectratio>stretch</aspectratio>
- <bordertexture border="8">ThumbBorder.png</bordertexture>
- <bordersize>8</bordersize>
- <texture background="true">$INFO[ListItem.Art(poster)]</texture>
- <animation reversible="false" effect="zoom" start="-2,36,222,318" end="-28,0,284,390" time="200">focus</animation>
- <animation reversible="false" effect="zoom" end="-2,36,222,318" start="-28,0,284,390" time="200">unfocus</animation>
- <visible>!IsEmpty(ListItem.Art(poster))</visible>
</control>
<control type="image">
<posx>6</posx>
@@ -360,20 +334,7 @@
<bordertexture border="5">button-nofocus.png</bordertexture>
<bordersize>4</bordersize>
<fadetime>200</fadetime>
- <texture background="true">$INFO[ListItem.Icon]</texture>
- <visible>IsEmpty(ListItem.Art(poster))</visible>
- </control>
- <control type="image">
- <posx>2</posx>
- <posy>20</posy>
- <width>120</width>
- <height>160</height>
- <aspectratio>stretch</aspectratio>
- <bordertexture border="5">button-nofocus.png</bordertexture>
- <bordersize>4</bordersize>
- <fadetime>200</fadetime>
- <texture background="true">$INFO[ListItem.art(poster)]</texture>
- <visible>!IsEmpty(ListItem.Art(poster))</visible>
+ <texture background="true">$VAR[PosterThumb]</texture>
</control>
<control type="image">
<posx>6</posx>
@@ -406,24 +367,9 @@
<bordertexture border="8">ThumbBorder.png</bordertexture>
<bordersize>8</bordersize>
<fadetime>200</fadetime>
- <texture background="true">$INFO[ListItem.Icon]</texture>
- <animation reversible="false" effect="zoom" start="-2,16,128,168" end="-12,-10,148,198" time="200">focus</animation>
- <animation reversible="false" effect="zoom" end="-2,16,128,168" start="-12,-10,148,198" time="200">unfocus</animation>
- <visible>IsEmpty(ListItem.Art(poster))</visible>
- </control>
- <control type="image">
- <posx>-2</posx>
- <posy>16</posy>
- <width>128</width>
- <height>168</height>
- <aspectratio>stretch</aspectratio>
- <bordertexture border="8">ThumbBorder.png</bordertexture>
- <bordersize>8</bordersize>
- <fadetime>200</fadetime>
- <texture background="true">$INFO[ListItem.Art(poster)]</texture>
+ <texture background="true">$VAR[PosterThumb]</texture>
<animation reversible="false" effect="zoom" start="-2,16,128,168" end="-12,-10,148,198" time="200">focus</animation>
<animation reversible="false" effect="zoom" end="-2,16,128,168" start="-12,-10,148,198" time="200">unfocus</animation>
- <visible>!IsEmpty(ListItem.Art(poster))</visible>
</control>
<control type="image">
<posx>90</posx>
@@ -977,22 +923,9 @@
<height>110</height>
<aspectratio>keep</aspectratio>
<fadetime>IconCrossfadeTime</fadetime>
- <texture background="true">$INFO[ListItem.Icon]</texture>
- <bordertexture border="8">ThumbShadow.png</bordertexture>
- <bordersize>8</bordersize>
- <visible>IsEmpty(ListItem.Art(banner))</visible>
- </control>
- <control type="image">
- <posx>0</posx>
- <posy>0</posy>
- <width>530</width>
- <height>110</height>
- <aspectratio>keep</aspectratio>
- <fadetime>IconCrossfadeTime</fadetime>
- <texture background="true">$INFO[ListItem.Art(banner)]</texture>
+ <texture background="true">$VAR[BannerThumb]</texture>
<bordertexture border="8">ThumbShadow.png</bordertexture>
<bordersize>8</bordersize>
- <visible>!IsEmpty(ListItem.Art(banner))</visible>
</control>
<control type="label">
<description>Episodes txt</description>
@@ -20,6 +20,15 @@
<constant name="FanartCrossfadeTime">500</constant>
<constant name="IconCrossfadeTime">400</constant>
+ <variable name="BannerThumb">
+ <value condition="!IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Art(banner)]</value>
+ <value condition="IsEmpty(ListItem.Art(banner))">$INFO[ListItem.Art(thumb)]</value>
+ </variable>
+ <variable name="PosterThumb">
+ <value condition="!IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Art(poster)]</value>
+ <value condition="IsEmpty(ListItem.Art(poster))">$INFO[ListItem.Art(thumb)]</value>
jmarshallnz
jmarshallnz Oct 14, 2012 Member

I think you want ListItem.Icon instead of ListItem.Art(thumb), for those files that have no art at all.

JezzX
JezzX Oct 14, 2012 Member

indeed I got a little over excited and it worked fine for me who has updated everything :)

+ </variable>
+
<include name="BehindDialogFadeOut">
<control type="image">
<posx>0</posx>

0 comments on commit 6bd25d4

Please sign in to comment.