暂存一波 (#1)

Reviewed-on: http://www.tengenverse.com:3000/osticko/TG_ARPG/pulls/1
This commit is contained in:
2023-08-25 18:05:38 +00:00
parent d8ab28268e
commit 1fdff56070
95 changed files with 2826 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "TG_ControllerBase.h"
#include "Framework/Application/NavigationConfig.h"
void ATG_ControllerBase::BeginPlay()
{
Super::BeginPlay();
if (IsLocalPlayerController())
{
auto navigation = MakeShared<FNavigationConfig>();
navigation->bAnalogNavigation = false;
navigation->bTabNavigation = false;
FSlateApplication::Get().SetNavigationConfig(navigation);
}
}

View File

@@ -0,0 +1,18 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "TG_ControllerBase.generated.h"
/**
*
*/
UCLASS()
class TG_ARPG_API ATG_ControllerBase : public APlayerController
{
GENERATED_BODY()
void BeginPlay();
};

View File

@@ -9,5 +9,7 @@ public class TG_ARPG : ModuleRules
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "EnhancedInput","GameplayAbilities", "GameplayTags", "GameplayTasks" });
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
}
}