2019-12-26 15:33:43 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2014-09-09 12:16:36 -04:00
|
|
|
|
|
|
|
|
#include "HardwareTargetingSettingsDetails.h"
|
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3209340 on 2016/11/23 by Ben.Marsh
Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h.
Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms.
* Every header now includes everything it needs to compile.
* There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first.
* There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h.
* Every .cpp file includes its matching .h file first.
* This helps validate that each header is including everything it needs to compile.
* No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more.
* You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there.
* There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible.
* No engine code explicitly includes a precompiled header any more.
* We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies.
* PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files.
Tool used to generate this transform is at Engine\Source\Programs\IncludeTool.
[CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
|
|
|
#include "Misc/Paths.h"
|
|
|
|
|
#include "Layout/Visibility.h"
|
|
|
|
|
#include "Layout/Margin.h"
|
|
|
|
|
#include "Misc/Attribute.h"
|
|
|
|
|
#include "Input/Reply.h"
|
|
|
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
|
|
|
#include "Widgets/SCompoundWidget.h"
|
|
|
|
|
#include "Widgets/SBoxPanel.h"
|
|
|
|
|
#include "Widgets/Text/STextBlock.h"
|
|
|
|
|
#include "Widgets/Text/SRichTextBlock.h"
|
|
|
|
|
#include "Widgets/Layout/SBox.h"
|
|
|
|
|
#include "Widgets/Input/SButton.h"
|
|
|
|
|
#include "EditorStyleSet.h"
|
|
|
|
|
#include "UnrealEdMisc.h"
|
|
|
|
|
#include "PropertyHandle.h"
|
|
|
|
|
#include "DetailLayoutBuilder.h"
|
|
|
|
|
#include "DetailWidgetRow.h"
|
|
|
|
|
#include "DetailCategoryBuilder.h"
|
|
|
|
|
|
|
|
|
|
#include "HardwareTargetingSettings.h"
|
2014-09-09 12:16:36 -04:00
|
|
|
#include "HardwareTargetingModule.h"
|
2014-09-19 00:01:10 -04:00
|
|
|
#include "SSettingsEditorCheckoutNotice.h"
|
2014-09-09 12:16:36 -04:00
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "FHardwareTargetingSettingsDetails"
|
|
|
|
|
|
|
|
|
|
TSharedRef<IDetailCustomization> FHardwareTargetingSettingsDetails::MakeInstance()
|
|
|
|
|
{
|
|
|
|
|
return MakeShareable(new FHardwareTargetingSettingsDetails);
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-18 22:10:53 -04:00
|
|
|
class SRequiredDefaultConfig : public SCompoundWidget
|
|
|
|
|
{
|
|
|
|
|
public:
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2014-09-18 22:10:53 -04:00
|
|
|
SLATE_BEGIN_ARGS(SRequiredDefaultConfig) {}
|
|
|
|
|
|
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
|
|
|
|
|
|
~SRequiredDefaultConfig()
|
|
|
|
|
{
|
|
|
|
|
GetMutableDefault<UHardwareTargetingSettings>()->OnSettingChanged().RemoveAll(this);
|
|
|
|
|
}
|
2015-01-06 04:14:34 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
static FReply Apply()
|
|
|
|
|
{
|
|
|
|
|
IHardwareTargetingModule& Module = IHardwareTargetingModule::Get();
|
|
|
|
|
Module.ApplyHardwareTargetingSettings();
|
|
|
|
|
return FReply::Handled();
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-18 22:10:53 -04:00
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TMap<TWeakObjectPtr<UObject>, TSharedPtr<SRichTextBlock>> SettingRegions;
|
|
|
|
|
|
|
|
|
|
void Construct(const FArguments& InArgs)
|
|
|
|
|
{
|
|
|
|
|
LastStatusUpdate = 0;
|
|
|
|
|
GetMutableDefault<UHardwareTargetingSettings>()->OnSettingChanged().AddRaw(this, &SRequiredDefaultConfig::Update);
|
|
|
|
|
|
|
|
|
|
auto ApplyNow = []{
|
2015-01-06 04:14:34 -05:00
|
|
|
Apply();
|
|
|
|
|
FUnrealEdMisc::Get().RestartEditor(false);
|
2014-09-18 22:10:53 -04:00
|
|
|
return FReply::Handled();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ChildSlot
|
2014-09-09 12:16:36 -04:00
|
|
|
[
|
2014-09-18 22:10:53 -04:00
|
|
|
|
2014-09-18 01:29:26 -04:00
|
|
|
SNew(SVerticalBox)
|
|
|
|
|
+ SVerticalBox::Slot()
|
|
|
|
|
.AutoHeight()
|
2014-09-09 12:16:36 -04:00
|
|
|
[
|
2014-09-18 01:29:26 -04:00
|
|
|
SNew(SHorizontalBox)
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2014-09-18 01:29:26 -04:00
|
|
|
+ SHorizontalBox::Slot()
|
|
|
|
|
.AutoWidth()
|
|
|
|
|
.VAlign(VAlign_Center)
|
|
|
|
|
[
|
|
|
|
|
SNew(STextBlock)
|
|
|
|
|
.Text(LOCTEXT("RestartMessage", "The following changes will be applied when this project is reopened."))
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
+ SHorizontalBox::Slot()
|
|
|
|
|
.AutoWidth()
|
|
|
|
|
.Padding(6)
|
|
|
|
|
[
|
|
|
|
|
SNew(SButton)
|
2015-01-06 04:14:34 -05:00
|
|
|
.Text(LOCTEXT("RestartEditor", "Restart Editor"))
|
2014-09-18 22:10:53 -04:00
|
|
|
.IsEnabled(this, &SRequiredDefaultConfig::CanApply)
|
|
|
|
|
.OnClicked_Static(ApplyNow)
|
2014-09-18 01:29:26 -04:00
|
|
|
]
|
2015-01-06 04:14:34 -05:00
|
|
|
|
|
|
|
|
+ SHorizontalBox::Slot()
|
|
|
|
|
.AutoWidth()
|
|
|
|
|
.Padding(6)
|
|
|
|
|
[
|
|
|
|
|
SNew(SButton)
|
|
|
|
|
.Text(LOCTEXT("ApplyLater", "Apply Later"))
|
|
|
|
|
.IsEnabled(this, &SRequiredDefaultConfig::CanApply)
|
|
|
|
|
.OnClicked_Static(&SRequiredDefaultConfig::Apply)
|
|
|
|
|
]
|
2014-09-18 01:29:26 -04:00
|
|
|
]
|
2014-09-18 22:10:53 -04:00
|
|
|
|
2014-09-18 01:29:26 -04:00
|
|
|
+ SVerticalBox::Slot()
|
2014-09-18 22:10:53 -04:00
|
|
|
.AutoHeight()
|
2014-09-18 01:29:26 -04:00
|
|
|
[
|
2014-09-22 09:41:38 -04:00
|
|
|
SAssignNew(CheckoutNotices, SVerticalBox)
|
2014-09-18 22:10:53 -04:00
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static EVisibility GetAnyPendingChangesVisibility()
|
|
|
|
|
{
|
|
|
|
|
return GetMutableDefault<UHardwareTargetingSettings>()->HasPendingChanges() ? EVisibility::Visible : EVisibility::Collapsed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Initialize(IDetailLayoutBuilder& DetailBuilder, IDetailCategoryBuilder& PendingChangesCategory)
|
|
|
|
|
{
|
|
|
|
|
auto IsVisible = []()->EVisibility{
|
|
|
|
|
auto* Settings = GetMutableDefault<UHardwareTargetingSettings>();
|
|
|
|
|
return Settings->HasPendingChanges() ? EVisibility::Visible : EVisibility::Collapsed;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
FText CategoryHeaderTooltip = LOCTEXT("CategoryHeaderTooltip", "List of properties modified in this project setting category");
|
|
|
|
|
|
|
|
|
|
IHardwareTargetingModule& Module = IHardwareTargetingModule::Get();
|
|
|
|
|
for (const FModifiedDefaultConfig& Settings : Module.GetPendingSettingsChanges())
|
|
|
|
|
{
|
|
|
|
|
TSharedRef<SRichTextBlock> EditPropertiesBlock =
|
2014-09-18 01:29:26 -04:00
|
|
|
SNew(SRichTextBlock)
|
2014-09-18 22:10:53 -04:00
|
|
|
.AutoWrapText(false)
|
2014-09-18 01:29:26 -04:00
|
|
|
.Justification(ETextJustify::Left)
|
|
|
|
|
.TextStyle(FEditorStyle::Get(), "HardwareTargets.Normal")
|
2014-09-18 22:10:53 -04:00
|
|
|
.DecoratorStyleSet(&FEditorStyle::Get());
|
|
|
|
|
|
|
|
|
|
SettingRegions.Add(Settings.SettingsObject, EditPropertiesBlock);
|
|
|
|
|
|
2014-12-01 11:19:41 -05:00
|
|
|
FDetailWidgetRow& CategoryRow = PendingChangesCategory.AddCustomRow(Settings.CategoryHeading)
|
2014-09-18 22:10:53 -04:00
|
|
|
.Visibility(TAttribute<EVisibility>::Create(&SRequiredDefaultConfig::GetAnyPendingChangesVisibility))
|
|
|
|
|
.NameContent()
|
|
|
|
|
[
|
|
|
|
|
SNew(STextBlock)
|
|
|
|
|
.Text(Settings.CategoryHeading)
|
|
|
|
|
.ToolTipText(CategoryHeaderTooltip)
|
|
|
|
|
.Font(IDetailLayoutBuilder::GetDetailFont())
|
|
|
|
|
]
|
|
|
|
|
.ValueContent()
|
|
|
|
|
.MaxDesiredWidth(300.0f)
|
|
|
|
|
[
|
|
|
|
|
EditPropertiesBlock
|
|
|
|
|
];
|
|
|
|
|
}
|
2014-09-19 00:46:17 -04:00
|
|
|
|
|
|
|
|
Update();
|
2014-09-18 22:10:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CanApply() const
|
|
|
|
|
{
|
2014-09-19 00:01:10 -04:00
|
|
|
for (const auto& Watcher : FileWatcherWidgets)
|
2014-09-18 22:10:53 -04:00
|
|
|
{
|
2014-09-19 00:01:10 -04:00
|
|
|
if (!Watcher->IsUnlocked())
|
2014-09-18 22:10:53 -04:00
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
2014-09-19 00:01:10 -04:00
|
|
|
FileWatcherWidgets.Reset();
|
2014-09-22 09:41:38 -04:00
|
|
|
CheckoutNotices->ClearChildren();
|
2014-09-18 22:10:53 -04:00
|
|
|
|
|
|
|
|
IHardwareTargetingModule& Module = IHardwareTargetingModule::Get();
|
|
|
|
|
int32 SlotIndex = 0;
|
|
|
|
|
|
|
|
|
|
// Run thru the settings and push changes to the existing settings, as well as build a list of inis that will need to be edited
|
|
|
|
|
TSet<FString> SeenConfigFiles;
|
|
|
|
|
for (const FModifiedDefaultConfig& Settings : Module.GetPendingSettingsChanges())
|
|
|
|
|
{
|
|
|
|
|
if (!Settings.SettingsObject.IsValid())
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SettingRegions.FindChecked(Settings.SettingsObject)->SetText(Settings.Description);
|
|
|
|
|
|
- Generate AndroidManifest.xml from ProjectSettings
- Moved some Android settings to ProjectSettings, re-enabled SDK settings
- Removed SigningConfig.xml, and moved those settings into project settings
- Added concept of NotForLicensees and NoRedist engine and project config settings
- Removed BaseInternalGame.ini, replaced with NotForLicensees/BaseGame.ini
- Moved User*.ini to end of .ini hierarchy
- Added support for CLASS_GlobalUserConfig, so their settings will be saved to <AppData>/.../User*.ini (useful for SDK paths, etc)
- Enabled AndroidPlatformEditor module on Mac
- Changed Mac Build.sh to allow for Android on the commandline (just pass through if it's not an Xcode platform name)
- Iterative Android packaging now looks at just the important .ini sections, NOT entire .ini files
#codereview jamie.dale,james.moran,michael.trepka,robert.jones,chris.babcock
[CL 2413870 by Josh Adams in Main branch]
2015-01-21 11:17:55 -05:00
|
|
|
// @todo userconfig: Should we check for GlobalUserConfig here? It's not ever going to be checked in...
|
2020-09-01 14:07:48 -04:00
|
|
|
if (!Settings.SettingsObject->GetClass()->HasAnyClassFlags(CLASS_Config | CLASS_DefaultConfig /*| CLASS_GlobalUserConfig | CLASS_ProjectUserConfig*/))
|
2014-09-18 22:10:53 -04:00
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-19 00:01:10 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
FString ConfigFile = FPaths::ConvertRelativePathToFull(Settings.SettingsObject->GetDefaultConfigFilename());
|
2014-09-18 22:10:53 -04:00
|
|
|
|
|
|
|
|
if (!SeenConfigFiles.Contains(ConfigFile))
|
|
|
|
|
{
|
|
|
|
|
SeenConfigFiles.Add(ConfigFile);
|
|
|
|
|
|
2014-09-19 00:01:10 -04:00
|
|
|
TSharedRef<SSettingsEditorCheckoutNotice> FileWatcherWidget =
|
|
|
|
|
SNew(SSettingsEditorCheckoutNotice)
|
|
|
|
|
.ConfigFilePath(ConfigFile);
|
|
|
|
|
FileWatcherWidgets.Add(FileWatcherWidget);
|
2014-09-18 22:10:53 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
CheckoutNotices->AddSlot()
|
|
|
|
|
.Padding(FMargin(0.f, 0.f, 12.f, 5.f))
|
2014-09-18 22:10:53 -04:00
|
|
|
[
|
2014-09-19 00:01:10 -04:00
|
|
|
FileWatcherWidget
|
2014-09-18 22:10:53 -04:00
|
|
|
];
|
2014-09-19 00:01:10 -04:00
|
|
|
SlotIndex++;
|
2014-09-18 22:10:53 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-09-19 00:01:10 -04:00
|
|
|
|
|
|
|
|
TArray<TSharedPtr<SSettingsEditorCheckoutNotice>> FileWatcherWidgets;
|
2014-09-18 22:10:53 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
TSharedPtr<SVerticalBox> CheckoutNotices;
|
2014-09-18 22:10:53 -04:00
|
|
|
|
|
|
|
|
double LastStatusUpdate;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void FHardwareTargetingSettingsDetails::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder)
|
|
|
|
|
{
|
2014-09-19 18:15:39 -04:00
|
|
|
IDetailCategoryBuilder& HardwareTargetingCategory = DetailBuilder.EditCategory(TEXT("Target Hardware"));
|
2014-09-18 22:10:53 -04:00
|
|
|
IDetailCategoryBuilder& PendingChangesCategory = DetailBuilder.EditCategory(TEXT("Pending Changes"));
|
|
|
|
|
|
|
|
|
|
auto AnyPendingChangesVisible = []()->EVisibility{
|
|
|
|
|
auto* Settings = GetMutableDefault<UHardwareTargetingSettings>();
|
|
|
|
|
return Settings->HasPendingChanges() ? EVisibility::Visible : EVisibility::Collapsed;
|
|
|
|
|
};
|
|
|
|
|
auto NoPendingChangesVisible = []()->EVisibility{
|
|
|
|
|
auto* Settings = GetMutableDefault<UHardwareTargetingSettings>();
|
|
|
|
|
return Settings->HasPendingChanges() ? EVisibility::Collapsed : EVisibility::Visible;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TSharedRef<SRequiredDefaultConfig> ConfigWidget = SNew(SRequiredDefaultConfig);
|
|
|
|
|
IHardwareTargetingModule& HardwareTargeting = IHardwareTargetingModule::Get();
|
2014-12-01 11:19:41 -05:00
|
|
|
PendingChangesCategory.AddCustomRow(FText::GetEmpty())
|
2014-09-18 22:10:53 -04:00
|
|
|
[
|
|
|
|
|
SNew(SVerticalBox)
|
|
|
|
|
+ SVerticalBox::Slot()
|
|
|
|
|
[
|
|
|
|
|
SNew(SBox)
|
|
|
|
|
.Visibility_Static(AnyPendingChangesVisible)
|
|
|
|
|
[
|
|
|
|
|
ConfigWidget
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
+SVerticalBox::Slot()
|
|
|
|
|
[
|
|
|
|
|
SNew(SBox)
|
|
|
|
|
.Visibility_Static(NoPendingChangesVisible)
|
|
|
|
|
[
|
|
|
|
|
SNew(STextBlock)
|
|
|
|
|
.Font(DetailBuilder.GetDetailFont())
|
|
|
|
|
.Text(LOCTEXT("NoPendingChangesMessage", "There are no pending settings changes."))
|
2014-09-09 12:16:36 -04:00
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
|
2014-09-18 22:10:53 -04:00
|
|
|
ConfigWidget->Initialize(DetailBuilder, PendingChangesCategory);
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
TSharedPtr<SWidget> HardwareClassCombo, GraphicsPresetCombo;
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
// Setup the hardware class combo
|
2014-09-18 22:10:53 -04:00
|
|
|
{
|
2014-09-22 09:41:38 -04:00
|
|
|
auto PropertyName = GET_MEMBER_NAME_CHECKED(UHardwareTargetingSettings, TargetedHardwareClass);
|
|
|
|
|
DetailBuilder.HideProperty(PropertyName);
|
|
|
|
|
|
|
|
|
|
TSharedRef<IPropertyHandle> Property = DetailBuilder.GetProperty(PropertyName);
|
2021-02-09 15:02:56 -04:00
|
|
|
auto SetPropertyValue = [](EHardwareClass NewValue, TSharedRef<IPropertyHandle> InProperty){
|
2015-03-04 13:46:55 -05:00
|
|
|
InProperty->SetValue(uint8(NewValue));
|
2014-09-18 22:10:53 -04:00
|
|
|
};
|
2015-03-04 13:46:55 -05:00
|
|
|
auto GetPropertyValue = [](TSharedRef<IPropertyHandle> InProperty){
|
2014-09-18 22:10:53 -04:00
|
|
|
uint8 Value = 0;
|
2015-03-04 13:46:55 -05:00
|
|
|
InProperty->GetValue(Value);
|
2021-02-09 15:02:56 -04:00
|
|
|
return EHardwareClass(Value);
|
2014-09-18 22:10:53 -04:00
|
|
|
};
|
2014-09-22 09:41:38 -04:00
|
|
|
|
|
|
|
|
HardwareClassCombo = HardwareTargeting.MakeHardwareClassTargetCombo(
|
|
|
|
|
FOnHardwareClassChanged::CreateStatic(SetPropertyValue, Property),
|
2021-02-09 15:02:56 -04:00
|
|
|
TAttribute<EHardwareClass>::Create(TAttribute<EHardwareClass>::FGetter::CreateStatic(GetPropertyValue, Property))
|
2014-09-22 09:41:38 -04:00
|
|
|
);
|
2014-09-18 22:10:53 -04:00
|
|
|
}
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2014-09-22 09:41:38 -04:00
|
|
|
// Setup the graphics preset combo
|
2014-09-18 22:10:53 -04:00
|
|
|
{
|
2014-09-22 09:41:38 -04:00
|
|
|
auto PropertyName = GET_MEMBER_NAME_CHECKED(UHardwareTargetingSettings, DefaultGraphicsPerformance);
|
|
|
|
|
DetailBuilder.HideProperty(PropertyName);
|
|
|
|
|
|
|
|
|
|
TSharedRef<IPropertyHandle> Property = DetailBuilder.GetProperty(PropertyName);
|
2021-02-09 15:02:56 -04:00
|
|
|
auto SetPropertyValue = [](EGraphicsPreset NewValue, TSharedRef<IPropertyHandle> InProperty){
|
2015-03-04 13:46:55 -05:00
|
|
|
InProperty->SetValue(uint8(NewValue));
|
2014-09-18 22:10:53 -04:00
|
|
|
};
|
2015-03-04 13:46:55 -05:00
|
|
|
auto GetPropertyValue = [](TSharedRef<IPropertyHandle> InProperty){
|
2014-09-18 22:10:53 -04:00
|
|
|
uint8 Value = 0;
|
2015-03-04 13:46:55 -05:00
|
|
|
InProperty->GetValue(Value);
|
2021-02-09 15:02:56 -04:00
|
|
|
return EGraphicsPreset(Value);
|
2014-09-18 22:10:53 -04:00
|
|
|
};
|
2014-09-22 09:41:38 -04:00
|
|
|
GraphicsPresetCombo = HardwareTargeting.MakeGraphicsPresetTargetCombo(
|
|
|
|
|
FOnGraphicsPresetChanged::CreateStatic(SetPropertyValue, Property),
|
2021-02-09 15:02:56 -04:00
|
|
|
TAttribute<EGraphicsPreset>::Create(TAttribute<EGraphicsPreset>::FGetter::CreateStatic(GetPropertyValue, Property))
|
2014-09-22 09:41:38 -04:00
|
|
|
);
|
2014-09-18 22:10:53 -04:00
|
|
|
}
|
2014-09-09 12:16:36 -04:00
|
|
|
|
2021-02-09 15:02:56 -04:00
|
|
|
HardwareTargetingCategory.AddCustomRow(LOCTEXT("HardwareTargetingOption", "Targeted Hardware"))
|
2014-09-22 09:41:38 -04:00
|
|
|
.NameContent()
|
|
|
|
|
[
|
|
|
|
|
SNew(STextBlock)
|
2021-02-09 15:02:56 -04:00
|
|
|
.Text(LOCTEXT("OptimizeProjectFor", "Optimize project settings for"))
|
2014-09-22 09:41:38 -04:00
|
|
|
.Font(DetailBuilder.GetDetailFont())
|
|
|
|
|
]
|
|
|
|
|
.ValueContent()
|
|
|
|
|
.MaxDesiredWidth(0)
|
|
|
|
|
[
|
|
|
|
|
SNew(SHorizontalBox)
|
|
|
|
|
+ SHorizontalBox::Slot()
|
|
|
|
|
.Padding(FMargin(10.f, 0.f))
|
2021-02-09 15:02:56 -04:00
|
|
|
.VAlign(VAlign_Center)
|
2014-09-22 09:41:38 -04:00
|
|
|
.AutoWidth()
|
|
|
|
|
[
|
|
|
|
|
HardwareClassCombo.ToSharedRef()
|
|
|
|
|
]
|
|
|
|
|
+ SHorizontalBox::Slot()
|
|
|
|
|
.Padding(FMargin(0.f, 0.f, 10.f, 0.f))
|
2021-02-09 15:02:56 -04:00
|
|
|
.VAlign(VAlign_Center)
|
2014-09-22 09:41:38 -04:00
|
|
|
.AutoWidth()
|
|
|
|
|
[
|
|
|
|
|
GraphicsPresetCombo.ToSharedRef()
|
|
|
|
|
]
|
|
|
|
|
];
|
2014-09-09 12:16:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|