2025-05-08 22:20:32 +01:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Components/EditableTextBox.h"
|
2025-05-09 16:02:07 +01:00
|
|
|
#include "CoreMinimal.h"
|
2025-05-09 22:20:16 +01:00
|
|
|
#include <Components/TextBlock.h>
|
2025-05-08 22:20:32 +01:00
|
|
|
#include "MagicFloatInput.generated.h"
|
|
|
|
|
2025-05-09 23:18:45 +01:00
|
|
|
DECLARE_DELEGATE(FOnMagicFloatsMangledDelegate);
|
|
|
|
|
2025-05-08 22:20:32 +01:00
|
|
|
/**
|
2025-05-09 16:02:07 +01:00
|
|
|
*
|
2025-05-08 22:20:32 +01:00
|
|
|
*/
|
|
|
|
UCLASS()
|
2025-05-09 16:02:07 +01:00
|
|
|
class MYPROJECT_API UMagicFloatInput : public UEditableTextBox {
|
2025-05-09 16:18:28 +01:00
|
|
|
|
2025-05-09 16:02:07 +01:00
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
void HandleOnTextCommitted(
|
|
|
|
FText const & Text,
|
|
|
|
ETextCommit::Type CommitMethod
|
|
|
|
) override;
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere)
|
2025-05-09 22:20:16 +01:00
|
|
|
UTextBlock * sourceInput;
|
2025-05-09 23:18:45 +01:00
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere)
|
|
|
|
UTextBlock * myVerifier;
|
|
|
|
|
|
|
|
UFUNCTION()
|
|
|
|
void HandleMagicFloatsMangledEvent();
|
|
|
|
|
|
|
|
FOnMagicFloatsMangledDelegate OnMagicFloatsMangled;
|
2025-05-08 22:20:32 +01:00
|
|
|
};
|