You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira none #rb sebastian.nordgren #preflight 6295f14f926be5fb68b3e29a [CL 20435453 by George Rolfe in ue5-main branch]
25 lines
836 B
C++
25 lines
836 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "STemplateStringEditableTextBox.h"
|
|
|
|
#include "EditorWidgetsStyle.h"
|
|
#include "SlateOptMacros.h"
|
|
#include "TemplateStringSyntaxHighlighterMarshaller.h"
|
|
|
|
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
|
|
|
|
void STemplateStringEditableTextBox::Construct(const FArguments& InArgs)
|
|
{
|
|
SMultiLineEditableTextBox::Construct(SMultiLineEditableTextBox::FArguments()
|
|
.TextStyle(&FEditorWidgetsStyle::Get().GetWidgetStyle<FTextBlockStyle>("TextEditor.NormalText"))
|
|
.Text(InArgs._Text)
|
|
.Marshaller(FTemplateStringSyntaxHighlighterMarshaller::Create(FTemplateStringSyntaxHighlighterMarshaller::FSyntaxTextStyle()))
|
|
.AllowMultiLine(false)
|
|
.OverflowPolicy(ETextOverflowPolicy::Ellipsis)
|
|
.Margin(0.0f)
|
|
.OnTextChanged(InArgs._OnTextChanged)
|
|
);
|
|
}
|
|
|
|
END_SLATE_FUNCTION_BUILD_OPTIMIZATION
|