Files
UnrealEngineUWP/Engine/Source/Developer/OutputLog/Private/SDebugConsole.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

54 lines
1.4 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* Debug console widget, designed to be summoned on top of a viewport or window
*/
class SDebugConsole : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS( SDebugConsole )
{
}
SLATE_END_ARGS()
/** Constructs this widget */
void Construct( const FArguments& InArgs, const EDebugConsoleStyle::Type InStyle, FOutputLogModule* OutputLogModule, const FDebugConsoleDelegates* DebugConsoleDelegates );
/** Call to set focus to this debug console's editable text box */
void SetFocusToEditableText();
/** Default constructor */
SDebugConsole();
protected:
/** Returns EVisibility::Visible if style has log being shown, otherwise VIS_COLLAPSED */
EVisibility MakeVisibleIfLogIsShown() const;
/** Returns a color and opacity value to use based on any current animation */
FLinearColor GetAnimatedColorAndOpacity() const;
/** Returns a Slate color based on any current animation (same color as GetAnimatedColorAndOpacity) */
FSlateColor GetAnimatedSlateColor() const;
FSlateColor GetFlashColor() const;
private:
/** Editable text box for this debug console's input line */
TSharedPtr< SEditableTextBox > EditableTextBox;
/** Current style of the debug console. Can be changed on the fly. */
EDebugConsoleStyle::Type CurrentStyle;
/** Intro/outro animation curve */
FCurveSequence AnimCurveSequence;
FCurveHandle AnimCurve;
FCurveHandle FlashCurve;
};