64 virtual void DeinitializePresenter()
override;
67 virtual bool ShouldReceiveStageEvent_Implementation(
const FStageEventMessage& Message,
const FInstancedStruct& ListenerContext)
override;
68 virtual void HandleStageEvent_Implementation(
const FStageEventMessage& Message,
const FInstancedStruct& ListenerContext)
override;
71 UFUNCTION(BlueprintCallable, Category =
"Dialog")
72 bool StartScenario(FName ScenarioID);
78 UFUNCTION(BlueprintCallable, Category =
"Dialog|Input")
82 UFUNCTION(BlueprintCallable, Category =
"Dialog|Input")
85 UFUNCTION(BlueprintCallable, Category =
"Dialog|Input")
86 void ConfirmSkipHold();
88 UFUNCTION(BlueprintCallable, Category =
"Dialog|Input")
89 FORCEINLINE
void CancelSkipHold()
95 UFUNCTION(BlueprintCallable, Category =
"Dialog|Input")
96 void SkipRemainingRows();
98 UFUNCTION(BlueprintPure, Category = "Dialog|Input")
99 bool IsDialogInputAvailable() const;
105 void CompletePresentation(int32 RequestID);
107 UFUNCTION(BlueprintPure, Category = "Dialog")
120 UPROPERTY(BlueprintAssignable, Category =
"Dialog|Events")
121 FOnDialogPresentationRequested OnPresentationRequested;
123 UPROPERTY(BlueprintAssignable, Category = "Dialog|Events")
124 FOnIllustratedDialogLineChanged OnLineChanged;
126 UPROPERTY(BlueprintAssignable, Category = "Dialog|Events")
127 FOnIllustratedDialogRefresh OnTextRefresh;
129 UPROPERTY(BlueprintAssignable, Category = "Dialog|Events")
130 FOnIllustratedDialogFinished OnDialogFinished;
133 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Dialog")
136 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Dialog", meta = (ClampMin = "1.0"))
137 float CharactersPerSecond = 40.0f;
141 void OnDataLoaded(TSharedPtr<FStreamableHandle> Handle);
142 void TryStartScenario();
143 void ShowCurrentRow();
144 void PresentCurrentRow();
148 bool UpdateTyping(
float DeltaTime);
154 void DispatchRowEvent(FName EventID);
163 TSharedPtr<FStreamableHandle> LoadHandle;
165 FTSTicker::FDelegateHandle TypingTicker;
167 FName CurrentCharacterID;
168 FName PendingEndEvent;
171 int32 PresentationID = 0;
172 float TypingProgress = 0.0f;
173 bool bCurrentPlayer = false;
174 bool bInputEnabled = false;
175 bool bSkipArmed = false;
176 bool bClosing = false;
177 bool bDispatching = false;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnDialogPresentationRequested, EDialogPresentation, Presentation, bool, bPlayer, int32, RequestID)
Definition RichTextEffectParser.h:46