|
|
|
|
| #pragma once
|
|
|
| #include "Components/Widget.h"
|
| #include "UI/Weapons/SCircumferenceMarkerWidget.h"
|
|
|
| #include "CircumferenceMarkerWidget.generated.h"
|
|
|
| class SWidget;
|
| class UObject;
|
| struct FFrame;
|
|
|
| UCLASS()
|
| class UCircumferenceMarkerWidget : public UWidget
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| UCircumferenceMarkerWidget(const FObjectInitializer& ObjectInitializer);
|
|
|
|
|
| public:
|
| virtual void SynchronizeProperties() override;
|
| protected:
|
| virtual TSharedRef<SWidget> RebuildWidget() override;
|
|
|
|
|
|
|
| public:
|
| virtual void ReleaseSlateResources(bool bReleaseChildren) override;
|
|
|
|
|
| public:
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance)
|
| TArray<FCircumferenceMarkerEntry> MarkerList;
|
|
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance, meta=(ClampMin=0.0))
|
| float Radius = 48.0f;
|
|
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance)
|
| FSlateBrush MarkerImage;
|
|
|
|
|
|
|
| UPROPERTY(EditAnywhere, Category=Corner)
|
| uint8 bReticleCornerOutsideSpreadRadius : 1;
|
|
|
| public:
|
|
|
| UFUNCTION(BlueprintCallable, Category = "Appearance")
|
| void SetRadius(float InRadius);
|
|
|
| private:
|
|
|
| TSharedPtr<SCircumferenceMarkerWidget> MyMarkerWidget;
|
| };
|
|
|