From 4045ee4707aae60d7246e7310c88bf3e6beffc51 Mon Sep 17 00:00:00 2001 From: wonkyhonky2024 Date: Fri, 9 May 2025 16:18:28 +0100 Subject: [PATCH] hng --- .clang-format | 2 +- Source/MyProject/Public/MagicFloatInput.h | 1 + Source/MyProject/Public/ModeInputTextBox.h | 1 + Source/MyProject/Public/MyPlayerState.h | 9 ++++----- Source/MyProject/Public/MyUserWidget.h | 3 ++- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.clang-format b/.clang-format index 7475ac3..34cad14 100644 --- a/.clang-format +++ b/.clang-format @@ -18,7 +18,7 @@ BreakBeforeBinaryOperators: NonAssignment BreakConstructorInitializers: BeforeComma InsertNewlineAtEOF: true KeepEmptyLinesAtEOF: true -KeepEmptyLinesAtTheStartOfBlocks: false +KeepEmptyLinesAtTheStartOfBlocks: true PackConstructorInitializers: Never PointerAlignment: Middle QualifierAlignment: Right diff --git a/Source/MyProject/Public/MagicFloatInput.h b/Source/MyProject/Public/MagicFloatInput.h index d22e05f..c65fe96 100644 --- a/Source/MyProject/Public/MagicFloatInput.h +++ b/Source/MyProject/Public/MagicFloatInput.h @@ -11,6 +11,7 @@ */ UCLASS() class MYPROJECT_API UMagicFloatInput : public UEditableTextBox { + GENERATED_BODY() void HandleOnTextCommitted( diff --git a/Source/MyProject/Public/ModeInputTextBox.h b/Source/MyProject/Public/ModeInputTextBox.h index 2a05e22..91cf02b 100644 --- a/Source/MyProject/Public/ModeInputTextBox.h +++ b/Source/MyProject/Public/ModeInputTextBox.h @@ -11,6 +11,7 @@ */ UCLASS() class MYPROJECT_API UModeInputTextBox : public UEditableTextBox { + GENERATED_BODY() void HandleOnTextChanged(FText const & inText) override; diff --git a/Source/MyProject/Public/MyPlayerState.h b/Source/MyProject/Public/MyPlayerState.h index 750e515..562bfa7 100644 --- a/Source/MyProject/Public/MyPlayerState.h +++ b/Source/MyProject/Public/MyPlayerState.h @@ -7,11 +7,10 @@ #include "MyPlayerState.generated.h" /** - * + * */ UCLASS() -class MYPROJECT_API AMyPlayerState : public APlayerState -{ - GENERATED_BODY() - +class MYPROJECT_API AMyPlayerState : public APlayerState { + + GENERATED_BODY() }; diff --git a/Source/MyProject/Public/MyUserWidget.h b/Source/MyProject/Public/MyUserWidget.h index 1f49da0..21431e9 100644 --- a/Source/MyProject/Public/MyUserWidget.h +++ b/Source/MyProject/Public/MyUserWidget.h @@ -4,14 +4,15 @@ #include "Blueprint/UserWidget.h" #include "CoreMinimal.h" -#include "MyUserWidget.generated.h" #include +#include "MyUserWidget.generated.h" /** * */ UCLASS() class MYPROJECT_API UMyUserWidget : public UUserWidget { + GENERATED_BODY() UPROPERTY(meta = (BindWidget))