// 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 Animations; CppAnimation* GetAnimationWithMode(TEnumAsByte* mode); protected: UPROPERTY(BlueprintReadWrite, Category = Properties) bool bVisible; UFUNCTION(BLueprintCallable, Category = Tick) bool CanTick(float interval); UFUNCTION(BlueprintCallable, Category = Animation) void PlayAnimationMode(TEnumAsByte mode, int32 priorityIndex); UFUNCTION(BlueprintCallable, Category = Animation) void AddAnimation(UUserWidget* owner, UWidgetAnimation* animation, TArray modes, TEnumAsByte modeAtCreation, int32 priorityIndex); public: virtual void NativeConstruct() override; virtual void NativeTick(const FGeometry& MyGeometry, float DeltaTime) override; };