Kodi Community Forum

Full Version: Updated to nightly build ->submenu doesnt work anymore
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey.
so i got another little problem:

i just updated to the latest version to use functions like
LatestMovie.1.Path and System.Date(dd. MMM)

These functions work now, but the submenu doesnt.
My button has <onright>1010</onright> and the container looks similar to this:

Code:
<control type="group" id="1010">
            <animation effect="fade" start="100" end="0" delay="0" time="100" condition="!ControlGroup(1010).HasFocus">conditional</animation>
            <animation effect="fade" start="0" end="100" delay="100" time="100" condition="ControlGroup(1010).HasFocus">conditional</animation>
            <control type="grouplist" id="1011">

In the stable build it works...any1 got an idea?
Try <onright>Setfocus(1010)</onright>.
conehead Wrote:In the stable build it works...any1 got an idea?

Problem being it's not visible or it does not get focus?
Hitcher Wrote:Try <onright>Setfocus(1010)</onright>.

Doesn't work either, but at least my Videos button doesn't seem to have the focus anymore.

pecinko Wrote:Problem being it's not visible or it does not get focus?

It's not even visible.
The grouplist has in it:
Code:
<visible>Control(1010).HasFocus(1)</visible>

And my other buttons should move, as soon as 1010 has the focus:
Code:
<animation effect="slide" end="0,40" time="100" condition="Control.HasFocus(1010)">conditional</animation>
But they dont move either
<visible allowhiddenfocus="true">
now the other buttons do their animation.
but my submenu is still not visible.
hmm here is all my code of my submenu:
Code:
        <control type="group" id="1010">
            <animation effect="fade" start="100" end="0" delay="0" time="100" condition="!ControlGroup(1010).HasFocus">conditional</animation>
            <animation effect="fade" start="0" end="100" delay="100" time="100" condition="ControlGroup(1010).HasFocus">conditional</animation>
            <control type="grouplist" id="1011">
                <posx>0</posx>
                <posy>120</posy>
                <width>1280</width>
                <height>40</height>
                <align>center</align>
                <orientation>horizontal</orientation>
                <onup>1001</onup>
                <ondown>1001</ondown>
                <itemgap>0</itemgap>
                <visible allowhiddenfocus="true">Control(1010).HasFocus(1)</visible>
                <control type="button" id="10111">
                    <include>submenubar</include>
                    <label>Movies</label>
                    <onclick>ActivateWindow(Settings)</onclick>
                </control>
                <control type="button" id="10112">
                    <include>submenubar</include>
                    <label>Series</label>
                    <onclick>ActivateWindow(AddonBrowser)</onclick>
                </control>
                <control type="button" id="10113">
                    <include>submenubar</include>
                    <label>Recently Added</label>
                    <onclick>ActivateWindow(AddonBrowser)</onclick>
                </control>
                <control type="button" id="10114">
                    <include>submenubar</include>
                    <label>Files</label>
                    <onclick>ActivateWindow(AddonBrowser)</onclick>
                </control>
            </control>
        </control>

the include:
Code:
    <include name="submenubar">
        <font>S</font>
        <textcolor>FFdefb18</textcolor>
        <disabledcolor>FFdefb18</disabledcolor>
        <focusedcolor>FFFFFFFF</focusedcolor>
        <texturefocus></texturefocus>
        <texturenofocus></texturenofocus>
    </include>

and "videos" give the focus to 1010. this works, because i can see the other buttons moving. just still not visible.

but already thanks for your help!
Try this:
Code:
<control type="group" id="1010">
  <animation effect="fade" start="100" end="0" time="0" condition="!Control.HasFocus(1011)">conditional</animation>
  <animation effect="fade" start="100" end="0" delay="0" time="100" condition="!ControlGroup(1010).HasFocus">conditional</animation>
  <animation effect="fade" start="0" end="100" delay="100" time="100" condition="ControlGroup(1010).HasFocus">conditional</animation>
  <control type="grouplist" id="1011">
    <posx>0</posx>
    <posy>120</posy>
    <width>1280</width>
    <height>40</height>
    <align>center</align>
    <orientation>horizontal</orientation>
    <onup>1001</onup>
    <ondown>1001</ondown>
    <itemgap>0</itemgap>
    <control type="button" id="10111">
      <include>submenubar</include>
      <label>Movies</label>
      <onclick>ActivateWindow(Settings)</onclick>
    </control>
    <control type="button" id="10112">
      <include>submenubar</include>
      <label>Series</label>
      <onclick>ActivateWindow(AddonBrowser)</onclick>
    </control>
    <control type="button" id="10113">
      <include>submenubar</include>
      <label>Recently Added</label>
      <onclick>ActivateWindow(AddonBrowser)</onclick>
    </control>
    <control type="button" id="10114">
      <include>submenubar</include>
      <label>Files</label>
      <onclick>ActivateWindow(AddonBrowser)</onclick>
    </control>
  </control>
</control>
no, sorry.
same problem
Don't recall if a grouplist is a groupcontrol or single control, but this construction should definitely work, I use it for my submenus.
Big_Noid Wrote:Don't recall if a grouplist is a groupcontrol or single control, but this construction should definitely work, I use it for my submenus.

you use the latest version?
as i said, here it worked with the stable, too.
but now its not working anymore. :/
Yeah, latest build. Oh and your onright should be 1011 instead of 1010 in this construction.
Do you really need id=1010 for group?
hmm i cant find any mistake.
and yes a grouplist is a controlgroup. works with the animation effects.
i even tried to put an image into the group and set the x and y positions...still nothing to see.

hmm and i tried it your way, but its just not working. Sad
okay i got it working.
i had to remove this:

<visible allowhiddenfocus="true">Control(1010).HasFocus</visible>

strange :/
but now it works as it should.
thx to all helpers