mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Add details of the letter that was added to the event
This commit is contained in:
parent
79e694fb40
commit
f7065721e0
@ -160,11 +160,12 @@ void UTypewriterTextWidget::PlayNextLetter()
|
|||||||
OnTypewriterRunNameChanged.Broadcast(this, NewRunName);
|
OnTypewriterRunNameChanged.Broadcast(this, NewRunName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OnPlayLetter();
|
||||||
|
OnTypewriterLetterAdded.Broadcast(this, WrappedString.Right(1));
|
||||||
|
|
||||||
// TODO: How do we keep indexing of text i18n-friendly?
|
// TODO: How do we keep indexing of text i18n-friendly?
|
||||||
if (CurrentLetterIndex < MaxLetterIndex)
|
if (CurrentLetterIndex < MaxLetterIndex)
|
||||||
{
|
{
|
||||||
OnPlayLetter();
|
|
||||||
OnTypewriterLetterAdded.Broadcast(this);
|
|
||||||
++CurrentLetterIndex;
|
++CurrentLetterIndex;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTypewriterLineFinished, class UTypewriterTextWidget*, Widget);
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTypewriterLineFinished, class UTypewriterTextWidget*, Widget);
|
||||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTypewriterLetterAdded, class UTypewriterTextWidget*, Widget);
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnTypewriterLetterAdded, class UTypewriterTextWidget*, Widget, const FString&, Char);
|
||||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnTypewriterRunNameChanged, class UTypewriterTextWidget*, Widget, const FString&, NewRunName);
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnTypewriterRunNameChanged, class UTypewriterTextWidget*, Widget, const FString&, NewRunName);
|
||||||
/**
|
/**
|
||||||
* A text block that exposes more information about text layout for typewriter widget.
|
* A text block that exposes more information about text layout for typewriter widget.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user