Local Co-op Series (Pt 1: player anim)

Pt6: Menu for inventory of picked items



Create widget called PlayerHUD_W (W stands for widget in full screen)
image.png
Image set as not variable
The Inventory panel is made from Uniform Grid Panel: setting as is variable, aligment as below:
image.png
Size box layout:
image.png
Go to Graph:
image.png

Create another widget, called Inventory Icon UI
image.png
In Graph:
Make these 2 variables, tick Instance Editable and Expose on Spawn in details:
image.png
image.png

Back to PlayerHUD_W
image.png
Column length varialble value set as 4
tick Instance Editable and Expose on Spawn in details on PlayerRef variable

Go to Player base BP:
image.png

Back to Player HUD W, add custom event
image.png

Back to Player base BP, promote variale Hud Ref
image.png
In Pickup item function, remove string and replace with:
image.png

Test the inventory (let mouse cursor occurs and point to the table, by hitting Shift+F1
image.png

To modify the style of the widget (put none in each box):


Open inventory Icon UI:
image.png
image.png
Change padding of invenotry panel in player HUD W:
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.