2017-08-09, 11:10
ATM there just part of visible/animation conditions, or am I wrong?
I'm guessing via python they are hackable, but XML not.
I'm guessing via python they are hackable, but XML not.
(2017-08-09, 11:10)badaas Wrote: ATM there just part of visible/animation conditions, or am I wrong?You're asking if a window can be open via skin? Answer is yes using Kodi's built-in activatewindow(id)
I'm guessing via python they are hackable, but XML not.
<animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="300" tween="sine" easing="in" />
<effect type="zoom" start="50" end="100" time="300" center="auto" tween="quadratic" easing="out" />
<effect type="rotatey" start="30" end="0" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
<animation type="WindowClose" reversible="false">
<effect type="fade" end="0" start="100" time="200" tween="sine" easing="out" />
<effect type="zoom" end="75" start="100" time="200" center="auto" tween="quadratic" easing="in" />
<effect type="rotatex" start="0" end="10" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
<animation type="Visible" reversible="false" condition="!Window.IsActive(skinsettings)">
<effect type="fade" start="0" end="100" time="300" delay="300" tween="sine" easing="in" />
<effect type="zoom" start="115" end="100" time="300" delay="300" center="auto" tween="sine" easing="out" />
<effect type="rotatey" start="-50" end="0" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
(2017-08-09, 17:54)badaas Wrote: Thanks for reply, but no I mean the (I cant think of the word long day at work!!) 'notification of the event', ie.IC so instead of windowopen condition your asking if there is a onload/unload condition for animation?
Code:<animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="300" tween="sine" easing="in" />
<effect type="zoom" start="50" end="100" time="300" center="auto" tween="quadratic" easing="out" />
<effect type="rotatey" start="30" end="0" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
<animation type="WindowClose" reversible="false">
<effect type="fade" end="0" start="100" time="200" tween="sine" easing="out" />
<effect type="zoom" end="75" start="100" time="200" center="auto" tween="quadratic" easing="in" />
<effect type="rotatex" start="0" end="10" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
<animation type="Visible" reversible="false" condition="!Window.IsActive(skinsettings)">
<effect type="fade" start="0" end="100" time="300" delay="300" tween="sine" easing="in" />
<effect type="zoom" start="115" end="100" time="300" delay="300" center="auto" tween="sine" easing="out" />
<effect type="rotatey" start="-50" end="0" time="300" center="auto" tween="quadratic" easing="out" />
</animation>
Animation will fire on WindowOpen, WindowClose, Visible, Hidden.
There is no 'command' (ie. like <onload>) available in XML for other usage.
<windowopen></windowopen>
<windowclose></windowclose>