Announcement

Collapse
No announcement yet.

Dragslots inside scrolling list items?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dragslots inside scrolling list items?

    I've added a tiled list to my hud, taken from the click components file.

    I've created my own ListItemRenderer and inside I've added a dragslot.

    It looks great and scrolls etc, but the dragslot is not responding to any mouse events. I guess it's because the ListItemRenderer (where it resides) is capturing the mouse events. Does anyone know how i can allow the dragslots inside the list items to be used?

    Thanks in advance.

    #2
    you could try adding mouseChildren = true to the listitemrenderer.

    If that doesnt work then maybe the dragslot tiles aren't bubbling the events. You could also try adding the mouse event onto them manually.

    Comment


      #3
      Thanks for the response @Doublezer0. I've tried setting mouseChildren = true in my listitemrenderer but my dragslots are still not dragging.

      When you mentioned adding the click events to the dragslots manually, do you mean passing them from the list itemitemrenderer?

      Comment


        #4
        Update: mouseChildren set to true is now working. I just wasn't setting it correctly. Thanks for the help

        Comment

        Working...
        X