Kodi Community Forum
Animations conditional -2- - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Animations conditional -2- (/showthread.php?tid=132582)



Animations conditional -2- - reazorFX - 2012-05-28

Hi

how can i start a animation when i chance from season-view to episodes-view?

thx &
cheers


RE: Animations conditional -2- - phil65 - 2012-05-28

only container.content(xx) is possible afaik.


RE: Animations conditional -2- - Hitcher - 2012-05-28

Unfortunately there's no Container.ContentOnNext(parameter) or Container.ContentOnPrevious(parameter).


RE: Animations conditional -2- - reazorFX - 2012-05-28

Too bad.


RE: Animations conditional -2- - `Black - 2012-05-28

Add

PHP Code:
<control type="button">
    <
onfocus condition="Container.Content(Seasons) + IsEmpty(Window(Videos).Property(Animation))">SetProperty(Animation,1)</onfocus>
    <
onfocus condition="!Container.Content(Seasons) + !IsEmpty(Window(Videos).Property(Animation))">AlarmClock(ClearAnimation,ClearProperty(Animation),00:01,silent)</onfocus>
</
control

to the focusedlayout of your container(s). Then you can animate with the condition Container.Content(Episodes) + !IsEmpty(Window(Videos).Property(Animation)). It's not optimal and I don't know if it will work but you could try.


RE: Animations conditional -2- - reazorFX - 2012-05-29

interesting idea ´Black .... i will try it.
otherwise i can right a completet new view only for episodes. For example List=51 then will WindowsOpen an WindowsClose work or..?
i hope Laugh


RE: Animations conditional -2- - Hitcher - 2012-05-29

No, it'll only trigger the first time you enter episode level unless you leave the video library and re-enter.

eg Home > TV Shows > Episodes (yes) > TV Shows > Episodes (no)