DamaterBarUI ​
Inherits: HUDUIElement < Control
This class represents a details bar in the UI, typically used to display entity-specific information such as damage or healing amounts.
Description ​
Key features:
- Displays an entity's name and total amount
- Shows a progress bar representing the entity's contribution relative to the team
- Updates dynamically with new totals and percentages
Variables ​
Entity | owner_entity | |
int | total_amount | 0 |
Methods ​
void | set_details_bar( entity: Entity ) |
void | add_total( number: int, team_total: int ,entity: Entity ) |
void | adjust_percentage( percentage: float, team_total: int ) |
Variable descriptions ​
Entity owner_entity ​
The entity this details bar represents
int total_amount = 0 ​
The total amount (e.g., damage, healing) for this entity
Method descriptions ​
void set_details_bar( entity: Entity ) ​
Sets up the details bar for a specific entity
void add_total( number: int, team_total: int ,entity: Entity ) ​
Adds to the total amount for this entity and updates the UI
void adjust_percentage( percentage: float, team_total: int ) ​
Adjusts the percentage display and progress bar based on the team total