Refactor dialogue system, move stuff to cpp and clean up BPs

This commit is contained in:
2026-08-15 18:55:56 +02:00
parent b73e9065d1
commit 2fe7f83a38
15 changed files with 281 additions and 57 deletions

View File

@@ -27,6 +27,8 @@ public:
virtual void NativeOnInitialized() override;
bool IsTypingDialogue() const { return bIsTypingDialogue; }
protected:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bIsAnimating = false;
@@ -51,11 +53,11 @@ protected:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 CurrentTypingDialogueIndex = 0;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, BlueprintCallable)
FOnDialogueOptionSelected OnDialogueOptionSelected;
public:
void AssignDialogueComponent(UDialogueComponent* InDialogueComponent) { DialogueComponent = InDialogueComponent; }
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
void SetDialogueOptionsPadding();
@@ -82,5 +84,7 @@ public:
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
void SetSpeakerName(const FText& NewSpeakerName);
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, BlueprintCallable)
FOnDialogueOptionSelected OnDialogueOptionSelected;
};