// Copyright Epic Games, Inc. All Rights Reserved. #include "Widgets/Deploy/SProjectLauncherDeployTaskSettings.h" #include "Fonts/SlateFontInfo.h" #include "Styling/CoreStyle.h" #include "SlateOptMacros.h" #include "Widgets/SOverlay.h" #include "Widgets/Layout/SGridPanel.h" #include "Widgets/Layout/SScrollBox.h" #include "Widgets/Layout/SSeparator.h" #include "Widgets/Text/STextBlock.h" #include "Widgets/Deploy/SProjectLauncherDeployPage.h" #include "Widgets/Launch/SProjectLauncherLaunchPage.h" #include "Widgets/Project/SProjectLauncherProjectPage.h" #define LOCTEXT_NAMESPACE "SProjectLauncherDeployTaskSettings" /* SProjectLauncherDeployTaskSettings structors *****************************************************************************/ SProjectLauncherDeployTaskSettings::~SProjectLauncherDeployTaskSettings() { } /* SProjectLauncherDeployTaskSettings interface *****************************************************************************/ BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION void SProjectLauncherDeployTaskSettings::Construct(const FArguments& InArgs, const TSharedRef& InModel) { Model = InModel; ChildSlot [ SNew(SOverlay) + SOverlay::Slot() .HAlign(HAlign_Fill) [ SNew(SScrollBox) + SScrollBox::Slot() .Padding(0.0f, 0.0f, 8.0f, 0.0f) [ SNew(SGridPanel) .FillColumn(1, 1.0f) // project section + SGridPanel::Slot(0, 0) .Padding(8.0f, 0.0f, 0.0f, 0.0f) .VAlign(VAlign_Top) [ SNew(STextBlock) .Font(FCoreStyle::GetDefaultFontStyle("Bold", 13)) .Text(LOCTEXT("ProjectSectionHeader", "Project")) ] + SGridPanel::Slot(1, 0) .Padding(32.0f, 0.0f, 8.0f, 0.0f) [ SNew(SProjectLauncherProjectPage, InModel) ] // deploy section + SGridPanel::Slot(0, 7) .ColumnSpan(3) .Padding(0.0f, 16.0f) [ SNew(SSeparator) .Orientation(Orient_Horizontal) ] + SGridPanel::Slot(0, 8) .Padding(8.0f, 0.0f, 0.0f, 0.0f) .VAlign(VAlign_Top) [ SNew(STextBlock) .Font(FCoreStyle::GetDefaultFontStyle("Bold", 13)) .Text(LOCTEXT("DeploySectionHeader", "Deploy")) ] + SGridPanel::Slot(1, 8) .Padding(32.0f, 0.0f, 8.0f, 0.0f) [ SNew(SProjectLauncherDeployPage, InModel, true) ] // launch section + SGridPanel::Slot(0, 9) .ColumnSpan(3) .Padding(0.0f, 16.0f) [ SNew(SSeparator) .Orientation(Orient_Horizontal) ] + SGridPanel::Slot(0, 10) .Padding(8.0f, 0.0f, 0.0f, 0.0f) .VAlign(VAlign_Top) [ SNew(STextBlock) .Font(FCoreStyle::GetDefaultFontStyle("Bold", 13)) .Text(LOCTEXT("LaunchSectionHeader", "Launch")) ] + SGridPanel::Slot(1, 10) .HAlign(HAlign_Fill) .Padding(32.0f, 0.0f, 8.0f, 0.0f) [ SNew(SProjectLauncherLaunchPage, InModel) ] ] ] ]; } END_SLATE_FUNCTION_BUILD_OPTIMIZATION #undef LOCTEXT_NAMESPACE