MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / Construct

Method Construct

Source/PythonConsole/Private/SPythonLog.cpp:159–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
160void 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}
176void SPythonConsoleInputBox::Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime)
177{
178 if (!GIntraFrameDebuggingGameThread && !IsEnabled())

Callers

nothing calls this directly

Calls 3

OnTextCommittedMethod · 0.80
SetPythonBoxMethod · 0.80

Tested by

no test coverage detected