UI Component

Event Graph

Tries to get the Spell component and Stats component, then start listening to certain events and updates the UI accordingly

There is also a trace logic that triggers in world UI for example when looking at a spell altar it will display which spell is in there

Functions

Init Locally

Add Necessary UI widgets to the player

Add Spell Widget Slots To HUD

Iterates through all indexes and adds a widget to the player HUD that displays the spell in that index

Add Spell To UI

Gets the spell widget created by "Add Spell Widget Slots To HUD" function and populates it with information from the spell

Remove Spell From UI

Removes information from the spell widget at the given index

Add Action Widget Slots To HUD

Iterates through all indexes and adds a widget to the player HUD that displays the Action key and Spell name

Last updated