Space Plunder
Loading...
Searching...
No Matches
CommonButtonWithText.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 "CommonButtonBase.h"
7#include "CommonButtonWithText.generated.h"
8
12UCLASS()
13class COMMONUISTYLE_API UCommonButtonWithText : public UCommonButtonBase
14{
15 GENERATED_BODY()
16
17public:
18
19 UFUNCTION(BlueprintCallable, Category="Button")
20 void SetText(const FText& Text);
21 UFUNCTION(BlueprintCallable, Category="Button")
22 void SetAction();
23
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Button|General")
25 FText TextContent;
26 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Button|General")
27 bool bUseAction = true;
28
29
30protected:
31
32 virtual bool Initialize() override;
33 virtual void NativePreConstruct() override;
34 virtual void NativeConstruct() override;
35
36 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Button|Components")
37 class UTextBlock* TextBlock;
38
39};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition CommonButtonWithText.h:14