Author Topic: Drag & Drop Issues  (Read 4819 times)

BlueSin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Drag & Drop Issues
« on: June 02, 2015, 04:30:33 PM »
God I feel bad even posting this, there are like a million and one posts about drag & drop issues and links to solve them + videos.  I used those same resources to set up my current drag and drop system and I almost have it save for two problems, which I will illustrate with pictures.

So here is my normal interface right:



This shows an open inventory panel and hotbar widget (not a panel).  I want the user to be able to drag items from inventory to hotbar, and vice versa.  That works fine, along with item swapping (swapping two items).  Problem #1 comes when I try to drag from Hotbar to Inventory Window (not from Inventory Window to Hotbar):



This illustrates the dragged item is being drawn behind the panel for some reason.  Problem #2 is if I drag an item out of the inventory entirely and just drop it there it will stay there where I dropped it.  Where I would prefer to be able to handle that sort of situation and turn it into a physical dropped item the player can then re-pick up.  Problem #2 is illustrated here:



So, that's about it.  I am hoping this will be an easy one, because if I can figure this out then I am done with this part of it!  As usual any and all help is appreciated!

BlueSin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Drag & Drop Issues
« Reply #1 on: June 04, 2015, 10:47:07 AM »
Bump, anybody?

BlueSin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Drag & Drop Issues
« Reply #2 on: June 07, 2015, 11:01:35 AM »
Shameful bump, nobody has the answer?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Drag & Drop Issues
« Reply #3 on: June 07, 2015, 12:49:20 PM »
I already answered your email days ago, BlueSin:
Quote
You forgot to place UIDragDropRoot on a separate panel that's on top of other panels.