39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CppStruct_AnimModeDirection.h"
|
|
#include "CppAnimation.h"
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "CppBaseWidget.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class FORTIS_TAKTIKA_API UCppBaseWidget : public UUserWidget
|
|
{
|
|
GENERATED_BODY()
|
|
private:
|
|
float timeLastTick;
|
|
TArray<CppAnimation> Animations;
|
|
CppAnimation* GetAnimationWithMode(TEnumAsByte<Enum_AnimMode>* mode);
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, Category = Properties)
|
|
bool bVisible;
|
|
|
|
UFUNCTION(BLueprintCallable, Category = Tick)
|
|
bool CanTick(float interval);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = Animation)
|
|
void PlayAnimationMode(TEnumAsByte<Enum_AnimMode> mode, int32 priorityIndex);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = Animation)
|
|
void AddAnimation(UUserWidget* owner, UWidgetAnimation* animation, TArray<FCppStruct_AnimModeDirection> modes, TEnumAsByte<Enum_AnimMode> modeAtCreation, int32 priorityIndex);
|
|
|
|
public:
|
|
virtual void NativeConstruct() override;
|
|
virtual void NativeTick(const FGeometry& MyGeometry, float DeltaTime) override;
|
|
};
|