KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UWordButton.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "Components/Button.h"
8#include "Components/TextBlock.h"
9#include "UWordButton.generated.h"
10
16UCLASS()
17class ONEPIECE_API UWordButton : public UUserWidget
18{
19 GENERATED_BODY()
20
21public:
22 // ~ Begin UUserWidget Interface
23 virtual void NativeConstruct() override;
24 // ~ End UUserWidget Interface
25
31 void InitializeWordButton(const FString& InText, int32 InIndex);
32
36 int32 GetIndex() const { return Index; }
37
38protected:
40 UPROPERTY(meta = (BindWidget))
41 UButton* Btn_Word;
42
44 UPROPERTY(meta = (BindWidget))
45 UTextBlock* Txt_Word;
46
48 int32 Index = 0;
49
53 UFUNCTION()
54 void OnButtonClicked();
55
56public:
60 DECLARE_MULTICAST_DELEGATE_OneParam(FOnWordButtonClicked, int32 /*Index*/);
61 FOnWordButtonClicked OnWordButtonClicked;
62};
단어 버튼 위젯
Definition UWordButton.h:18
int32 GetIndex() const
버튼 인덱스 가져오기
Definition UWordButton.h:36