RealtimeStyleTransferRuntime/Source/LyraGame/UI/Common/LyraListView.h

33 lines
980 B
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CommonListView.h"
#include "Components/ListView.h"
#include "LyraListView.generated.h"
class UUserWidget;
class ULocalPlayer;
class ULyraWidgetFactory;
UCLASS(meta = (DisableNativeTick))
class LYRAGAME_API ULyraListView : public UCommonListView
{
GENERATED_BODY()
public:
ULyraListView(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
#if WITH_EDITOR
virtual void ValidateCompiledDefaults(IWidgetCompilerLog& InCompileLog) const override;
#endif
protected:
virtual UUserWidget& OnGenerateEntryWidgetInternal(UObject* Item, TSubclassOf<UUserWidget> DesiredEntryClass, const TSharedRef<STableViewBase>& OwnerTable) override;
//virtual bool OnIsSelectableOrNavigableInternal(UObject* SelectedItem) override;
protected:
UPROPERTY(EditAnywhere, Instanced, Category="Entry Creation")
TArray<TObjectPtr<ULyraWidgetFactory>> FactoryRules;
};