Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
MessengerWidget.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CK_UE.h"
6#include "UI/UserWidgetBase.h"
9#include "MessengerWidget.generated.h"
10
13class UTexture2D;
14
19UCLASS()
21{
22 GENERATED_BODY()
23
24public:
25 virtual void HandleStageEvent_Implementation(const FStageEventMessage& Message, const FInstancedStruct& ListenerContext) override;
26 virtual bool ShouldReceiveStageEvent_Implementation(const FStageEventMessage& Message, const FInstancedStruct& ListenerContext) override;
27
28 virtual void BindPresenter_Implementation(UObject* Presenter) override;
29 virtual void UnbindPresenter_Implementation(UObject* Presenter) override;
30
31public:
32 UFUNCTION(BlueprintCallable, Category = "Dialog")
33 void ToggleDialog();
34
35 UFUNCTION(BlueprintCallable, Category = "Dialog")
36 void OpenScenario(FName InScenarioID);
37
38 UFUNCTION(BlueprintImplementableEvent, Category = "Dialog")
39 void SetDialogOpen(bool bOpen);
40
41 UFUNCTION(BlueprintCallable, Category = "Dialog")
42 void AddDialogLine(const FDT_MessengeTable& Row, UTexture2D* ProfileIcon, bool bPlayer, bool bAnimate);
43
44 UFUNCTION(BlueprintImplementableEvent, Category = "Dialog")
45 void AddDialogSeparator(const FText& Title);
46
47 UFUNCTION(BlueprintImplementableEvent, Category = "Dialog")
48 void SetDialogComplete(bool bComplete);
49
50 UFUNCTION(BlueprintImplementableEvent, Category = "Dialog")
51 void ResetDialogHistory();
52
53protected:
54 // 생성된 버블을 대화 목록에 배치한다.
55 UFUNCTION(BlueprintImplementableEvent, Category = "Dialog")
56 void AddChatBubble(UMessengerChatBubbleWidget* ChatBubble);
57
58protected:
59 virtual void OnWidgetStateChanged(EWidgetState InState) override;
60 virtual void NativeConstruct() override;
61
62private:
63 UFUNCTION()
64 void RefreshView();
65 void RestoreView(UMessengerPresenter* Presenter);
66
67protected:
68 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Dialog", meta = (ExposeOnSpawn = "true"))
69 FName ScenarioID = NAME_None;
70
71 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Dialog")
72 TSubclassOf<UMessengerChatBubbleWidget> ChatBubbleClass;
73
74private:
75 TWeakObjectPtr<UMessengerPresenter> DialogPresenter;
76};
EWidgetState
Definition UserWidgetBase.h:21
Definition StageEventBehaviorInterface.h:22
Definition MessengerChatBubbleWidget.h:19
Definition MessengerPresenter.h:31
Definition MessengerWidget.h:21
Definition UserWidgetBase.h:35
Definition DT_MessengeTable.h:10
Definition StageEventMessage.h:14