* Debug console widget, designed to be summoned on top of a viewport or window */
| 7 | * Debug console widget, designed to be summoned on top of a viewport or window |
| 8 | */ |
| 9 | class SPythonConsole : public SCompoundWidget |
| 10 | { |
| 11 | public: |
| 12 | |
| 13 | SLATE_BEGIN_ARGS( SPythonConsole ) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | SLATE_END_ARGS() |
| 18 | |
| 19 | /** Constructs this widget */ |
| 20 | void Construct( const FArguments& InArgs, const EPythonConsoleStyle::Type InStyle, FPythonConsoleModule* PythonConsoleModule, const FPythonConsoleDelegates* PythonConsoleDelegates ); |
| 21 | |
| 22 | /** Call to set focus to this debug console's editable text box */ |
| 23 | void SetFocusToEditableText(); |
| 24 | |
| 25 | /** Default constructor */ |
| 26 | SPythonConsole(); |
| 27 | |
| 28 | |
| 29 | protected: |
| 30 | /** Returns EVisibility::Visible if style has log being shown, otherwise VIS_COLLAPSED */ |
| 31 | EVisibility MakeVisibleIfLogIsShown() const; |
| 32 | |
| 33 | /** Returns a color and opacity value to use based on any current animation */ |
| 34 | FLinearColor GetAnimatedColorAndOpacity() const; |
| 35 | |
| 36 | /** Returns a Slate color based on any current animation (same color as GetAnimatedColorAndOpacity) */ |
| 37 | FSlateColor GetAnimatedSlateColor() const; |
| 38 | |
| 39 | FSlateColor GetFlashColor() const; |
| 40 | private: |
| 41 | |
| 42 | /** Editable text box for this debug console's input line */ |
| 43 | TSharedPtr< SEditableTextBox > EditableTextBox; |
| 44 | |
| 45 | /** Current style of the debug console. Can be changed on the fly. */ |
| 46 | EPythonConsoleStyle::Type CurrentStyle; |
| 47 | |
| 48 | /** Intro/outro animation curve */ |
| 49 | FCurveSequence AnimCurveSequence; |
| 50 | FCurveHandle AnimCurve; |
| 51 | FCurveHandle FlashCurve; |
| 52 | }; |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected