Solved Strange Behaviour
#1
Some of the views for my new skin seem to act slightly strange when coming back to the library from another window (e.g. settings, or after screensaver)

Before screensaver...

Image


After screensaver...

Image


So it seems that on return it focuses on a different item yet keeps (roughly) the same posters in view.

My code for the panel container looks like...

Code:
        <control type="group">
            <include>ViewAnimation</include>
            <include>HiddenByMenu</include>
        
            <control type="panel" id="54">
                <left>115</left>
                <top>235</top>
                <width>1225</width>
                <height>710</height>
                <onleft>54</onleft>
                <onright>54</onright>
                <onup>9000</onup>
                <ondown>60</ondown>
                <onback>300</onback>
                <viewtype label="Info Panel">list</viewtype>
                <orientation>horizontal</orientation>
                <preloaditems>2</preloaditems>
                <pagecontrol>60</pagecontrol>
                <scrolltime tween="quadratic" easing="out">450</scrolltime>
                <visible>Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Episodes)</visible>

                <itemlayout height="353" width="245" condition="Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons)">

                    <control type="image"> <!--thumb bg-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>scale</aspectratio>
                        <texture colordiffuse="TertiaryM">backgrounds/white.png</texture>
                        <visible>IsEmpty(ListItem.Art(poster)) + IsEmpty(ListItem.Thumb)</visible>
                    </control>

                    <control type="image"> <!--fallback image-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">defaultvideo.png</texture>
                        <visible>[IsEmpty(ListItem.Art(poster)) + IsEmpty(ListItem.Thumb)] + !Container.Content(Actors)</visible>
                    </control>

                    <control type="image"> <!--thumb-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>scale</aspectratio>
                        <texture background="true">$VAR[PosterThumb]</texture>
                    </control>

                    <control type="image"> <!--watched/resumable background-->
                        <left>0</left>
                        <top>0</top>
                        <width>50</width>
                        <height>50</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                        <visible>StringCompare(ListItem.Overlay,OverlayWatched.png) | ListItem.IsResumable</visible>
                    </control>
                
                    <control type="image"> <!--watched icon-->
                        <left>-8</left>
                        <top>-8</top>
                        <width>65</width>
                        <height>65</height>
                        <texture>$VAR[Overlay]</texture>
                        <visible>!ListItem.IsResumable</visible>
                    </control>
                
                    <control type="image"> <!--resumable icon-->
                        <left>-8</left>
                        <top>-8</top>
                        <width>65</width>
                        <height>65</height>
                        <texture>overlay/true.png</texture>
                        <visible>ListItem.IsResumable</visible>
                    </control>

                </itemlayout>

                <focusedlayout height="353" width="245" condition="Container.Content(Movies) | Container.Content(TVShows) | Container.Content(Seasons) | Container.Content(Actors)">
                    
                    <control type="image"> <!--thumb bg-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>scale</aspectratio>
                        <texture colordiffuse="TertiaryM">backgrounds/white.png</texture>
                        <visible>IsEmpty(ListItem.Art(poster)) + IsEmpty(ListItem.Thumb)</visible>
                    </control>

                    <control type="image"> <!--fallback image-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>keep</aspectratio>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">defaultvideo.png</texture>
                        <visible>[IsEmpty(ListItem.Art(poster)) + IsEmpty(ListItem.Thumb)] + !Container.Content(Actors)</visible>
                    </control>

                    <control type="image"> <!--thumb-->
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>338</height>
                        <aspectratio>scale</aspectratio>
                        <texture background="true">$VAR[PosterThumb]</texture>
                    </control>

                    <control type="image"> <!--watched/resumable background-->
                        <left>0</left>
                        <top>0</top>
                        <width>50</width>
                        <height>50</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                        <visible>StringCompare(ListItem.Overlay,OverlayWatched.png) | ListItem.IsResumable</visible>
                    </control>
                
                    <control type="image"> <!--watched icon-->
                        <left>-8</left>
                        <top>-8</top>
                        <width>65</width>
                        <height>65</height>
                        <texture>$VAR[Overlay]</texture>
                        <visible>!ListItem.IsResumable</visible>
                    </control>
                
                    <control type="image"> <!--resumable icon-->
                        <left>-8</left>
                        <top>-8</top>
                        <width>65</width>
                        <height>65</height>
                        <texture>overlay/true.png</texture>
                        <visible>ListItem.IsResumable</visible>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>7</width>
                        <height>338</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                    </control>

                    <control type="image">
                        <right>15</right>
                        <top>0</top>
                        <width>7</width>
                        <height>338</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <top>0</top>
                        <width>230</width>
                        <height>7</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                    </control>

                    <control type="image">
                        <left>0</left>
                        <bottom>15</bottom>
                        <width>230</width>
                        <height>7</height>
                        <texture colordiffuse="$INFO[Skin.String(MainColour)]">backgrounds/white.png</texture>
                    </control>

                </focusedlayout>
                
            </control>

Anybody got any idea what's going on here?
 
Reply
#2
How does your MyVideoNav.xml look?
Image
Reply
#3
Pretty standard as far as I can tell...

http://pastebin.com/8GCW2pBA

Certainly can't see anything in there that would cause issues, unless I'm being blind/stupid!

It doesn't do it on all the views though, that's what's confusing me the most :/

Edit: Okay, I've just noticed that sometimes, if left in the unaligned state, it will randomly change the view back to 'list' (id 50), although this doesn't often happen.
 
Reply
#4
Maybe a problem with the visible conditions? How is the visible condition of the standard list view (50)?
Image
Reply
#5
Never mind, I've sorted it.

Thanks for the help though!
 
Reply

Logout Mark Read Team Forum Stats Members Help
Strange Behaviour0