RealtimeStyleTransferRuntime/Plugins/GameSettings/Source/Public/Widgets/GameSettingListView.h

38 lines
1.0 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/ListView.h"
#include "GameSettingListEntry.h"
#include "GameSettingListView.generated.h"
class UGameSettingCollection;
class ULocalPlayer;
class UGameSettingVisualData;
UCLASS()
class GAMESETTINGS_API UGameSettingListView : public UListView
{
GENERATED_BODY()
public:
UGameSettingListView(const FObjectInitializer& ObjectInitializer);
void AddNameOverride(const FName& DevName, const FText& OverrideName);
#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)
UGameSettingVisualData* VisualData;
private:
TMap<FName, FText> NameOverrides;
};