Loading...
Searching...
No Matches
AdventureCore.ResourceBarPanel Class Reference

Detailed Description

overlay element that display a bar for some character resource
when the resource gets damaged it shows the damage value for a configurable duration
like all OverlayElements it needs a UIDocument that actually gets displayed
the setup for this is a bit involved, check out the demo for an example

https://adventure.softleitner.com/manual/resource

Inheritance diagram for AdventureCore.ResourceBarPanel:
AdventureCore.ResourceBarBase

Public Member Functions

override void Damage (DamageEvent damageEvent)
 
- Public Member Functions inherited from AdventureCore.ResourceBarBase
void Damage (DamageEvent damageEvent)
 

Public Attributes

RectTransform Bar
 
Text ValueText
 
Text HitText
 
bool Fade = true
 
- Public Attributes inherited from AdventureCore.ResourceBarBase
Transform Target
 
string Format
 
ResourceType ResourceType
 
ResourcePool ResourcePool
 
float HitDuration