21 UFUNCTION(BlueprintCallable, Category =
"PageScrollDot")
22 void SetNumberOfPages(int32 PageCount);
26 UFUNCTION(BlueprintCallable, Category =
"PageScrollDot")
27 void SetCurrentPage(int32 PageIndex);
33 class UImage* GetDotImage(UUserWidget* DotWidget)
const;
39 void UpdateDotAppearance(UUserWidget* DotWidget, FLinearColor
Color,
float Scale);
45 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"PageScrollDot|Data")
46 TSubclassOf<class UUserWidget> DotWidgetClass;
51 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
52 FLinearColor SelectedColor = FLinearColor::White;
55 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
56 FLinearColor UnselectedColor = FLinearColor(0.5f, 0.5f, 0.5f, 1.0f);
59 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
60 float SelectedScale = 1.2f;
63 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Appearance")
64 float UnselectedScale = 1.0f;
69 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "PageScrollDot|Animation")
70 float AnimationSpeed = 0.15f;
75 UPROPERTY(BlueprintReadOnly, meta = (BindWidget))
76 TObjectPtr<class UHorizontalBox> DotContainer;
81 TArray<TObjectPtr<UUserWidget>> dotList;
84 int32 currentPageIndex = 0;