more nonsense
This commit is contained in:
25
.clang-format
Normal file
25
.clang-format
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
AlignAfterOpenBracket: BlockIndent
|
||||||
|
AlignConsecutiveAssignments:
|
||||||
|
Enabled: true
|
||||||
|
AcrossEmptyLines: true
|
||||||
|
AcrossComments: true
|
||||||
|
AlignCompound: true
|
||||||
|
PadOperators: false
|
||||||
|
AlignEscapedNewlines: Left
|
||||||
|
AllowAllArgumentsOnNextLine: false
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
AllowShortBlocksOnASingleLine: Always
|
||||||
|
AllowShortEnumsOnASingleLine: false
|
||||||
|
BinPackArguments: false
|
||||||
|
BinPackParameters: false
|
||||||
|
BreakBeforeBinaryOperators: NonAssignment
|
||||||
|
BreakConstructorInitializers: BeforeComma
|
||||||
|
InsertNewlineAtEOF: true
|
||||||
|
KeepEmptyLinesAtEOF: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
PackConstructorInitializers: Never
|
||||||
|
PointerAlignment: Middle
|
||||||
|
QualifierAlignment: Right
|
||||||
|
ShortNamespaceLines: 0
|
13
.clang-tidy
Normal file
13
.clang-tidy
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
Checks: "*
|
||||||
|
,-llvmlibc*
|
||||||
|
,-*readability-braces-around-statements
|
||||||
|
,-hicpp-braces-around-statements
|
||||||
|
,-readability-identifier-length
|
||||||
|
,-fuchsia-default-arguments*
|
||||||
|
,-*-non-private-member-variables-in-classes
|
||||||
|
,-fuchsia-trailing-return
|
||||||
|
,-altera-unroll-loops"
|
||||||
|
WarningsAsErrors: ''
|
||||||
|
HeaderFilterRegex: ''
|
||||||
|
FormatStyle: file
|
@ -1,18 +1,17 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
#include "MagicFloatInput.h"
|
#include "MagicFloatInput.h"
|
||||||
|
|
||||||
void UMagicFloatInput::HandleOnTextCommitted(const FText& inText, ETextCommit::Type inCommitMethod) {
|
void UMagicFloatInput::HandleOnTextCommitted(
|
||||||
|
FText const & inText,
|
||||||
|
ETextCommit::Type inCommitMethod
|
||||||
|
) {
|
||||||
if (inText.IsEmptyOrWhitespace()) {
|
if (inText.IsEmptyOrWhitespace()) {
|
||||||
if (sourceInput != nullptr) {
|
if (sourceInput != nullptr) {
|
||||||
SetText(sourceInput->GetText());
|
SetText(sourceInput->GetText());
|
||||||
}
|
} else {
|
||||||
}
|
|
||||||
else {
|
|
||||||
auto x = FCString::Atof(*inText.ToString());
|
auto x = FCString::Atof(*inText.ToString());
|
||||||
SetText(FText::FromString(FString::Printf(TEXT("%.7f"), x)));
|
SetText(FText::FromString(FString::Printf(TEXT("%.7f"), x)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,10 +1,8 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
#include "ModeInputTextBox.h"
|
#include "ModeInputTextBox.h"
|
||||||
|
|
||||||
void UModeInputTextBox::HandleOnTextChanged(const FText& inText) {
|
void UModeInputTextBox::HandleOnTextChanged(FText const & inText) {
|
||||||
|
|
||||||
auto & s = inText.ToString();
|
auto & s = inText.ToString();
|
||||||
auto lastChar = s.LeftChop(1);
|
auto lastChar = s.LeftChop(1);
|
||||||
lastChar.ToUpperInline();
|
lastChar.ToUpperInline();
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
#include "MyPlayerState.h"
|
#include "MyPlayerState.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
#include "MyUserWidget.h"
|
#include "MyUserWidget.h"
|
||||||
#include <MyPlayerState.h>
|
#include <MyPlayerState.h>
|
||||||
|
|
||||||
@ -9,5 +8,4 @@ void UMyUserWidget::NativeOnInitialized() {
|
|||||||
if (ps == nullptr)
|
if (ps == nullptr)
|
||||||
return;
|
return;
|
||||||
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
|
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
|
||||||
|
|
||||||
}
|
}
|
@ -1,12 +1,7 @@
|
|||||||
// Fill out your copyright notice in the Description page of Project Settings.
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||||||
|
|
||||||
|
|
||||||
#include "TheracAdapter.h"
|
#include "TheracAdapter.h"
|
||||||
|
|
||||||
TheracAdapter::TheracAdapter()
|
TheracAdapter::TheracAdapter() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
TheracAdapter::~TheracAdapter()
|
TheracAdapter::~TheracAdapter() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -2,19 +2,21 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
|
||||||
#include "Components/EditableTextBox.h"
|
#include "Components/EditableTextBox.h"
|
||||||
|
#include "CoreMinimal.h"
|
||||||
#include "MagicFloatInput.generated.h"
|
#include "MagicFloatInput.generated.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
UCLASS()
|
UCLASS()
|
||||||
class MYPROJECT_API UMagicFloatInput : public UEditableTextBox
|
class MYPROJECT_API UMagicFloatInput : public UEditableTextBox {
|
||||||
{
|
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
void HandleOnTextCommitted(const FText& Text, ETextCommit::Type CommitMethod) override;
|
void HandleOnTextCommitted(
|
||||||
|
FText const & Text,
|
||||||
|
ETextCommit::Type CommitMethod
|
||||||
|
) override;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere)
|
UPROPERTY(EditAnywhere)
|
||||||
UEditableTextBox * sourceInput;
|
UEditableTextBox * sourceInput;
|
||||||
|
@ -2,17 +2,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
|
||||||
#include "Components/EditableTextBox.h"
|
#include "Components/EditableTextBox.h"
|
||||||
|
#include "CoreMinimal.h"
|
||||||
#include "ModeInputTextBox.generated.h"
|
#include "ModeInputTextBox.generated.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
UCLASS()
|
UCLASS()
|
||||||
class MYPROJECT_API UModeInputTextBox : public UEditableTextBox
|
class MYPROJECT_API UModeInputTextBox : public UEditableTextBox {
|
||||||
{
|
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
void HandleOnTextChanged(const FText& inText) override;
|
void HandleOnTextChanged(FText const & inText) override;
|
||||||
};
|
};
|
||||||
|
@ -2,18 +2,16 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
|
||||||
#include "Blueprint/UserWidget.h"
|
#include "Blueprint/UserWidget.h"
|
||||||
#include <Components/TextBlock.h>
|
#include "CoreMinimal.h"
|
||||||
#include "MyUserWidget.generated.h"
|
#include "MyUserWidget.generated.h"
|
||||||
|
#include <Components/TextBlock.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
UCLASS()
|
UCLASS()
|
||||||
class MYPROJECT_API UMyUserWidget : public UUserWidget
|
class MYPROJECT_API UMyUserWidget : public UUserWidget {
|
||||||
{
|
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
UPROPERTY(meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
|
Reference in New Issue
Block a user