Help needed - wraplist problem
#1
I'm having a strange problem and I'm hoping someone here can help.

I'm creating a pop-up menu with various options (play trailer, play movie, play movie with Cinema Experiece) that is called from a video view in Cirrus Extended.

The view has video covers scrolling left to right so I call the pop-up via an <ondown> command. The horizontal wraplist is then shown. However, the problem arises when I try to scroll left or right.

At first sight it appears that the list is not scrolling however, on closer inspection, I can see fainter text beneath the more visible text that is scrolling. Essentially it looks as though the listitems are shown twice, the more visible "upper" layer is static, while the dimmer "lower" layer scrolls as it should. You can sort of see the effect here: http://www.youtube.com/watch?v=ae3i8Vp8fGI (although the text doesn't seem to be moving, there is a list below which is!)

Can anyone think of any reason why this would happen?

I'm running Dharma if that matters.

The code for the pop-up menu is below:
Code:
<!-- Video fanart slide view -->
        <control type="group" id="9041">
            <!--       <animation effect="fade" start="100" end="0" time="200" condition="!ControlGroup(9041).HasFocus">conditional</animation>
            <animation effect="fade" start="0" end="100" delay="300" time="200" condition="ControlGroup(9041).HasFocus">conditional</animation>-->
            <posx>0</posx>
            <posy>368</posy>
            <visible allowhiddenfocus="true">Control.IsVisible(666) + Control.HasFocus(9010)</visible>
            
            <control type="image">
                <posx>0</posx>
                <posy>85</posy>
                <width>1350</width>
                <height>40</height>
                <texture>horzmenuback.png</texture>
                <!-- <aspectratio>stretch</aspectratio> -->
            </control>
            

            <control type="wraplist" id="9010">
                <posx>40</posx>
                <posy>30</posy>
                <width>1280</width>
                <height>240</height>
                <align>center</align>
                <onleft>9041</onleft>
                <onright>9041</onright>
                <orientation>horizontal</orientation>
                <focusposition>2</focusposition>
                <scrolltime>200</scrolltime>
                <onup>666</onup>
                <ondown>666</ondown>
                <itemgap>10</itemgap>
                <itemlayout width="270" height="245">
                    <control type="group">    
                        <posx>20</posx>
                        <posy>-5</posy>
                        <control type="label">
                            <width>270</width>
                            <height>56</height>
                            <label>$INFO[ListItem.Label]</label>
                            <align>center</align>
                            <font>cirrus_20</font>
                            <textcolor>grey3</textcolor>
                        </control>
                    </control>
                </itemlayout>
                <focusedlayout width="270" height="515">
                    <control type="group">    
                        <posx>20</posx>
                        <posy>-5</posy>
                        <control type="label">
                            <width>270</width>
                            <height>56</height>
                            <label>$INFO[ListItem.Label]</label>
                            <align>center</align>
                            <font>cirrus_20</font>
                            <textcolor>orange</textcolor>
                        </control>
                    </control>
                </focusedlayout>
                <content>
                    <include>PopUpMenuContent</include>
                </content>
            </control>
        </control>
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#2
not sure if it's causing the issue, but why are you using a group control inside the item/focused layout?
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Hi ronie.

Fair question! Simple answer is because I copied the list from a different menu in the skin that already works! Other than changing content and position the list is currently the same.

This leads me to think that the problem is a result of the way the list is called i.e. via <ondown> - but the working one is called via <onup> on a different screen - so I don't really understand.

Anyway, I tried removing the control group and it doesn't change anything.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#4
seems to me the onleft and onright need to trigger the wraplist (9010) and not the group control it's part of (9041)
Reply
#5
Jeroen Wrote:seems to me the onleft and onright need to trigger the wraplist (9010) and not the group control it's part of (9041)

Tried that one too!

The thing that's weird is that it seems to be two lists as I can see some text moving underneath the text on the top.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#6
well, if you're sure you see two lists, than there must be another list somewhere in your code.
xbmc just doesn't make them up :-)

maybe the code above is fine and that's the list you can vaguely see underneath the other one.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
ronie Wrote:well, if you're sure you see two lists, than there must be another list somewhere in your code.
xbmc just doesn't make them up :-)

maybe the code above is fine and that's the list you can vaguely see underneath the other one.

Not 100% sure, it's just how it looks.

I'll take another look tonight and provide an update.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#8
It does feel like two lists are showing:

If I enable the mouse and mouse over the control, the upper layer list options cycle with the mouse. The keyboard still moves the bottom layer.

Can't see why two lists are being shown - it's only called once.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#9
Maybe you should take a look how it's done in the submenu, as it's quite the same you're trying to do ...
Else, as said send me your files and i'll take a look ...
Reply
#10
like Jeroen said the on left and right may as well change to the wraplist id.
What about the visible conditions/hidden focus stuff?
Reply
#11
ZombieRobot Wrote:like Jeroen said the on left and right may as well change to the wraplist id.
What about the visible conditions/hidden focus stuff?
Changed to wraplist ID's in onright/onleft - no joy.
Removed all visible conditions/hidden focus - no joy.

I'm going to start from scratch again, testing at each step and see where it goes wrong (assuming it works at some point to start with!!)
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply

Logout Mark Read Team Forum Stats Members Help
Help needed - wraplist problem0