Download LyraStarterGame/Source/LyraGame/UI/Weapons/CircumferenceMarkerWidget.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/CircumferenceMarkerWidget.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/UI/Weapons/CircumferenceMarkerWidget.h
-
curl -L -o CircumferenceMarkerWidget.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/CircumferenceMarkerWidget.h
1.77 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class SWidget; | |
| class UObject; | |
| struct FFrame; | |
| UCLASS() | |
| class UCircumferenceMarkerWidget : public UWidget | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UCircumferenceMarkerWidget(const FObjectInitializer& ObjectInitializer); | |
| //~UWidget interface | |
| public: | |
| virtual void SynchronizeProperties() override; | |
| protected: | |
| virtual TSharedRef<SWidget> RebuildWidget() override; | |
| //~End of UWidget interface | |
| //~UVisual interface | |
| public: | |
| virtual void ReleaseSlateResources(bool bReleaseChildren) override; | |
| //~End of UVisual interface | |
| public: | |
| /** The list of positions/orientations to draw the markers at. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance) | |
| TArray<FCircumferenceMarkerEntry> MarkerList; | |
| /** The radius of the circle. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance, meta=(ClampMin=0.0)) | |
| float Radius = 48.0f; | |
| /** The marker image to place around the circle. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance) | |
| FSlateBrush MarkerImage; | |
| /** Whether reticle corner images are placed outside the spread radius */ | |
| //@TODO: Make this a 0-1 float alignment instead (e.g., inside/on/outside the radius)? | |
| UPROPERTY(EditAnywhere, Category=Corner) | |
| uint8 bReticleCornerOutsideSpreadRadius : 1; | |
| public: | |
| /** Sets the radius of the circle. */ | |
| UFUNCTION(BlueprintCallable, Category = "Appearance") | |
| void SetRadius(float InRadius); | |
| private: | |
| /** Internal slate widget representing the actual marker visuals */ | |
| TSharedPtr<SCircumferenceMarkerWidget> MyMarkerWidget; | |
| }; | |