Default focus in containers
#1
I started working on the old Fusion skin by Archantur again, fixing it for Gotham because I think it's by far the best looking skin. I haven't used XBMC since i modded it last time so I've missed out on a couple of things.

One thing that I just can't figure out is what happened to the default focus when going into windows? When I go inte a window (settings for example) I have to press a key first before anything is focused, why is this? It's the same in the home menu and pretty much everywhere.

To be more clear: A control inside a layout for example doesn't get focused until I press a key, so every time I go into a new window I have to press a key before anything gets focused and then I can start selecting stuff, what is this and how do you fix it?

If you read this and don't understand please say so because I must fix this before I can start working on the rest, it annoys the crap out of me!
Reply
#2
did you try to use <defaultcontrol> ?
does the container control have a windowopen animation with delay?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
At the top I have
Code:
<defaultcontrol always="true">9500</defaultcontrol>
the panel below is id=9500.

The WindowOpen animation looks like this
Code:
<animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="200" delay="0" />
</animation>
so I guess there is not delay.

I think it's some global problem since it's present all around the skin.
Reply
#4
(2014-10-10, 01:01)frellAn Wrote: At the top I have
Code:
<defaultcontrol always="true">9500</defaultcontrol>
the panel below is id=9500.

The WindowOpen animation looks like this
Code:
<animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="200" delay="0" />
</animation>
so I guess there is not delay.

I think it's some global problem since it's present all around the skin.

you have that skin on GitHub? Then I could take a quick look if you want.
I think it´s just a mistake in skin code.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
Good thing you got me off my ass with creating a github, here it is!

https://github.com/feggak/skin.fusionmigma

Look in Settings.xml for example, it exists there. I have a bleak memory of encountering something similar when it went from Dharma to Eden but i can't remember what I did to fix it. Some syntax is changed, anyone know?
Reply
#6
(2014-10-10, 08:17)frellAn Wrote: Good thing you got me off my ass with creating a github, here it is!

https://github.com/feggak/skin.fusionmigma

Look in Settings.xml for example, it exists there. I have a bleak memory of encountering something similar when it went from Dharma to Eden but i can't remember what I did to fix it. Some syntax is changed, anyone know?

PM on the way Smile
Reply
#7
Settings.xml

I've set delay to 0 in the window open animation in the panel container and now it gets focused on window open. So there is a delay causing the focus problem on panels.

PHP Code:
<control type="panel" id="9500">
            <
posx>130</posx>
            <
posy>150</posy>
            <
width>1055</width>
            <
height>510</height>
            <
onleft>9500</onleft>
            <
onright>9500</onright>
            <
onup>9500</onup>
            <
ondown>9500</ondown>
            <
scrolltime>200</scrolltime>
            <
viewtype label="icon">icon</viewtype>
            <
pagecontrol>9501</pagecontrol>
            <
animation type="WindowOpen" reversible="false">
                <
effect type="fade" start="0" end="100" time="200" delay="0" />
            </
animation>
            <
animation type="WindowClose" reversible="false">
                <
effect type="fade" start="100" end="0" time="200" delay="0" />
            </
animation


Same for home.xml:

Set delay to 0 in wraplist container

PHP Code:
<animation effect="fade" start="0" end="100" time="800" delay="0">WindowOpen</animation
Reply
#8
If you're delaying it appearing it wont be focusable when the window loads.
Reply
#9
Thaaaaaaaank you guys! I wonder why it's set with a delay from the beginning then. It worked perfectly fine in Frodo.
Reply

Logout Mark Read Team Forum Stats Members Help
Default focus in containers0