Files
LuckyWorld/Source/LuckyWorldV2/Public/UI/Common/TextFieldUserWidget.h
martinluckyrobots a1bdd76447 Optimizing the code
2025-04-21 13:06:01 +08:00

43 lines
995 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "TextFieldUserWidget.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnEditText, FString, editstr);
/**
*
*/
UCLASS()
class LUCKYWORLDV2_API UTextFieldUserWidget : public UUserWidget
{
GENERATED_BODY()
protected:
virtual void NativeConstruct() override;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
FString SettingFieldLabel;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
UTexture2D* SettingIcon;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
FString SettingString;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
FLinearColor SettingColor;
public:
UPROPERTY(BlueprintCallable, BlueprintAssignable)
FOnEditText OnEditText;
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void UpdateDisplay();
};