You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Removed redundant private include paths from build.cs files. Fixed include paths to be relative to the private or public folders. Hid or removed includes that reached into other private module folders. Updated PublicInclude paths when necessary. #jira #preflight 631e281694758d0bf2ea1399 [CL 21960082 by bryan sefcik in ue5-main branch]
83 lines
2.1 KiB
C++
83 lines
2.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "OutputLogStyle.h"
|
|
#include "Styling/SlateStyle.h"
|
|
#include "Styling/SlateStyleMacros.h"
|
|
#include "Styling/SlateTypes.h"
|
|
#include "OutputLogSettings.h"
|
|
#include "Styling/StyleColors.h"
|
|
#include "Styling/StarshipCoreStyle.h"
|
|
#include "Styling/SlateStyleRegistry.h"
|
|
#include "Styling/CoreStyle.h"
|
|
|
|
FName FOutputLogStyle::StyleName("OutputLogStyle");
|
|
TUniquePtr<FOutputLogStyle> FOutputLogStyle::Inst(nullptr);
|
|
|
|
const FName& FOutputLogStyle::GetStyleSetName() const
|
|
{
|
|
return StyleName;
|
|
}
|
|
|
|
const FOutputLogStyle& FOutputLogStyle::Get()
|
|
{
|
|
if (!Inst.IsValid())
|
|
{
|
|
Inst = TUniquePtr<FOutputLogStyle>(new FOutputLogStyle);
|
|
}
|
|
return *(Inst.Get());
|
|
}
|
|
|
|
void FOutputLogStyle::Shutdown()
|
|
{
|
|
Inst.Reset();
|
|
}
|
|
|
|
FOutputLogStyle::FOutputLogStyle()
|
|
: FSlateStyleSet(StyleName)
|
|
{
|
|
const FVector2D Icon16x16(16.0f, 16.0f);
|
|
const FVector2D Icon20x20(20.0f, 20.0f);
|
|
|
|
SetParentStyleName(FAppStyle::GetAppStyleSetName());
|
|
|
|
SetContentRoot(FPaths::EngineContentDir() / TEXT("Slate"));
|
|
|
|
// Output Log Window
|
|
{
|
|
const UOutputLogSettings* Settings = GetDefault<UOutputLogSettings>();
|
|
|
|
const int32 LogFontSize = Settings ? Settings->LogFontSize : 9;
|
|
|
|
FTextBlockStyle NormalText = FAppStyle::GetWidgetStyle<FTextBlockStyle>("NormalText");
|
|
|
|
const FTextBlockStyle NormalLogText = FTextBlockStyle(NormalText)
|
|
.SetFont(DEFAULT_FONT("Mono", LogFontSize))
|
|
.SetColorAndOpacity(FStyleColors::Foreground)
|
|
.SetSelectedBackgroundColor(FStyleColors::Highlight)
|
|
.SetHighlightColor(FStyleColors::Black);
|
|
|
|
Set("Log.Normal", NormalLogText);
|
|
|
|
Set("Log.Command", FTextBlockStyle(NormalLogText)
|
|
.SetColorAndOpacity(FStyleColors::AccentGreen)
|
|
);
|
|
|
|
Set("Log.Warning", FTextBlockStyle(NormalLogText)
|
|
.SetColorAndOpacity(FStyleColors::Warning)
|
|
);
|
|
|
|
Set("Log.Error", FTextBlockStyle(NormalLogText)
|
|
.SetColorAndOpacity(FStyleColors::Error)
|
|
);
|
|
|
|
Set("DebugConsole.Icon", new IMAGE_BRUSH_SVG("Starship/Common/Console", Icon16x16));
|
|
}
|
|
|
|
FSlateStyleRegistry::RegisterSlateStyle(*this);
|
|
}
|
|
|
|
FOutputLogStyle::~FOutputLogStyle()
|
|
{
|
|
FSlateStyleRegistry::UnRegisterSlateStyle(*this);
|
|
}
|