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/Array.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "GameSettingValueDiscrete.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "HAL/Platform.h"
|
|
|
|
#include "Internationalization/Text.h"
|
|
|
|
#include "UObject/UObjectGlobals.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
#include "LyraSettingValueDiscrete_OverallQuality.generated.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class UObject;
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
class ULyraSettingValueDiscrete_OverallQuality : public UGameSettingValueDiscrete
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ULyraSettingValueDiscrete_OverallQuality();
|
|
|
|
|
|
|
|
/** UGameSettingValue */
|
|
|
|
virtual void StoreInitial() override;
|
|
|
|
virtual void ResetToDefault() override;
|
|
|
|
virtual void RestoreToInitial() override;
|
|
|
|
|
|
|
|
/** UGameSettingValueDiscrete */
|
|
|
|
virtual void SetDiscreteOptionByIndex(int32 Index) override;
|
|
|
|
virtual int32 GetDiscreteOptionIndex() const override;
|
|
|
|
virtual TArray<FText> GetDiscreteOptions() const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
/** UGameSettingValue */
|
|
|
|
virtual void OnInitialized() override;
|
|
|
|
|
|
|
|
int32 GetCustomOptionIndex() const;
|
|
|
|
int32 GetOverallQualityLevel() const;
|
|
|
|
|
|
|
|
TArray<FText> Options;
|
|
|
|
TArray<FText> OptionsWithCustom;
|
|
|
|
|
|
|
|
};
|