Files
UnrealEngineUWP/Engine/Source/Editor/IntroTutorials/Private/STutorialLoading.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

50 lines
1.2 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "STutorialLoading.h"
#include "Fonts/SlateFontInfo.h"
#include "Misc/Paths.h"
#include "Widgets/SBoxPanel.h"
#include "Widgets/Layout/SBorder.h"
#include "Widgets/Text/STextBlock.h"
#include "EditorStyleSet.h"
#include "Widgets/Images/SThrobber.h"
#define LOCTEXT_NAMESPACE "Tutorials"
void STutorialLoading::Construct(const FArguments& InArgs)
{
ContextWindow = InArgs._ContextWindow;
ChildSlot
.VAlign(VAlign_Center)
.HAlign(HAlign_Center)
[
SNew(SBorder)
.VAlign(VAlign_Center)
.HAlign(HAlign_Center)
.BorderImage(FEditorStyle::GetBrush("ToolPanel.GroupBorder"))
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.VAlign(VAlign_Top)
.HAlign(HAlign_Center)
[
SNew(SCircularThrobber)
]
+ SVerticalBox::Slot()
.VAlign(VAlign_Top)
.HAlign(HAlign_Center)
[
SNew(STextBlock)
.ShadowColorAndOpacity(FLinearColor::Black)
.ColorAndOpacity(FLinearColor::White)
.ShadowOffset(FIntPoint(-1, 1))
.Font(FSlateFontInfo(FPaths::EngineContentDir() / TEXT("Slate/Fonts/Roboto-Regular.ttf"), 16))
.Text(LOCTEXT("LoadingContentTut", "Loading Tutorial Content"))
]
]
];
}
#undef LOCTEXT_NAMESPACE