are or can windowopen / windowclose etc be opened up
#1
ATM there just part of visible/animation conditions, or am I wrong?
I'm guessing via python they are hackable, but XML not.
Reply
#2
(2017-08-09, 11:10)badaas Wrote: ATM there just part of visible/animation conditions, or am I wrong?
I'm guessing via python they are hackable, but XML not.
You're asking if a window can be open via skin? Answer is yes using Kodi's built-in activatewindow(id)

http://kodi.wiki/view/Opening_Windows_and_Dialogs

Sent from my SM-G935T
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#3
Thanks for reply, but no I mean the (I cant think of the word long day at work!!) 'notification of the event', ie.

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.
Reply
#4
(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.

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.
IC so instead of windowopen condition your asking if there is a onload/unload condition for animation?

If so, correct me if I'm wrong couldn't you use onload setfocus to trigger a group of animation with a hasfocus condition?

I apologise if I'm incorrectly understanding the question... LOL nearing the end of the week, my brains running on reserves.

Sent from my SM-G935T
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#5
Haha, np Big Grin

I want <windowclose> <windowopen> basically, so like <onload> they are triggered.
As using <onunload>, it is too late, as it triggers once whole page has been unloaded. I want the initial triggers, ie. when user sets in motion events that causes window to close/open (the same trigger that sets of the animation) etc.

Thinking out loud now I've typed some stuff, I could in theory have a control with id that is visible on windowclose, then check with a python daemon if that control is visible, then fire off my code.
Or, somehow setfocus to hidden button on windowclose, though this my brain is hurting to see atm lol.

edit: I dont think either of those will work..
Reply
#6
Why don't u just u on condition... Which ever button ur using to close the window have it set a property or skin setting and as long as the skin setting it true the animation starts then on load of the next page can clear the property. Same with onload
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#7
Becuase the onload/onunload are 'after' events, ie. onload triggers when xml is 'all' loaded, not at preload, same as onunload.
Also, I would have to program a 'catch all button' on every instance of every page, impossible and very OTT when Kodi itself sends the WindowClose/WindowOpen etc. signals from core to animations.

One example, a page won't get unloaded message until an animation ends that is triggered by WindowClose.
Reply
#8
bump if possible..

Code:
<windowopen></windowopen>
<windowclose></windowclose>

atm only animations have access to these?
Reply

Logout Mark Read Team Forum Stats Members Help
are or can windowopen / windowclose etc be opened up0