Kodi Community Forum

Full Version: need condition for panel container or an idea
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I need a condition for panel, I need to know when a new icon in the panel is visible. (by a horizontal panel container, when a hidden icon slides from left or right side in the visible section of the panel).

I need this for the appleTV3.0 Coverflow-Effect on the Homepage.

I tried it with:
(for the right side)
PHP Code:
<visible>Container(311).OnNext Container(311).Position(5)</visible
and:
(for the left side)
PHP Code:
<visible>Container(311).OnPrevious Container(311).Position(0)</visible

But this condition is unfortunately triggered an icon too early.
on the left side: triggers the animation from even if I change the focus from position 1 to position 0
But it should only be triggered if I'm already at position 0, and then go to the left


if one of you has an idea how to solve the problem, then bring it on in order

thanks eumel

WingmanNZ

eumel Wrote:Hi

I need a condition for panel, I need to know when a new icon in the panel is visible. (by a horizontal panel container, when a hidden icon slides from left or right side in the visible section of the panel).

I need this for the appleTV3.0 Coverflow-Effect on the Homepage.

I tried it with:
(for the right side)
PHP Code:
<visible>Container(311).OnNext Container(311).Position(5)</visible
and:
(for the left side)
PHP Code:
<visible>Container(311).OnPrevious Container(311).Position(0)</visible

But this condition is unfortunately triggered an icon too early.
on the left side: triggers the animation from even if I change the focus from position 1 to position 0
But it should only be triggered if I'm already at position 0, and then go to the left


if one of you has an idea how to solve the problem, then bring it on in order

thanks eumel

for anyone that can shed any light on a solution for this, i can email you a current version of the skin to see the problem eumel & I are having. you help will be noted in the skin credits Tongue
Hi

Is it possible to create a condition that indicates when a new item on the Panel container is visible? (of a horizontal Panel slides in from the right or left side)

I need that for the Coverflow Fake in the AppleTV3.0 Skin.

thanks eumel

ps.: i know the skin engine is on hold, but maybe later Smile
IsEmpty(Container(**).Possition(*)) not work?
Rocky5 Wrote:IsEmpty(Container(**).Possition(*)) not work?
IsEmpty(Container(**).Possition(0))
should never be empty, the focus switched instantly
you can see the problem here:
http://www.youtube.com/watch?v=LmQcG5NBr6E

Image
as you can see in the picture I want to trigger the animation, because when it is green
But it is triggered in the green and red region.
The animation triggers if i switch the Position(focus) from 3 to 4, and 4 to 5(hidden item).
An item too early

the condition "Container(*).Position(4) + Container(*).OnNext" is satisfied before and after 4