2020-04-04, 14:09
I have this focusedlayout in my view with a focus / unfocus animation to zoom the content:-
Which works fine when navigation around the panel it's apart of, focused items zoom and unfocused items return to normal.
The problem is when the skin is first loaded and I go from Home to the Library view the current focused item is zoomed like I would expect, however when I back out of Home and then return to the Library view the zoom animation fails to trigger on entry, once a new item is selected the zoom triggers.
1. Reload skin
2. Go from Home to Library view - the focused item is zoomed
3. Go back to Home and then in to Library again - the focused item is not zoomed the animation hasn't triggered
I'm doing it the same way as Estuarys View_54_InfoWall which works fine, I just can't figure out why it behaves the way it does in my view , any ideas?
xml:
<focusedlayout width="300" height="430" condition="Container.Content(sets) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)">
<control type="group">
<top>116</top>
<control type="group">
<animation effect="zoom" start="100" end="115" center="auto" time="50">Focus</animation>
<animation effect="zoom" start="115" end="100" center="auto" time="50">UnFocus</animation>
<control type="image">
<left>20</left>
<top>20</top>
<width>260</width>
<height>390</height>
<aspectratio align="center" aligny="center">fit</aspectratio>
<texture background="true" diffuse="overlays/mask_poster.png" fallback="DefaultFallbackMovies.png">$VAR[PosterVar]</texture>
</control>
</control>
</control>
</focusedlayout>
Which works fine when navigation around the panel it's apart of, focused items zoom and unfocused items return to normal.
The problem is when the skin is first loaded and I go from Home to the Library view the current focused item is zoomed like I would expect, however when I back out of Home and then return to the Library view the zoom animation fails to trigger on entry, once a new item is selected the zoom triggers.
1. Reload skin
2. Go from Home to Library view - the focused item is zoomed
3. Go back to Home and then in to Library again - the focused item is not zoomed the animation hasn't triggered
I'm doing it the same way as Estuarys View_54_InfoWall which works fine, I just can't figure out why it behaves the way it does in my view , any ideas?