33 lines
980 B
C
33 lines
980 B
C
|
// 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;
|
||
|
};
|