Loading Screen (#13)
Reviewed-on: #13 Co-authored-by: Oleg Petruny <oleg.petruny@gmail.com> Co-committed-by: Oleg Petruny <oleg.petruny@gmail.com>
This commit is contained in:
parent
71ff7e773d
commit
727921f1a4
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 351 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 378 KiB |
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
[/Script/EngineSettings.GeneralProjectSettings]
|
[/Script/EngineSettings.GeneralProjectSettings]
|
||||||
ProjectID=09D27A7F49EDD2A17DE1879F3BDEF448
|
ProjectID=09D27A7F49EDD2A17DE1879F3BDEF448
|
||||||
ProjectVersion=0.1
|
ProjectVersion=0.1
|
||||||
@ -133,3 +131,7 @@ bShouldAcquireMissingChunksOnLoad=False
|
|||||||
bShouldWarnAboutInvalidAssets=True
|
bShouldWarnAboutInvalidAssets=True
|
||||||
MetaDataTagsForAssetRegistry=()
|
MetaDataTagsForAssetRegistry=()
|
||||||
|
|
||||||
|
[/Script/LoadingScreenSettings.LoadingScreenSettings]
|
||||||
|
minimumDisplayTime=2.000000
|
||||||
|
levels=(("/Game/Levels/Test/L_Test.L_Test", NSLOCTEXT("[/Script/LoadingScreenSettings]", "38913E074A1A7FB8CEC17CA454DB93CA", "Test level")),("/Game/Levels/Level_1/L_Level1.L_Level1", NSLOCTEXT("[/Script/LoadingScreenSettings]", "F5CCDF174DFA012184FEC8815ECFC60A", "Chapter 1")),("/Game/Levels/Level_2/L_Level2.L_Level2", NSLOCTEXT("[/Script/LoadingScreenSettings]", "CFCC13A248739EEE82C1D4B184356774", "Chapter 2")),("/Game/Levels/Level_3/L_Level3.L_Level3", NSLOCTEXT("[/Script/LoadingScreenSettings]", "3132A33A4C4D1781D269F88B79713C68", "Chapter 3")),("/Game/Levels/Level_4/L_Level4.L_Level4", NSLOCTEXT("[/Script/LoadingScreenSettings]", "C0EA4190480108E377AA78AA7BAA3A05", "Chapter 4")),("/Game/Levels/Level_5/L_Level5.L_Level5", NSLOCTEXT("[/Script/LoadingScreenSettings]", "61D418214496DCBC2286B89D87611BE2", "Chapter 5")))
|
||||||
|
|
||||||
|
BIN
UnrealProject/Lost_Edge/Content/Audio/Sounds/Knock.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Audio/Sounds/Knock.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Blueprints/BP_CustomGameInstance.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Blueprints/BP_CustomGameInstance.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/BP_Level2_Tree.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/BP_Level2_Tree.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_CrossyRoad.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_CrossyRoad.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_Fishing.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_Fishing.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_RythmClick.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_RythmClick.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_SubwaySurf.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_SubwaySurf.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_Tree.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Blueprints/SM_Level2_Tree.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/L_Level2.umap
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/L_Level2.umap
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_SkillSelect.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_SkillSelect.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_TreeFall.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_TreeFall.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_begin.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_2/Sequencers/Seq_Level2_begin.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_3/L_Level3.umap
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Level_3/L_Level3.umap
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/Levels/Test/Actors/RuntimeLoadTest/BP_Test_RuntimeLoad.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/Levels/Test/Actors/RuntimeLoadTest/BP_Test_RuntimeLoad.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/UI_CutsceneSkip.uasset
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Content/UI/Blueprints/UI_CutsceneSkip.uasset
(Stored with Git LFS)
Binary file not shown.
@ -22,6 +22,11 @@
|
|||||||
"AdditionalDependencies": [
|
"AdditionalDependencies": [
|
||||||
"Engine"
|
"Engine"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "Lost_EdgeStyle",
|
||||||
|
"Type": "Runtime",
|
||||||
|
"LoadingPhase": "PostConfigInit"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Plugins": [
|
"Plugins": [
|
||||||
|
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudio/Source/FMODStudio/FMODStudio.Build.cs
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudio/Source/FMODStudio/FMODStudio.Build.cs
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudio/Source/FMODStudioEditor/FMODStudioEditor.Build.cs
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudio/Source/FMODStudioEditor/FMODStudioEditor.Build.cs
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudioNiagara/Source/FMODStudioNiagara/FMODStudioNiagara.Build.cs
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Plugins/FMODStudioNiagara/Source/FMODStudioNiagara/FMODStudioNiagara.Build.cs
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/FlatNodes/Source/FlatNodes/FlatNodes.Build.cs
(Stored with Git LFS)
BIN
UnrealProject/Lost_Edge/Plugins/FlatNodes/Source/FlatNodes/FlatNodes.Build.cs
(Stored with Git LFS)
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/LoadingScreen.uplugin
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/LoadingScreen.uplugin
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Icon128.png
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Icon128.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Runtime/T_ImageA.png
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Runtime/T_ImageA.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Runtime/T_ImageB.png
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Resources/Runtime/T_ImageB.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/LoadingScreen.Build.cs
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/LoadingScreen.Build.cs
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/LoadingScreen.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/LoadingScreen.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/SLoadingScreenWidget.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/SLoadingScreenWidget.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/SLoadingScreenWidget.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Private/SLoadingScreenWidget.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Public/LoadingScreen.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreen/Public/LoadingScreen.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/LoadingScreenSettings.Build.cs
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/LoadingScreenSettings.Build.cs
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/Public/LoadingScreenSettings.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/Public/LoadingScreenSettings.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/Public/LoadingScreenSettingsModule.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/LoadingScreenSettings/Public/LoadingScreenSettingsModule.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/PreStartupScreen.Build.cs
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/PreStartupScreen.Build.cs
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreen.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreen.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreenPlayer.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreenPlayer.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreenPlayer.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/PreStartupScreenPlayer.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/SPreStartupScreenWidget.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/SPreStartupScreenWidget.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/SPreStartupScreenWidget.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Private/SPreStartupScreenWidget.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Public/PreStartupScreen.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/PreStartupScreen/Public/PreStartupScreen.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/SStartupScreenWidget.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/SStartupScreenWidget.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/SStartupScreenWidget.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/SStartupScreenWidget.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreen.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreen.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreenPlayer.cpp
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreenPlayer.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreenPlayer.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Private/StartupScreenPlayer.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Public/StartupScreen.h
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/Public/StartupScreen.h
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/StartupScreen.Build.cs
(Stored with Git LFS)
Normal file
BIN
UnrealProject/Lost_Edge/Plugins/LoadingScreen/Source/StartupScreen/StartupScreen.Build.cs
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
using UnrealBuildTool;
|
using UnrealBuildTool;
|
||||||
|
|
||||||
public class Lost_EdgeTarget : TargetRules {
|
public class Lost_EdgeTarget : TargetRules
|
||||||
public Lost_EdgeTarget(TargetInfo Target) : base(Target) {
|
{
|
||||||
|
public Lost_EdgeTarget(TargetInfo Target) : base(Target)
|
||||||
|
{
|
||||||
Type = TargetType.Game;
|
Type = TargetType.Game;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
|
@ -12,7 +12,7 @@ public class Lost_Edge : ModuleRules
|
|||||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OpenCV" });
|
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OpenCV" });
|
||||||
|
|
||||||
PrivateDependencyModuleNames.AddRange(new string[] { "EnhancedInput", "UMG", "RHI", "RenderCore", "Lost_EdgeShaders", "PakFile", //"TextureCompressor",
|
PrivateDependencyModuleNames.AddRange(new string[] { "EnhancedInput", "UMG", "RHI", "RenderCore", "Lost_EdgeShaders", "PakFile", //"TextureCompressor",
|
||||||
"LevelSequence", "MovieScene", "HTTP", "Json", "ApplicationCore", "ProceduralMeshComponent", "Landscape", }); // "Slate", "SlateCore"
|
"LevelSequence", "MovieScene", "HTTP", "Json", "ApplicationCore", "ProceduralMeshComponent", "Landscape" });
|
||||||
|
|
||||||
if (Target.bBuildEditor)
|
if (Target.bBuildEditor)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
||||||
|
|
||||||
#include "Lost_EdgeGameModeBase.h"
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
|
||||||
#include "GameFramework/GameModeBase.h"
|
|
||||||
#include "Lost_EdgeGameModeBase.generated.h"
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
UCLASS()
|
|
||||||
class LOST_EDGE_API ALost_EdgeGameModeBase : public AGameModeBase
|
|
||||||
{
|
|
||||||
GENERATED_BODY()
|
|
||||||
|
|
||||||
};
|
|
@ -16,13 +16,13 @@ struct FIntByteView
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
uint8 first;
|
uint8 first = 0;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
uint8 second;
|
uint8 second = 0;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
uint8 third;
|
uint8 third = 0;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
uint8 fourth;
|
uint8 fourth = 0;
|
||||||
|
|
||||||
static FIntByteView Make(const int32 in);
|
static FIntByteView Make(const int32 in);
|
||||||
int32 AsInt() const;
|
int32 AsInt() const;
|
||||||
@ -70,7 +70,6 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UFUNCTION(BlueprintPure, Category = TypeCasts)
|
UFUNCTION(BlueprintPure, Category = TypeCasts)
|
||||||
static FIntByteView MakeIntByteView(const int32 in);
|
static FIntByteView MakeIntByteView(const int32 in);
|
||||||
UFUNCTION(BlueprintPure)
|
UFUNCTION(BlueprintPure)
|
||||||
|
@ -24,7 +24,7 @@ namespace
|
|||||||
const auto pakFileSavePath = FString::Printf(TEXT("%sDownloaded/"), *FPaths::ProjectDir());
|
const auto pakFileSavePath = FString::Printf(TEXT("%sDownloaded/"), *FPaths::ProjectDir());
|
||||||
}
|
}
|
||||||
|
|
||||||
void UContentLoader::BeginDestroy()
|
void UContentLoader::Deinitialize()
|
||||||
{
|
{
|
||||||
//if(mountedFiles.Num() > 0)
|
//if(mountedFiles.Num() > 0)
|
||||||
//{
|
//{
|
||||||
@ -34,7 +34,7 @@ void UContentLoader::BeginDestroy()
|
|||||||
// FPlatformFileManager::Get().RemovePlatformFile(GetPakPlatformFile());
|
// FPlatformFileManager::Get().RemovePlatformFile(GetPakPlatformFile());
|
||||||
//}
|
//}
|
||||||
|
|
||||||
UObject::BeginDestroy();
|
Super::Deinitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
void UContentLoader::HttpGet(const FString& url, FHttpRequestCompleteDelegate requestCompleteCallback)
|
void UContentLoader::HttpGet(const FString& url, FHttpRequestCompleteDelegate requestCompleteCallback)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Http.h"
|
#include "Http.h"
|
||||||
#include "UObject/Object.h"
|
#include "Subsystems/GameInstanceSubsystem.h"
|
||||||
|
|
||||||
#include "ContentLoader.generated.h"
|
#include "ContentLoader.generated.h"
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ DECLARE_DYNAMIC_DELEGATE_OneParam(FContentDownloadedCallback, FString, pakFilePa
|
|||||||
* High language wrapper for Paks(Assets) download and loading.
|
* High language wrapper for Paks(Assets) download and loading.
|
||||||
*/
|
*/
|
||||||
UCLASS(BlueprintType)
|
UCLASS(BlueprintType)
|
||||||
class UContentLoader : public UObject
|
class UContentLoader : public UGameInstanceSubsystem
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ public:
|
|||||||
bool UnloadPak(const FString& pakFilePath);
|
bool UnloadPak(const FString& pakFilePath);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void BeginDestroy() override;
|
virtual void Deinitialize() override;
|
||||||
|
|
||||||
/** Sends http get request */
|
/** Sends http get request */
|
||||||
void HttpGet(const FString& url, FHttpRequestCompleteDelegate requestCompleteCallback);
|
void HttpGet(const FString& url, FHttpRequestCompleteDelegate requestCompleteCallback);
|
||||||
|
@ -21,11 +21,11 @@ UCustomGameInstance* UCustomGameInstance::instance = nullptr;
|
|||||||
|
|
||||||
void UCustomGameInstance::Init()
|
void UCustomGameInstance::Init()
|
||||||
{
|
{
|
||||||
|
// init game instance
|
||||||
UGameInstance::Init();
|
UGameInstance::Init();
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
contentLoader = NewObject<UContentLoader>(this);
|
// setup global singletons
|
||||||
for(auto& _class : globalInstancesClasses)
|
for(auto& _class : globalInstancesClasses)
|
||||||
{
|
{
|
||||||
UObject* gi = NewObject<UObject>(_class);
|
UObject* gi = NewObject<UObject>(_class);
|
||||||
@ -34,10 +34,19 @@ void UCustomGameInstance::Init()
|
|||||||
}
|
}
|
||||||
globalInstancesClasses.Empty();
|
globalInstancesClasses.Empty();
|
||||||
|
|
||||||
|
// set current save
|
||||||
if(auto save = UGameplayStatics::LoadGameFromSlot(saveName, saveIndex))
|
if(auto save = UGameplayStatics::LoadGameFromSlot(saveName, saveIndex))
|
||||||
saveData = Cast<USaveData>(save);
|
saveData = Cast<USaveData>(save);
|
||||||
else
|
else
|
||||||
saveData = Cast<USaveData>(UGameplayStatics::CreateSaveGameObject(USaveData::StaticClass()));
|
saveData = Cast<USaveData>(UGameplayStatics::CreateSaveGameObject(USaveData::StaticClass()));
|
||||||
|
|
||||||
|
//FCoreUObjectDelegates::PreLoadMap.AddLambda([&](const FString& mapName)
|
||||||
|
// {
|
||||||
|
// if(auto loadingScreen = FModuleManager::LoadModulePtr<FLoadingScreen>("LoadingScreen"))
|
||||||
|
// loadingScreen->StartLoadingScreen();
|
||||||
|
// });
|
||||||
|
|
||||||
|
//FCoreUObjectDelegates::PostLoadMapWithWorld.AddLambda(loadingScreen, &ULoadingScreen::EndLoadingScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UCustomGameInstance::Shutdown()
|
void UCustomGameInstance::Shutdown()
|
||||||
@ -56,7 +65,7 @@ UCustomGameInstance* UCustomGameInstance::Get()
|
|||||||
UContentLoader* UCustomGameInstance::GetContentLoader()
|
UContentLoader* UCustomGameInstance::GetContentLoader()
|
||||||
{
|
{
|
||||||
if(auto GI = Get())
|
if(auto GI = Get())
|
||||||
return GI->contentLoader;
|
return GI->GetSubsystem<UContentLoader>();
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
|
|
||||||
UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Custom Game Instance"))
|
UFUNCTION(BlueprintPure, meta = (DisplayName = "Get Custom Game Instance"))
|
||||||
static UCustomGameInstance* Get();
|
static UCustomGameInstance* Get();
|
||||||
UFUNCTION(BlueprintPure)
|
UFUNCTION(BlueprintPure, meta = (DeprecatedFunction, DeprecationMessage = "Use original Get Submodule pure function instead."))
|
||||||
static class UContentLoader* GetContentLoader();
|
static class UContentLoader* GetContentLoader();
|
||||||
UFUNCTION(BlueprintPure)
|
UFUNCTION(BlueprintPure)
|
||||||
static UObject* GetGlobalInstance(UClass* _class);
|
static UObject* GetGlobalInstance(UClass* _class);
|
||||||
@ -50,9 +50,6 @@ public:
|
|||||||
class USaveData* saveData = nullptr;
|
class USaveData* saveData = nullptr;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
UPROPERTY()
|
|
||||||
class UContentLoader* contentLoader;
|
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
TSet<TSubclassOf<UObject>> globalInstancesClasses;
|
TSet<TSubclassOf<UObject>> globalInstancesClasses;
|
||||||
TMap<UClass*, UObject*> globalInstances;
|
TMap<UClass*, UObject*> globalInstances;
|
||||||
|
@ -159,7 +159,6 @@ void UCutsceneManager::OnFirstCutsceneInit() // most first sequence, so widgets
|
|||||||
static FSkipCutsceneDelegate skipCutsceneDelegate;
|
static FSkipCutsceneDelegate skipCutsceneDelegate;
|
||||||
if(!skipCutsceneDelegate.IsBound())
|
if(!skipCutsceneDelegate.IsBound())
|
||||||
skipCutsceneDelegate.BindDynamic(this, &UCutsceneManager::SkipSequence);
|
skipCutsceneDelegate.BindDynamic(this, &UCutsceneManager::SkipSequence);
|
||||||
WM->AnimateCutsceneWidget(EInputAnimatedWidgetAnimation::Reset);
|
|
||||||
WM->EnableCutsceneWidget(skipCutsceneDelegate);
|
WM->EnableCutsceneWidget(skipCutsceneDelegate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ struct FResolutionAndRefreshRates
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
FIntPoint resolution;
|
FIntPoint resolution = { 0, 0 };
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
TArray<int32> refreshRates;
|
TArray<int32> refreshRates;
|
||||||
};
|
};
|
||||||
|
@ -85,7 +85,7 @@ protected:
|
|||||||
void OnDeactivate(EActivatorType type);
|
void OnDeactivate(EActivatorType type);
|
||||||
|
|
||||||
/** Mask of active activator types */
|
/** Mask of active activator types */
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (Bitmask, BitmaskEnum = "EActivatorType"))
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (Bitmask, BitmaskEnum = "/Script/Lost_Edge.EActivatorType"))
|
||||||
int32 activated = 0;
|
int32 activated = 0;
|
||||||
UPROPERTY(EditAnywhere)
|
UPROPERTY(EditAnywhere)
|
||||||
bool lockOnBeginPlay = false;
|
bool lockOnBeginPlay = false;
|
||||||
|
@ -51,7 +51,7 @@ protected:
|
|||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
TArray<FText> inputDescription;
|
TArray<FText> inputDescription;
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly, NoClear, meta = (Bitmask, BitmaskEnum = "EActivatorType"))
|
UPROPERTY(EditDefaultsOnly, NoClear, meta = (Bitmask, BitmaskEnum = "/Script/Lost_Edge.EActivatorType"))
|
||||||
int32 activatorTypes = 0;
|
int32 activatorTypes = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -12,19 +12,19 @@ struct FFishVariation
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
float difficulty;
|
float difficulty = 1.0f;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
float size;
|
float size = 1.0f;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
float duration;
|
float duration = 1.0f;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
int32 price;
|
int32 price = 100;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
FLinearColor color;
|
FLinearColor color = FLinearColor::Blue;
|
||||||
};
|
};
|
||||||
|
|
||||||
UCLASS(Blueprintable, BlueprintType, MinimalAPI)
|
UCLASS(Blueprintable, BlueprintType, MinimalAPI)
|
||||||
|
@ -17,17 +17,17 @@ struct FPlayerLock
|
|||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 walk : 1;
|
uint8 walk : 1 = 0;
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 jump : 1;
|
uint8 jump : 1 = 0;
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 run : 1;
|
uint8 run : 1 = 0;
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 interaction : 1;
|
uint8 interaction : 1 = 0;
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 camera : 1;
|
uint8 camera : 1 = 0;
|
||||||
UPROPERTY(BlueprintReadWrite)
|
UPROPERTY(BlueprintReadWrite)
|
||||||
uint8 inventory : 1;
|
uint8 inventory : 1 = 0;
|
||||||
|
|
||||||
static FPlayerLock All();
|
static FPlayerLock All();
|
||||||
};
|
};
|
||||||
|
@ -4,5 +4,6 @@ void UCutsceneSkipWidget::SetVisibility(ESlateVisibility InVisibility)
|
|||||||
{
|
{
|
||||||
if(InVisibility == ESlateVisibility::Hidden)
|
if(InVisibility == ESlateVisibility::Hidden)
|
||||||
RunAnimation(EInputAnimatedWidgetAnimation::Reset);
|
RunAnimation(EInputAnimatedWidgetAnimation::Reset);
|
||||||
|
PlayAnimation(unHide, 0.0f, 1, (InVisibility == ESlateVisibility::Visible ? EUMGSequencePlayMode::Forward : EUMGSequencePlayMode::Reverse));
|
||||||
Super::SetVisibility(InVisibility);
|
Super::SetVisibility(InVisibility);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,9 @@ public:
|
|||||||
UPROPERTY(meta = (BindWidget))
|
UPROPERTY(meta = (BindWidget))
|
||||||
class UTextBlock* keyText;
|
class UTextBlock* keyText;
|
||||||
|
|
||||||
|
UPROPERTY(Transient, meta = (BindWidgetAnim))
|
||||||
|
class UWidgetAnimation* unHide;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
void SkipCutscene() { skipCutsceneDelegate.Execute(); }
|
void SkipCutscene() { skipCutsceneDelegate.Execute(); }
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
using UnrealBuildTool;
|
using UnrealBuildTool;
|
||||||
|
|
||||||
public class Lost_EdgeEditorTarget : TargetRules {
|
public class Lost_EdgeEditorTarget : TargetRules
|
||||||
public Lost_EdgeEditorTarget(TargetInfo Target) : base(Target) {
|
{
|
||||||
|
public Lost_EdgeEditorTarget(TargetInfo Target) : base(Target)
|
||||||
|
{
|
||||||
Type = TargetType.Editor;
|
Type = TargetType.Editor;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
// Oleg Petruny proprietary.
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
using System.IO;
|
||||||
using UnrealBuildTool;
|
using UnrealBuildTool;
|
||||||
|
|
||||||
public class Lost_EdgeShaders : ModuleRules
|
public class Lost_EdgeShaders : ModuleRules
|
||||||
{
|
{
|
||||||
public Lost_EdgeShaders(ReadOnlyTargetRules Target) : base(Target)
|
public Lost_EdgeShaders(ReadOnlyTargetRules Target) : base(Target)
|
||||||
{
|
{
|
||||||
//bPrecompile = true;
|
//if (File.Exists($"{PlatformDirectory.FullName}\\..\\..\\Intermediate\\Build\\Win64\\x64\\UnrealEditor\\DebugGame\\{Path.GetFileName(PlatformDirectory.FullName)}\\UnrealEditor-{Path.GetFileName(PlatformDirectory.FullName)}-Win64-DebugGame.lib"))
|
||||||
// bUsePrecompiled = true;
|
// bUsePrecompiled = true;
|
||||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
PublicDependencyModuleNames.AddRange(new string[] { });
|
PublicDependencyModuleNames.AddRange(new string[] { });
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
using UnrealBuildTool;
|
||||||
|
|
||||||
|
public class Lost_EdgeStyle : ModuleRules
|
||||||
|
{
|
||||||
|
public Lost_EdgeStyle(ReadOnlyTargetRules Target) : base(Target)
|
||||||
|
{
|
||||||
|
//if (File.Exists($"{PlatformDirectory.FullName}\\..\\..\\Intermediate\\Build\\Win64\\x64\\UnrealEditor\\DebugGame\\{Path.GetFileName(PlatformDirectory.FullName)}\\UnrealEditor-{Path.GetFileName(PlatformDirectory.FullName)}-Win64-DebugGame.lib"))
|
||||||
|
// bUsePrecompiled = true;
|
||||||
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
PublicDependencyModuleNames.AddRange(new string[] { });
|
||||||
|
PrivateDependencyModuleNames.AddRange(new string[] {
|
||||||
|
"Core",
|
||||||
|
"CoreUObject",
|
||||||
|
"Slate",
|
||||||
|
"SlateCore"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
#include "Lost_EdgeStyle.h"
|
||||||
|
|
||||||
|
#include "Styling/SlateStyleRegistry.h"
|
||||||
|
|
||||||
|
TUniquePtr<FSlateStyleSet> FLost_EdgeStyle::style = nullptr;
|
||||||
|
|
||||||
|
void FLost_EdgeStyle::StartupModule()
|
||||||
|
{
|
||||||
|
if(style.IsValid())
|
||||||
|
return;
|
||||||
|
|
||||||
|
style = MakeUnique<FSlateStyleSet>(GetStyleSetName());
|
||||||
|
|
||||||
|
style->Set(TEXT("BackgroundBlack"), FLinearColor(0.01f, 0.01f, 0.01f, 0));
|
||||||
|
style->Set(TEXT("BackgroundBlack"), FSlateColor(style->GetColor(TEXT("BackgroundBlack"))));
|
||||||
|
style->Set(TEXT("BackgroundBlack"), new FSlateColorBrush(style->GetColor(TEXT("BackgroundBlack"))));
|
||||||
|
|
||||||
|
FSlateStyleRegistry::RegisterSlateStyle(Get());
|
||||||
|
}
|
||||||
|
|
||||||
|
void FLost_EdgeStyle::ShutdownModule()
|
||||||
|
{
|
||||||
|
if(!style.IsValid())
|
||||||
|
return;
|
||||||
|
|
||||||
|
FSlateStyleRegistry::UnRegisterSlateStyle(Get());
|
||||||
|
style.Reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FLost_EdgeStyle::IsGameModule() const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ISlateStyle& FLost_EdgeStyle::Get()
|
||||||
|
{
|
||||||
|
return *style.Get();
|
||||||
|
}
|
||||||
|
|
||||||
|
FName FLost_EdgeStyle::GetStyleSetName()
|
||||||
|
{
|
||||||
|
static const FName name(TEXT("Lost_EdgeStyle"));
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
IMPLEMENT_GAME_MODULE(FLost_EdgeStyle, Lost_EdgeStyle);
|
@ -0,0 +1,21 @@
|
|||||||
|
// Oleg Petruny proprietary.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Modules/ModuleInterface.h"
|
||||||
|
#include "Styling/SlateStyle.h"
|
||||||
|
|
||||||
|
class LOST_EDGESTYLE_API FLost_EdgeStyle : public IModuleInterface
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void StartupModule() override;
|
||||||
|
virtual void ShutdownModule() override;
|
||||||
|
virtual bool IsGameModule() const override;
|
||||||
|
|
||||||
|
static const ISlateStyle& Get();
|
||||||
|
static FName GetStyleSetName();
|
||||||
|
|
||||||
|
private:
|
||||||
|
static TUniquePtr<FSlateStyleSet> style;
|
||||||
|
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user