Files
UnrealEngineUWP/Engine/Source/Developer/OutputLog/Private/SDebugConsole.h
2014-03-14 14:13:41 -04:00

53 lines
1.3 KiB
C++

// Copyright 1998-2014 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 );
/** 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;
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 AnimCurve;
};