Hi everyone.
I’m trying to build a Diablo-3 like inventory system using UMG.
I built 3 Widgets: Item, InventoryBox and Inventory.
Inventory Box is just a widget that changes color on Mouse Enter / Leave. (composed of an empty Image)
Inventory is a box containing several Inventory Boxes.
Item is a Widget that can be drag & dropped on the screen. (composed of an Image within a Border)
Mouse Enter/Leave and Drag & Drop systems are working separately, I want them to work together.
I want my InventoryBoxes to turn White / Gray when my mouse enters or leaves while drag & dropping an item.
Here’s a video showcasing my problem:
Here are the screenshots of the Blueprints involved in the system:
Spawning the item: (custom event being in the Inventory Widget blueprint)
http://img11.hostingpics.net/pics/977839spawningwidget.jpg
This is obviously a temporary system that allows me to quickly test how widgets are behaving.
Drag & Drop System: (overiding functions / binding events on the Item Widget blueprint)
On mouse down:
http://img11.hostingpics.net/pics/240754itemdetectmousedown.jpg
Start Drag: (no parameters in because I wanted to handle the drag and drop process myself but I still needed Blueprint to fire the Drag Over process)
http://img11.hostingpics.net/pics/942212itemdragstart.jpg
While Dragging:
http://img11.hostingpics.net/pics/115791updatewidgetwhiledragging.jpg
Binding the item box color: (on the InventoryBox blueprint)
http://img11.hostingpics.net/pics/759890updatinginventoryboxcolor.jpg
Handling Mouse Enter and Leave
http://img11.hostingpics.net/pics/883894toggleinventoryboxcolor.jpg
I hope someone brings the light to me, I desperately need it ![]()
If you have any question I’m around here more than often.
Good night ![]()
?
