KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UTabIndicator.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "UTabIndicator.generated.h"
8
12UCLASS()
13class ONEPIECE_API UTabIndicator : public UUserWidget
14{
15 GENERATED_BODY()
16
17protected:
18 virtual void NativeDestruct() override;
19
20public:
24 UFUNCTION(BlueprintCallable, Category = "TabIndicator")
25 void MoveTo(FVector2D InTargetPosition, bool InAnimate = true);
26
29 UFUNCTION(BlueprintCallable, Category = "TabIndicator")
30 void SetAnimationSpeed(float Speed);
31
34
36 UPROPERTY(BlueprintAssignable, Category = "TabIndicator|Events")
37 FOnMoveCompleted OnMoveCompleted;
38
39private:
41 void TickAnimation();
42
44 class UCanvasPanelSlot* GetCanvasSlot() const;
45
46private:
48 UPROPERTY(EditAnywhere, Category = "TabIndicator|Animation", meta = (ClampMin = "0.01", ClampMax = "2.0"))
49 float AnimationSpeed = 0.15f;
50
52 FTimerHandle AnimTimerHandle;
53
55 FVector2D AnimStartPosition = FVector2D::ZeroVector;
56
58 FVector2D AnimTargetPosition = FVector2D::ZeroVector;
59
61 float AnimElapsedTime = 0.0f;
62
64 bool bIsAnimating = false;
65};
탭 선택 인디케이터 위젯.
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnMoveCompleted)
이동 완료 이벤트 델리게이트