Space Plunder
Loading...
Searching...
No Matches
WheelSegment.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
8#include "WheelSegment.generated.h"
9
13UCLASS()
14class BASEHELPERS_API UWheelSegment : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19
20 void SetSegmentData(const FRadialSegmentData& Data);
21 FRadialSegmentData GetSegmentData() const {return SegmentData;};
22 void SetShowDescription(const bool bValue);
23
24 void SetSelected(const bool bValue);
25 void SetIndex(const int32 Value){Index = Value;};
26
27protected:
28 virtual bool Initialize() override;
29 virtual void NativePreConstruct() override;
30 virtual void NativeConstruct() override;
31
32 UFUNCTION(BlueprintImplementableEvent, Category="Radial Wheel")
33 void OnSelected(const bool bValue);
34 UFUNCTION(BlueprintImplementableEvent, Category="Radial Wheel")
35 void OnDataSet(const FRadialSegmentData& Data, const bool bDescription);
36
37
38 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Radial Wheel|Widgets")
39 class UOverlay* Overlay = nullptr;
40 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Radial Wheel|Widgets")
41 class UImage* Image = nullptr;
42 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Radial Wheel|Widgets")
43 class UTextBlock* TitleTextBlock = nullptr;
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Radial Wheel|Widgets")
45 class UTextBlock* DescriptionTextBlock = nullptr;
46
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Radial Wheel|Widgets")
48 class UOverlay* DescriptionOverlay = nullptr;
49
50 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Radial Wheel|Status")
51 int32 Index = -1;
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Radial Wheel|Status")
53 bool bSelected = false;
54 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Radial Wheel|Status")
55 bool bShowDescription = false;
56private:
57
58 FRadialSegmentData SegmentData;
59
60
61};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition WheelSegment.h:15
void SetIndex(const int32 Value)
Definition WheelSegment.h:25
FRadialSegmentData GetSegmentData() const
Definition WheelSegment.h:21
Definition RadialWheelData.h:72