Hey mates. Need a little advice or guidance or directions.
Been working on my inventory system. Works well. I am trying to make a description window pop up just item’s name and it’s short description written on it when player howers on the item in inventory. As an example here is one from Gothic 3:
I have came quite a bit into accomplishing that. But the thing is description is shown only first time player is hovering the item on the inventory. If I pull the mouse away and do it again it just gives no description. Here first and second time.
I have a simple inventory system. Inventory itself works quite robust and well. I am using this tutorial if you need to know:
I have three widgets: Inventory; InventorySlot, ItemDescBox. InventorySlot is just a button, image and text that are binded to AddedItem variable (custom FInventoryItem type) Inventory just collects these slots into a window and updates the slots in it’s Event Graph. Here is Inventory’s Event Graph if it helps:
ItemDesBox is just an image and text on it binded to AddedItemDesc (same FInventoryItem type before).
I made a small addition in ItemSlot’s Event Graph with OnHowered and OnUnhowered ones. The OnHowered one simply draws the ItemDescBox and Sets over the AddedItem variable to AddedItemDesc variable of ItemDescBox since they are both essentially the same type. The OnUnHowered one simply hides the widget.
But like I explained this only works the first time. After that it always is returning nothing. What is it you think maybe causing this ? I have tried for 2 days but I am no master of UE4. Wanted to ask it. Also if you have any advices in general and tutorials you wanna suggets, I would like to hear them too.
I am using UE4.18.3