Files
UnrealEngineUWP/Engine/Source/Developer/NewLogVisualizer/Private/LogVisualizerSettings.cpp
sebastian kowalczyk fbffec87ca LogVisualization improvements integrated from Dev to Main:
- Added toggle button to LogVisualizer's toolbar, to toggle graphs 2d visualization
- User can change background color for 2d graphs in LogVisualizer's settings

[CL 2383386 by sebastian kowalczyk in Main branch]
2014-12-10 09:28:26 -05:00

35 lines
977 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "LogVisualizer.h"
#include "Misc/CoreMisc.h"
#include "LogVisualizerSettings.h"
#if WITH_EDITOR
#include "Editor/EditorEngine.h"
#include "ISettingsModule.h"
#include "GeometryEdMode.h"
#include "UnrealEdMisc.h"
#endif // WITH_EDITOR
ULogVisualizerSettings::ULogVisualizerSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
TrivialLogsThreshold = 1;
DefaultCameraDistance = 150;
bSearchInsideLogs = true;
GraphsBackgroundColor = FColor(0, 0, 0, 70);
}
#if WITH_EDITOR
void ULogVisualizerSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
if (!FUnrealEdMisc::Get().IsDeletePreferences())
{
SaveConfig();
}
SettingChangedEvent.Broadcast(Name);
}
#endif