I'm writing an inventory system currently where I have the following problem:
Two inventory slots A and B containing two items (drag container containing a staticImage) 1 and 2
A contains 1
B contains 2
now I'm picking 1 and dragging it to B, which already contains 2. Now I'm dropping 1 into B.
What I want to achieve now is that 1 "replaces" 2, so that B contains 1 and 2 is being dragged automatically now.
I could think off two ways for that:
1) manually firing the dragStart on 2 by some nasty hacks in CEGUI
2) exchanging the icons contained by 1's and 2's DragContainers and somehow dismissing the Dropped event (which would require CEGUI hacks too and even more tricky code on my side)
both of them require some hacky modifications in CEGUI I guess, so I'd be really happy about any advice on this one
![Smile :)](./images/smilies/icon_smile.gif)
Greetings,
-BigG