13UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent))
14class CHATSYSTEM_API UChatSystemComponent :
public UActorComponent
19 UChatSystemComponent();
21 UFUNCTION(BlueprintCallable, Category=
"Chat System")
22 void ToggleChatWindow(
bool bOpen);
23 UFUNCTION(BlueprintCallable, Category=
"Chat System")
25 UFUNCTION(BlueprintCallable, Category=
"Chat System")
26 void SetOwnerPlayerController(APlayerController* OwnerController){OwnerPlayerController = OwnerController;};
28 UFUNCTION(BlueprintCallable, Category=
"Chat System")
29 void SetChatBoxWidget(
class UChatBoxWidget* ChatBox){ChatBoxWidget = ChatBox;};
30 UFUNCTION(BlueprintPure, BlueprintCallable, Category=
"Chat System")
31 bool GetIsChatBoxOpen()
const {
return bChatOpen;};
33 UFUNCTION(BlueprintCallable, Category=
"Chat System")
34 void ComponentSetup();
38 UFUNCTION(
Server, Reliable, Category=
"Chat System")
40 UFUNCTION(NetMulticast, Reliable, Category=
"Chat System")
42 UFUNCTION(BlueprintCallable, Category=
"Chat System")
45 UFUNCTION(BlueprintCallable, Category=
"Chat System")
46 void CreateChatOverlayWidget();
49 UFUNCTION(BlueprintCallable, Category=
"Chat System")
52 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
53 void ClearChat()
const;
54 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
55 void ShowHelpCommands();
56 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
57 void MutePlayer(
const FString& Argument);
59 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
60 void SendTeamMessage(
const FString& Argument);
61 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
62 void SendPrivateMessage(
const FString& Argument);
63 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
64 void SendDirectMessage(
const FString& Argument);
65 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
66 void SendGuildMessage(
const FString& Argument);
68 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
69 void SendServerCommand(
const FString& Argument);
70 UFUNCTION(BlueprintCallable, Category=
"Chat System|Commands")
71 void SendClientCommand(
const FString& Argument);
75 UFUNCTION(BlueprintCallable, Category=
"Chat System")
76 void SendWelcomeMessage();
78 UFUNCTION(BlueprintCallable, Category=
"Chat System")
79 bool GetPlayerProfile();
81 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=
"Chat System|Hint")
83 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Hint")
84 FString OpenChatHintStart =
"Press";
85 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Hint")
86 FString OpenChatHintEnd =
"To Open Chat";
87 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Hint")
88 FString OpenChatKey =
"[Enter]";
89 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Join Message")
90 FString JoinMessageText =
"Welcome to the server!";
91 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Join Message")
92 FString HelpText =
"Commands \n /Help - Show Commands \n /Clear - Clear Chat \n /Server - Server Function \n /Client - Client Only Function \n /Direct [Player] - Direct Message Player \n /Private [Players] - Private message players \n /Team - Message Only Team \n /Guild - Message only Guild";
93 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Widget")
94 float TextLifetime = 15.0f;
96 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Join Message")
97 bool bShowWelcomeMessage =
false;
100 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=
"Chat System|Player")
103 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=
"Chat System|Player")
106 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=
"Chat System|Player")
107 bool bUsesHUDWidgets =
true;
108 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=
"Chat System|Debugging")
109 bool bDebuggingMode =
false;
118 bool bChatOpen =
false;
122 APlayerController* OwnerPlayerController;
124 UPROPERTY(EditAnywhere, Category=
"Chat System|Widget")
125 TSubclassOf<class UChatBoxWidget> ChatBoxWidgetClass;
126 UPROPERTY(EditAnywhere, Category=
"Chat System|Widget")
127 TSubclassOf<class UChatTextWidget> ChatTextWidgetClass;