2017-09-08, 21:43
Hi everyone,
I am currently trying to make a vertical grouplist, consisting of several horizontal panels(poster widgets, like the estuary skin). Now when i navigate between the panel containers, kodi will focus on the last focused item in a container. This results in a weird navigation(because the focus position is not kept from the previous focused container). Previously i have fixed this with the following code in the panel containers:
<onunfocus>SetProperty(ListPosition,$INFO[Container($PARAM[WidgetID]).Position],home)</onunfocus>
<onfocus>Control.Move($PARAM[WidgetID],-$INFO[Container($PARAM[WidgetID]).Position])</onfocus>
<onfocus>Control.Move($PARAM[WidgetID],$INFO[Window(home).Property(ListPosition)])</onfocus>
This usually works fine - the problem is that i currently have an image with a <fadetime> tag, showing an image from the currently focused image. Now when a panel container receives focus, the previously focused item in the container becomes visible for a fraction of a second, before the focus changes to the position of the last focused item in the previous panel container.
Do any of you know a fix for this? Or any ideas of how i can avoid using window properties(i figure this is the reason for the delay). Thanks in advance.
And sorry if this makes no sense - it's difficult to explain in abstract terms
I am currently trying to make a vertical grouplist, consisting of several horizontal panels(poster widgets, like the estuary skin). Now when i navigate between the panel containers, kodi will focus on the last focused item in a container. This results in a weird navigation(because the focus position is not kept from the previous focused container). Previously i have fixed this with the following code in the panel containers:
<onunfocus>SetProperty(ListPosition,$INFO[Container($PARAM[WidgetID]).Position],home)</onunfocus>
<onfocus>Control.Move($PARAM[WidgetID],-$INFO[Container($PARAM[WidgetID]).Position])</onfocus>
<onfocus>Control.Move($PARAM[WidgetID],$INFO[Window(home).Property(ListPosition)])</onfocus>
This usually works fine - the problem is that i currently have an image with a <fadetime> tag, showing an image from the currently focused image. Now when a panel container receives focus, the previously focused item in the container becomes visible for a fraction of a second, before the focus changes to the position of the last focused item in the previous panel container.
Do any of you know a fix for this? Or any ideas of how i can avoid using window properties(i figure this is the reason for the delay). Thanks in advance.
And sorry if this makes no sense - it's difficult to explain in abstract terms