45 virtual void DeinitializePresenter()
override;
50 UFUNCTION(BlueprintCallable, Category =
"Cutscene")
51 void StartCutscene(
const TArray<FDT_ScenarioCutsceneTable>& InCutsceneRows);
54 UFUNCTION(BlueprintCallable, Category =
"Cutscene|Input")
55 void AdvanceCutscene();
58 UFUNCTION(BlueprintCallable, Category =
"Cutscene|Input")
62 UFUNCTION(BlueprintCallable, Category =
"Cutscene|Input")
66 UFUNCTION(BlueprintCallable, Category =
"Cutscene|Input")
67 void ConfirmSkipHold();
70 UFUNCTION(BlueprintPure, Category =
"Cutscene|Input")
71 bool IsCutsceneInputAvailable()
const;
79 UFUNCTION(BlueprintCallable, Category =
"Cutscene|Input")
80 FORCEINLINE
void CancelSkipHold()
87 UFUNCTION(BlueprintCallable, Category =
"Cutscene")
88 FORCEINLINE
void ConfigureTypewriter(
bool bInUseTypewriter,
float InCharactersPerSecond)
90 bUseTypewriter = bInUseTypewriter;
91 CharactersPerSecond = FMath::Max(InCharactersPerSecond, 1.0f);
95 UFUNCTION(BlueprintPure, Category =
"Cutscene")
96 FORCEINLINE
bool IsCutsceneFinished()
const
102 UFUNCTION(BlueprintPure, Category =
"Cutscene")
105 return CutsceneState;
112 UPROPERTY(BlueprintAssignable, Category =
"Cutscene|Events")
113 FOnScenarioCutsceneStarted OnCutsceneStarted;
115 UPROPERTY(BlueprintAssignable, Category = "Cutscene|Events")
116 FOnScenarioCutsceneLineChanged OnCutsceneLineChanged;
118 UPROPERTY(BlueprintAssignable, Category = "Cutscene|Events")
119 FOnScenarioCutsceneDialogTextChanged OnCutsceneDialogTextChanged;
121 UPROPERTY(BlueprintAssignable, Category = "Cutscene|Events")
122 FOnScenarioCutsceneWaitingInput OnCutsceneWaitingInput;
124 UPROPERTY(BlueprintAssignable, Category = "Cutscene|Events")
125 FOnScenarioCutsceneFinished OnCutsceneFinished;
130 void ShowCurrentLine();
133 bool UpdateTyping(
float DeltaTime);
134 void FinishTypingCurrentLine();
135 void FinishCutscene();
139 FTSTicker::FDelegateHandle TypingTicker;
141 FText CurrentDialogText;
144 int32 CurrentRowIndex = INDEX_NONE;
145 bool bUseTypewriter = false;
146 bool bInputEnabled = false;
147 bool bSkipArmed = false;
148 float CharactersPerSecond = 40.0f;
149 float TypingProgress = 0.0f;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(FOnScenarioCutsceneLineChanged, const FDT_ScenarioCutsceneTable &, CutsceneRow, const FText &, SpeakerNameText, const FText &, DialogTextValue, const FText &, CutscenePathText)
Definition RichTextEffectParser.h:46