Files
UnrealEngine/Engine/Source/Editor/AddContentDialog/Private/SAddContentDialog.cpp
2025-05-18 13:04:45 +08:00

39 lines
889 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SAddContentDialog.h"
#include "Internationalization/Internationalization.h"
#include "Layout/Margin.h"
#include "Math/Vector2D.h"
#include "Misc/Attribute.h"
#include "SAddContentWidget.h"
#include "Styling/AppStyle.h"
#include "Widgets/Layout/SBorder.h"
#define LOCTEXT_NAMESPACE "AddContentDialog"
void SAddContentDialog::Construct(const FArguments& InArgs)
{
SWindow::Construct(SWindow::FArguments()
.Title(LOCTEXT("AddContentDialogTitle", "Add Content to the Project"))
.SizingRule(ESizingRule::UserSized)
.ClientSize(FVector2D(900, 500))
.SupportsMinimize(false)
.SupportsMaximize(false)
[
SNew(SBorder)
.BorderImage(FAppStyle::GetBrush("Brushes.Panel"))
.Padding(FMargin(10,0))
[
SNew(SAddContentWidget)
]
]);
}
SAddContentDialog::~SAddContentDialog()
{
}
#undef LOCTEXT_NAMESPACE