Salt & Ink
Unreal Engine 5
7 weeks
13 collaborators
Perforce manager
Programmer lead
UI
I tried to make the UI easy to alter since assets for the interface was delayed to the last day, and it also had to scale well since the original plan was to be able to recruit more soldiers at checkpoints.
The weapon, hp bar, ammo, ability, portrait is its own small widget and is created in the unit base. Each unit called the parent function to get their widgets. I used structs to set the artists textures and designers text. Due to the widget getting set by struct and also being very focused on a single task, it allowed easy and precise tooltips.
The unit widgets gets added to the viewport using delegate with interfaces and setting them as a children to a vertical box.
If time wasn't an issue I would had loved to add some more values to the tooltip, like damage and fire rate when hovering weapon, evasion rate and hp when hovering hp bar etc.