PDA

View Full Version : [Fix] Large thumbs don't disappear


Rand Al Thor
2009-05-11, 02:48
In list view, when the high res version of the image fades in it will remain until another large image fades in to replace it. Any movies that do not have a movie.tbn or the "back" icon will inherit the image of the last large image. The fix for this is a bit tricky. Here it goes.

In my videonav.xml

Add:
<include>listfade</include>

to this section:

<control type="group">
<include>FullscreenDimensions</include>
<include>Animation_OpenCloseZoom</include>
<include>Furniture_Time</include>
<include>Conditions_HiddenByInfoPages</include>
<include>Furniture_MediaPanel</include>
<include>Objects_ShowcaseMenuPanel</include>

<include>Viewtype_Wall</include>
<include>Furniture_WallTime</include>
<include>Furniture_WallRSS</include>

In Viewtype_list.xml

Add this right below the first line <includes>:
<include name="listfade">
<control type="image" id="102">
<posx>0</posx>
<posy>0</posy>
<width>0</width>
<height>0</height>
<texture>-</texture>
<visible>Control.HasFocus(50) + [!Container(50).OnNext + !Container(50).OnPrevious]</visible>
<animation effect="fade" start="0" end="100" time="150" >Visible</animation>
</control>
</include>

Replace the first two large image controls with:
<control type="largeimage">
<width>346</width>
<height>511</height>
<texture diffuse="list/list_movieicon_mask.png">$INFO[listitem.path,,movie.tbn]</texture>
<animation effect="fade" start="0" end="100" time="000">VisibleChange</animation>
<visible>Control.IsVisible(102) + Container.Content(movies)</visible>
</control>

<control type="largeimage">
<width>346</width>
<height>511</height>
<texture diffuse="list/list_movieicon_mask.png">$INFO[listitem.path,,folder.jpg]</texture>
<animation effect="fade" start="0" end="100" time="000">VisibleChange</animation>
<visible>Control.IsVisible(102) + Container.Content(tvshows)</visible>
</control>

From what I can tell, the third largeimage can be removed completely.

Cheers,
Rand

Hitcher
2009-05-12, 01:28
Worked a treat, thanks.

krypt2nite
2009-05-14, 02:28
Thanks man worked as you said.

midgetspy
2009-05-14, 02:30
You should somehow submit this to djh for inclusion. Awesome work!

Rand Al Thor
2009-05-14, 19:31
Duncan asked me to look into it a while ago actually. I am sure if he hasn't figured it out himself, he will pop in here and grab the code.

Cheers,
Rand