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

Method ExtendTextBoxMenu

Source/PythonConsole/Private/SPythonLog.cpp:462–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void SPythonLog::ExtendTextBoxMenu(FMenuBuilder& Builder)
463{
464 FUIAction ClearPythonLogAction(
465 FExecuteAction::CreateRaw(this, &SPythonLog::OnClearLog),
466 FCanExecuteAction::CreateSP(this, &SPythonLog::CanClearLog)
467 );
468
469 Builder.AddMenuEntry(
470 NSLOCTEXT("PythonConsole", "ClearLogLabel", "Clear Log"),
471 NSLOCTEXT("PythonConsole", "ClearLogTooltip", "Clears all log messages"),
472 FSlateIcon(),
473 ClearPythonLogAction
474 );
475}
476
477void SPythonLog::OnClearLog()
478{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected