Space Plunder
Loading...
Searching...
No Matches
ChatTextFieldWidget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "ChatTextFieldWidget.generated.h"
8
9
10DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnSentChatMessage,const FString&, Text);
11
12
13UCLASS()
14class CHATSYSTEM_API UChatTextFieldWidget : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19
20 virtual void NativeConstruct() override;
21 virtual bool Initialize() override;
22
23 UPROPERTY(BlueprintAssignable, Category="Chat System|Widget")
24 FOnSentChatMessage OnSentChatMessage;
25
26 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category="Chat System|Widget")
27 void ToggleChat(bool bOpen);
28 UFUNCTION(BlueprintCallable, Category="Chat System|Widget")
29 void SetHintChatText(FString HintText);
30 UFUNCTION(Category="Chat System|Widget")
31 void OnChatTextCommitted(const FText& Text, ETextCommit::Type CommitType);
32
33 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
34 class UEditableText* ChatTextBox;
35 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget))
36 class UComboBoxString* CategoryComboBox;
37
38
39private:
40 void AddChatCategories();
41};
42
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnSentChatMessage, const FString &, Text)
Definition ChatTextFieldWidget.h:15