DungeonCrawler-UE-C/Source/DungeonCrawlerUE/Variant_Combat/UI/CombatLifeBar.h
sandr fc08cd0c0b Initial commit – UE5 DungeonCrawler project mit Planung v4.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 22:17:14 +02:00

26 lines
594 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "CombatLifeBar.generated.h"
/**
* A basic life bar user widget.
*/
UCLASS(abstract)
class UCombatLifeBar : public UUserWidget
{
GENERATED_BODY()
public:
/** Sets the life bar to the provided 0-1 percentage value*/
UFUNCTION(BlueprintImplementableEvent, Category="Life Bar")
void SetLifePercentage(float Percent);
// Sets the life bar fill color
UFUNCTION(BlueprintImplementableEvent, Category="Life Bar")
void SetBarColor(FLinearColor Color);
};