| 157 | } |
| 158 | |
| 159 | BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION |
| 160 | void SPythonConsoleInputBox::Construct(const FArguments& InArgs) |
| 161 | { |
| 162 | OnConsoleCommandExecuted = InArgs._OnConsoleCommandExecuted; |
| 163 | |
| 164 | ChildSlot |
| 165 | [ |
| 166 | |
| 167 | SAssignNew(InputText, SPythonConsoleEditableTextBox) |
| 168 | .OnTextCommitted(this, &SPythonConsoleInputBox::OnTextCommitted) |
| 169 | .HintText(NSLOCTEXT("PythonConsole", "TypeInConsoleHint", "Enter python command")) |
| 170 | |
| 171 | ]; |
| 172 | |
| 173 | SPythonConsoleEditableTextBox *TextBox = (SPythonConsoleEditableTextBox *)InputText.Get(); |
| 174 | TextBox->SetPythonBox(this); |
| 175 | } |
| 176 | void SPythonConsoleInputBox::Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) |
| 177 | { |
| 178 | if (!GIntraFrameDebuggingGameThread && !IsEnabled()) |
nothing calls this directly
no test coverage detected