mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Disabled line splitting by default
This commit is contained in:
parent
a0810d0781
commit
59e0e5414f
@ -136,7 +136,7 @@ void UTypewriterTextWidget::StartPlayLine()
|
||||
{
|
||||
CalculateWrappedString(RemainingLinePart);
|
||||
|
||||
if (NumberOfLines > MaxNumberOfLines)
|
||||
if (MaxNumberOfLines > 0 && NumberOfLines > MaxNumberOfLines)
|
||||
{
|
||||
int MaxLength = CalculateMaxLength();
|
||||
int TerminatorIndex = FindLastTerminator(RemainingLinePart, MaxLength);
|
||||
|
@ -84,9 +84,9 @@ public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Typewriter")
|
||||
float PauseTimeAtSentenceTerminators = 0.5f;
|
||||
|
||||
/// How many lines of text at most to print at once.
|
||||
/// How many lines of text at most to print at once. (disabled by default)
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Typewriter")
|
||||
int MaxNumberOfLines = 3;
|
||||
int MaxNumberOfLines = 0;
|
||||
|
||||
/// Set Text immediately
|
||||
UFUNCTION(BlueprintCallable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user