Let's now open the Item Widget Blueprint by navigating to Content | Blueprints | UI:
At this point, we should not have any logic for the button, which is necessary because it gives us the actions that the button will perform in conjunction with the game. To add a functionality to the button, click on the button, navigate to Details | Events | OnClicked, and then click on +:
Here, we will need to do a few things. Firstly, we know that this Blueprint will be responsible for all of the button mechanics regarding both the shops and the character's inventory and the mechanics will be different since the character buys items from the shop and uses items from the inventory. Since these different game screens provide different actions, it would be wise to first check whether a user is in the shop or in their inventory. To do this, we should first bring in the Get All Actors Of Class function, and get all the actors from the Field Player class...