2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "Containers/Map.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "LyraWidgetFactory.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "Templates/SubclassOf.h"
|
|
|
|
#include "UObject/SoftObjectPtr.h"
|
|
|
|
#include "UObject/UObjectGlobals.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
#include "LyraWidgetFactory_Class.generated.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class UObject;
|
|
|
|
class UUserWidget;
|
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
UCLASS()
|
|
|
|
class LYRAGAME_API ULyraWidgetFactory_Class : public ULyraWidgetFactory
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
ULyraWidgetFactory_Class() { }
|
|
|
|
|
|
|
|
virtual TSubclassOf<UUserWidget> FindWidgetClassForData_Implementation(const UObject* Data) const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
UPROPERTY(EditAnywhere, Category = ListEntries, meta = (AllowAbstract))
|
|
|
|
TMap<TSoftClassPtr<UObject>, TSubclassOf<UUserWidget>> EntryWidgetForClass;
|
|
|
|
};
|