Digital Dungeon Assets Docs
  • Welcome to the Magic Spell system docs
  • Getting Started
    • Welcome
    • Quick Start Migrating to existing Project
    • Quick Start Using Demo Character
    • Quick Start integration to ALS
  • Spell System
    • Components
    • Spell Component Overview
    • Stats Component Overview
    • Targeting Component
    • UI Component
    • Animation Notifiers
    • Damage Types
    • The Data Table
    • Function Library
    • Interfaces
    • Macro Library
    • Spells
    • UI
    • Multiplayer
  • VFX
    • Page 1
Powered by GitBook
On this page
  • Event Graph
  • Functions
  1. Spell System

UI Component

PreviousTargeting ComponentNextAnimation Notifiers

Last updated 8 months ago

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