KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPageScrollDot.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 "UPageScrollDot.generated.h"
8
13UCLASS()
14class ONEPIECE_API UPageScrollDot : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
21 UFUNCTION(BlueprintCallable, Category = "PageScrollDot")
22 void SetNumberOfPages(int32 PageCount);
23
26 UFUNCTION(BlueprintCallable, Category = "PageScrollDot")
27 void SetCurrentPage(int32 PageIndex);
28
29private:
33 class UImage* GetDotImage(UUserWidget* DotWidget) const;
34
39 void UpdateDotAppearance(UUserWidget* DotWidget, FLinearColor Color, float Scale);
40
41public:
42 //~ 데이터 설정
43
45 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Data")
46 TSubclassOf<class UUserWidget> DotWidgetClass;
47
48 //~ 외형 설정
49
51 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
52 FLinearColor SelectedColor = FLinearColor::White;
53
55 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
56 FLinearColor UnselectedColor = FLinearColor(0.5f, 0.5f, 0.5f, 1.0f);
57
59 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
60 float SelectedScale = 1.2f;
61
63 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
64 float UnselectedScale = 1.0f;
65
66 //~ 애니메이션 설정
67
69 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Animation")
70 float AnimationSpeed = 0.15f;
71
72 //~ BindWidget 컴포넌트
73
75 UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
76 TObjectPtr<class UHorizontalBox> DotContainer;
77
78private:
80 UPROPERTY()
81 TArray<TObjectPtr<UUserWidget>> dotList;
82
84 int32 currentPageIndex = 0;
85};
페이지 스크롤 뷰의 인디케이터 위젯 현재 페이지를 시각적으로 표시하는 도트 인디케이터입니다.