5#include "Channel/ChatChannel.h"
6#include "Components/EditableText.h"
7#include "Components/PanelWidget.h"
8#include "Components/ScrollBox.h"
9#include "CoreMinimal.h"
10#include "Message/FadingMessageWidget.h"
11#include "StreamWidget.h"
13#include "FadingMessageListWidget.generated.h"
19class STREAMCHATUI_API UFadingMessageListWidget final : public UStreamWidget
24 UFUNCTION(BlueprintCallable, Category = "Stream Chat")
25 void Setup(
UChatChannel* InChannel, const FTimespan& InMessageLifetime);
29 UPROPERTY(meta = (BindWidget))
30 UScrollBox* MessagesScrollBox;
32 UPROPERTY(meta = (BindWidget))
33 UEditableText* ChatInputBox;
35 UPROPERTY(meta = (BindWidget))
36 UWidget* ChatInputVisual;
38 UPROPERTY(EditAnywhere, Category = Defaults)
39 FName OpenChatInputActionName = TEXT("Chat");
41 UPROPERTY(EditDefaultsOnly, NoClear, Category = Defaults)
42 TSubclassOf<UFadingMessageWidget> FadingMessageWidgetClass = UFadingMessageWidget::StaticClass();
44 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Setup)
45 FTimespan MessageLifetime = FTimespan::FromSeconds(20.f);
48 virtual
void NativeConstruct() override;
49 virtual
void NativeDestruct() override;
52 void MessagesUpdated();
55 void TextCommitted(const FText&
Text, ETextCommit::
Type CommitMethod);
The client-side representation of a Stream Chat channel.
Definition: ChatChannel.h:74
@ Text
Text of the message.
@ Type
Type of the message.