From d582b938fa789960bce4282494d206b42e78aa3b Mon Sep 17 00:00:00 2001 From: wonkyhonky2024 Date: Thu, 8 May 2025 22:20:32 +0100 Subject: [PATCH] fix colors in therac ui widget; start working on magical floats --- Content/LinacLab/MyMyUserWidget.uasset | 4 ++-- Source/MyProject/Private/MagicFloatInput.cpp | 6 ++++++ Source/MyProject/Public/MagicFloatInput.h | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 Source/MyProject/Private/MagicFloatInput.cpp create mode 100644 Source/MyProject/Public/MagicFloatInput.h diff --git a/Content/LinacLab/MyMyUserWidget.uasset b/Content/LinacLab/MyMyUserWidget.uasset index a1307bf..453324b 100644 --- a/Content/LinacLab/MyMyUserWidget.uasset +++ b/Content/LinacLab/MyMyUserWidget.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:feda1d037bfd9666e01dd141fe76c9fcf35323c56ccac466094a9fe32ddab3e7 -size 75213 +oid sha256:9f16ddc1967573fd574e58cd940df5b2aba5f593f19e7f62980a1f986b6eea87 +size 96905 diff --git a/Source/MyProject/Private/MagicFloatInput.cpp b/Source/MyProject/Private/MagicFloatInput.cpp new file mode 100644 index 0000000..5e4f32f --- /dev/null +++ b/Source/MyProject/Private/MagicFloatInput.cpp @@ -0,0 +1,6 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "MagicFloatInput.h" + +void UMagicFloatInput::HandleOnTextCommitted(const FText& inText, ETextCommit::Type inCommitMethod) {} \ No newline at end of file diff --git a/Source/MyProject/Public/MagicFloatInput.h b/Source/MyProject/Public/MagicFloatInput.h new file mode 100644 index 0000000..fe7349f --- /dev/null +++ b/Source/MyProject/Public/MagicFloatInput.h @@ -0,0 +1,18 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Components/EditableTextBox.h" +#include "MagicFloatInput.generated.h" + +/** + * + */ +UCLASS() +class MYPROJECT_API UMagicFloatInput : public UEditableTextBox +{ + GENERATED_BODY() + + void HandleOnTextCommitted(const FText& Text, ETextCommit::Type CommitMethod) override; +};