One of the implementations I really wanted to add to the inventory system was being able to move the widget around. Drag and Drop operations, as it turns out, aren't as simple as just drag and drop. A whole new BP must be created that will be used by whatever it is you want to drag, and several functions must be overwritten to do so. As mentioned in the previous blog post, I have started this project again, as the backup I had wasn;t totally up to date and it could stand to be a lot more cleaner. If you have been following along, there is a chance some of the variables or blueprints may not be the same. As always, if you read this blog post and would like more information, please view the original tutorial by youtube user " Unreal Gaime Dev " The first step The first thing to be done is to create a new BP with a parent class of "DragDropOperation." There is nothing required in the construction script or the event graph, it simply requires to vari...
I don't want to go on too long about what I have just done with the inventory system, but all being well, aside from the occasional bug that I am still looking to fix, it will be done, and I can start on the game world mechanics such as a day/night cycle, a calendar, and in-game time. Whenever the player picks up an item, there is a boolean called "Show Obtained Notification?" If this is enabled, the player will receive a small pop-up telling them what item they just obtained. If it is disabled, the item will still be added to the inventory, it just won't show the notification. There is a sort button (on the mouseover) (also, custom mouse pointer!) that when clicked will organise the inventory by the enum to the left, clicking it again will trigger a flip-flop and reverse the sort (From A-Z, then Z-A) It will sort by the item's category (What order they appear in the BP_MasterItem Category Enum) By the amount of items in a stack (From 99-1, the...
Comments
Post a Comment