Files
UnrealEngineUWP/Engine/Source/Editor/Persona/Private/ApexClothingOptionWindow.cpp
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

58 lines
1.6 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "ApexClothingOptionWindow.h"
#include "Widgets/Layout/SBorder.h"
#include "Widgets/Text/STextBlock.h"
#include "EditorStyleSet.h"
#include "Widgets/Layout/SUniformGridPanel.h"
#include "Widgets/Input/SButton.h"
#define LOCTEXT_NAMESPACE "ApexClothingOption"
void SApexClothingOptionWindow::Construct(const FArguments& InArgs)
{
WidgetWindow = InArgs._WidgetWindow;
ChildSlot
[
SNew(SBorder)
.BorderImage(FEditorStyle::GetBrush("ToolPanel.GroupBorder"))
[
SNew(SVerticalBox)
+SVerticalBox::Slot().AutoHeight() .Padding(5) .HAlign(HAlign_Center)
[
SNew(STextBlock)
.Text( FText::Format( LOCTEXT("MultiLODsExplanation", "This asset has {0} LODs.\nYou can enable or diable clothing LOD by \"Enable Clothing LOD\" check box in Materials section."), FText::AsNumber( InArgs._NumLODs ) ) )
]
+SVerticalBox::Slot().AutoHeight() .Padding(5) .HAlign(HAlign_Center)
[
InArgs._ApexDetails->AsShared()
]
+SVerticalBox::Slot().AutoHeight() .Padding(5) .HAlign(HAlign_Center)
[
SNew(SHorizontalBox)
+SHorizontalBox::Slot() .FillWidth(1)
[
SNew(SButton)
.HAlign(HAlign_Center)
.Text(LOCTEXT("ApexClothingOption_Import", "Import"))
.OnClicked(this, &SApexClothingOptionWindow::OnImport)
]
+SHorizontalBox::Slot() .FillWidth(1)
[
SNew(SButton)
.HAlign(HAlign_Center)
.Text(LOCTEXT("ApexClothingOption_Cancel", "Cancel"))
.OnClicked(this, &SApexClothingOptionWindow::OnCancel)
]
]
]
];
}
#undef LOCTEXT_NAMESPACE