Was able to parse UObject with gencpp!!!
This commit is contained in:
7
Project/Source/Gasa/UI/GasaUserWidget.cpp
Normal file
7
Project/Source/Gasa/UI/GasaUserWidget.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include "GasaUserWidget.h"
|
||||
|
||||
UGasaUserWidget::UGasaUserWidget(FObjectInitializer const& ObjectInitializer)
|
||||
: UUserWidget(ObjectInitializer)
|
||||
{
|
||||
|
||||
}
|
26
Project/Source/Gasa/UI/GasaUserWidget.h
Normal file
26
Project/Source/Gasa/UI/GasaUserWidget.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include "Blueprint/UserWidget.h"
|
||||
|
||||
#include "GasaUserWidget.generated.h"
|
||||
|
||||
UCLASS(Blueprintable)
|
||||
class GASA_API UGasaUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
TObjectPtr<UObject> WidgetController;
|
||||
|
||||
UGasaUserWidget(FObjectInitializer const& ObjectInitializer);
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void SetWidgetController(UObject* Controller)
|
||||
{
|
||||
WidgetController = Controller;
|
||||
OnWidgetControllerSet();
|
||||
}
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void OnWidgetControllerSet();
|
||||
};
|
9
Project/Source/Gasa/UI/ProgressBar.h
Normal file
9
Project/Source/Gasa/UI/ProgressBar.h
Normal file
@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include "Components/ProgressBar.h"
|
||||
|
||||
|
||||
UCLASS()
|
||||
class GASA_API UProgressIndicator : public UProgressBar
|
||||
{
|
||||
|
||||
};
|
1
Project/Source/Gasa/UI/WidgetController.cpp
Normal file
1
Project/Source/Gasa/UI/WidgetController.cpp
Normal file
@ -0,0 +1 @@
|
||||
#include "WidgetController.h"
|
23
Project/Source/Gasa/UI/WidgetController.h
Normal file
23
Project/Source/Gasa/UI/WidgetController.h
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "GasaCommon.h"
|
||||
#include "WidgetController.generated.h"
|
||||
|
||||
UCLASS(BlueprintType)
|
||||
class GASA_API UWdgetController : public UObject
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, Category="Player")
|
||||
TObjectPtr<APlayerController> Controller;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, Category="Player")
|
||||
TObjectPtr<APlayerState> PlayerState;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, Category="Player")
|
||||
TObjectPtr<UAbilitySystemComponent> AbilitySystem;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, Category="Player")
|
||||
TObjectPtr<UAttributeSet> Attributes;
|
||||
};
|
Reference in New Issue
Block a user