Space Plunder
Loading...
Searching...
No Matches
CommonCheckbox.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 "CommonWidgetBase.h"
7#include "Blueprint/UserWidget.h"
8#include "CommonCheckbox.generated.h"
9
10class UCheckBox;
11class UTextBlock;
12
13
14
18UCLASS()
19class COMMONUISTYLE_API UCommonCheckbox : public UCommonWidgetBase
20{
21 GENERATED_BODY()
22
23public:
24
25 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Common UI")
26 bool bShowTitle = true;
27 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Common UI")
28 FText Title = FText::FromString("Title Text");
29 UFUNCTION(BlueprintCallable, Category="Common UI")
30 bool GetIsChecked() const {return bChecked;};
31 UFUNCTION(BlueprintCallable, Category="Common UI")
32 void SetIsChecked(const bool bValue);
33
34
35protected:
36
37 virtual bool Initialize() override;
38 virtual void NativePreConstruct() override;
39 virtual void NativeConstruct() override;
40 virtual void Setup() override;
41
42 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Common UI", meta=(BindWidget))
43 UCheckBox* Checkbox = nullptr;
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Common UI", meta=(BindWidget))
45 UTextBlock* TitleTextBlock = nullptr;
46
47
48private:
49 bool bChecked = false;
50 UFUNCTION()
51 void OnCheckStateChanged(const bool bValue);
52};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition CommonCheckbox.h:20
Definition CommonWidgetBase.h:20