Week 11: Adding Pop-Up UI Elements

Creating the 'Interact' and 'Take' Pop-Ups + the Door Locked Notification

First, I created the designs in Adobe Illustrator before exporting them as PNGs to Photoshop and Procreate to add a paper texture effect. 




Initially, I wanted to create a worn effect to the designs, with tears and rips; however, I decided against this as the added detail did not work well at a small scale. 




Once I had finished the 'interact' and 'take' designs, I brought them into UE5 and added them to my existing HUD widget, aligning them centrally below the crosshair. I then replaced the existing design within my 'need key' widget with my new design. 





Creating 'Key Found' and 'All Loot Found' Notifications

I first drew the decorative frame on my iPad using Procreate and then imported the design to Adobe Illustrator to vectorize it, scale it, and add text. 




Using Photoshop, I then imported my designs and applied a gold foil texture to the decorative frame and added a paper texture, with a subtle vintage pattern to the background. 




In UE5, I made the 'Key Found' notification appear when the Boolean variable 'HasKey?' is set to true, and the 'All Loot Found' notification appear when the Integer value 'ItemsCollected' is equal to 20. I also created animations for each widget to play on 'Event Construct' to get a popping effect. After the 'All Loot Found' notification appears, the mission objective changes from 'Loot the Saloon' to 'Leave the Saloon'. 






Creating Loot Item Notifications 

I used a YouTube tutorial by MelvinTang Games to help me make my notification system. 

I first created an item notification widget, including a size box with an image for my item icon and text for the name of the item collected. 




In the widget graph, I then created a function called 'Initialize Widget' and added a Text input called 'Item Name' and a Texture 2D input called 'Item Icon'. Within 'Initialize Widget', I then created the script below. I created a simple animation for the notification to appear, in which the text and icon go from an opacity of 0 to 1 within 0.25 seconds. 




I created the script below in the event graph of the widget, and in my existing HUD widget, added my item notification widget within a vertical box. 





I made the vertical box a variable, and in the event graph of my HUD widget, I created the script below using a 'Clear Children' node. 




Next, I created a function called 'AddItemNotif', and created the script below within the function graph. 




To make the notification system work, I used the 'Add Item Notif' function within each of my loot item blueprints to specify what name and item icon needs to appear when the item is collected by the player. 


Comments

Popular posts from this blog

Sem 3 Submission

Semester 2 Submission

Week 7: Creating the Western Prototype in UE5 (Part 1)