| 12 | } |
| 13 | |
| 14 | BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION |
| 15 | |
| 16 | void SPythonConsole::Construct( const FArguments& InArgs, const EPythonConsoleStyle::Type InStyle, FPythonConsoleModule* PythonConsoleModule, const FPythonConsoleDelegates* PythonConsoleDelegates ) |
| 17 | { |
| 18 | CurrentStyle = InStyle; |
| 19 | |
| 20 | TSharedPtr<SPythonConsoleInputBox> ConsoleInputBox; |
| 21 | |
| 22 | check( PythonConsoleModule != NULL ); |
| 23 | ChildSlot |
| 24 | [ |
| 25 | SNew( SVerticalBox ) |
| 26 | +SVerticalBox::Slot() |
| 27 | .AutoHeight() |
| 28 | [ |
| 29 | SNew( SVerticalBox ) |
| 30 | .Visibility( this, &SPythonConsole::MakeVisibleIfLogIsShown ) |
| 31 | |
| 32 | +SVerticalBox::Slot() |
| 33 | .AutoHeight() |
| 34 | .Padding( 10.0f ) |
| 35 | [ |
| 36 | SNew(SBox) |
| 37 | .HeightOverride( 200.0f ) |
| 38 | [ |
| 39 | SNew( SBorder ) |
| 40 | .BorderImage( FEditorStyle::GetBrush( "ToolPanel.GroupBorder" ) ) |
| 41 | .ColorAndOpacity( this, &SPythonConsole::GetAnimatedColorAndOpacity ) |
| 42 | .BorderBackgroundColor( this, &SPythonConsole::GetAnimatedSlateColor ) |
| 43 | [ |
| 44 | SNew( SSpacer ) |
| 45 | ] |
| 46 | ] |
| 47 | ] |
| 48 | ] |
| 49 | |
| 50 | +SVerticalBox::Slot() |
| 51 | .AutoHeight() |
| 52 | .Padding( 10.0f ) |
| 53 | [ |
| 54 | SNew(SBox) |
| 55 | .HeightOverride( 26.0f ) |
| 56 | .HAlign( HAlign_Left ) |
| 57 | [ |
| 58 | SNew( SBorder ) |
| 59 | .Padding( FMargin(2) ) |
| 60 | .BorderImage( FEditorStyle::GetBrush( "PythonConsole.Background" ) ) |
| 61 | .ColorAndOpacity( this, &SPythonConsole::GetAnimatedColorAndOpacity ) |
| 62 | .BorderBackgroundColor( this, &SPythonConsole::GetAnimatedSlateColor ) |
| 63 | [ |
| 64 | SNew(SHorizontalBox) |
| 65 | + SHorizontalBox::Slot() |
| 66 | .AutoWidth() |
| 67 | .Padding(3.0f) |
| 68 | .VAlign(VAlign_Center) |
| 69 | [ |
| 70 | SNew(STextBlock) |
| 71 | .Text(NSLOCTEXT("Console", "ConsoleLabel", "Console")) |
nothing calls this directly
no test coverage detected