mirror of
https://github.com/johndoe6345789/ArenaFPS.git
synced 2026-04-26 14:44:59 +00:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Components/ListView.h"
|
|
|
|
#include "GameSettingListView.generated.h"
|
|
|
|
#define UE_API GAMESETTINGS_API
|
|
|
|
class STableViewBase;
|
|
|
|
class UGameSettingCollection;
|
|
class ULocalPlayer;
|
|
class UGameSettingVisualData;
|
|
|
|
/**
|
|
* List of game settings. Every entry widget needs to extend from GameSettingListEntryBase.
|
|
*/
|
|
UCLASS(MinimalAPI, meta = (EntryClass = GameSettingListEntryBase))
|
|
class UGameSettingListView : public UListView
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UE_API UGameSettingListView(const FObjectInitializer& ObjectInitializer);
|
|
|
|
UE_API void AddNameOverride(const FName& DevName, const FText& OverrideName);
|
|
|
|
#if WITH_EDITOR
|
|
UE_API virtual void ValidateCompiledDefaults(IWidgetCompilerLog& InCompileLog) const override;
|
|
#endif
|
|
|
|
protected:
|
|
UE_API virtual UUserWidget& OnGenerateEntryWidgetInternal(UObject* Item, TSubclassOf<UUserWidget> DesiredEntryClass, const TSharedRef<STableViewBase>& OwnerTable) override;
|
|
UE_API virtual bool OnIsSelectableOrNavigableInternal(UObject* SelectedItem) override;
|
|
|
|
protected:
|
|
UPROPERTY(EditAnywhere)
|
|
TObjectPtr<UGameSettingVisualData> VisualData;
|
|
|
|
private:
|
|
TMap<FName, FText> NameOverrides;
|
|
};
|
|
|
|
#undef UE_API
|