diff --git a/Config/DefaultEngine.ini b/Config/DefaultEngine.ini index 6b927f0..8ea52a0 100644 --- a/Config/DefaultEngine.ini +++ b/Config/DefaultEngine.ini @@ -35,6 +35,7 @@ GlobalDefaultGameMode=/Game/Blueprints/Player/GM.GM_C [/Script/WindowsTargetPlatform.WindowsTargetSettings] DefaultGraphicsRHI=DefaultGraphicsRHI_DX11 +Compiler=VisualStudio2017 [/Script/IOSRuntimeSettings.IOSRuntimeSettings] bSupportsPortraitOrientation=False diff --git a/Content/Levels/Landscape.umap b/Content/Levels/Landscape.umap index f79bafb..293cf18 100644 Binary files a/Content/Levels/Landscape.umap and b/Content/Levels/Landscape.umap differ diff --git a/Motrisa.uproject b/Motrisa.uproject index c23e935..fc0869b 100644 --- a/Motrisa.uproject +++ b/Motrisa.uproject @@ -3,6 +3,16 @@ "EngineAssociation": "4.21", "Category": "", "Description": "", + "Modules": [ + { + "Name": "Motrisa", + "Type": "Runtime", + "LoadingPhase": "Default", + "AdditionalDependencies": [ + "Engine" + ] + } + ], "Plugins": [ { "Name": "OculusVR", diff --git a/Source/Motrisa.Target.cs b/Source/Motrisa.Target.cs new file mode 100644 index 0000000..cdcf158 --- /dev/null +++ b/Source/Motrisa.Target.cs @@ -0,0 +1,14 @@ + + +using UnrealBuildTool; +using System.Collections.Generic; + +public class MotrisaTarget : TargetRules +{ + public MotrisaTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Game; + + ExtraModuleNames.AddRange( new string[] { "Motrisa" } ); + } +} diff --git a/Source/Motrisa/Motrisa.Build.cs b/Source/Motrisa/Motrisa.Build.cs new file mode 100644 index 0000000..609c95a --- /dev/null +++ b/Source/Motrisa/Motrisa.Build.cs @@ -0,0 +1,23 @@ + + +using UnrealBuildTool; + +public class Motrisa : ModuleRules +{ + public Motrisa(ReadOnlyTargetRules Target) : base(Target) + { + PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; + + PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" }); + + PrivateDependencyModuleNames.AddRange(new string[] { }); + + // Uncomment if you are using Slate UI + // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" }); + + // Uncomment if you are using online features + // PrivateDependencyModuleNames.Add("OnlineSubsystem"); + + // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true + } +} diff --git a/Source/Motrisa/Motrisa.cpp b/Source/Motrisa/Motrisa.cpp new file mode 100644 index 0000000..ac41289 --- /dev/null +++ b/Source/Motrisa/Motrisa.cpp @@ -0,0 +1,6 @@ + + +#include "Motrisa.h" +#include "Modules/ModuleManager.h" + +IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Motrisa, "Motrisa" ); diff --git a/Source/Motrisa/Motrisa.h b/Source/Motrisa/Motrisa.h new file mode 100644 index 0000000..1c29de3 --- /dev/null +++ b/Source/Motrisa/Motrisa.h @@ -0,0 +1,6 @@ + + +#pragma once + +#include "CoreMinimal.h" + diff --git a/Source/Motrisa/setRes.cpp b/Source/Motrisa/setRes.cpp new file mode 100644 index 0000000..e2096ea --- /dev/null +++ b/Source/Motrisa/setRes.cpp @@ -0,0 +1,20 @@ + + +#include "setRes.h" +#define WIN32_LEAN_AND_MEAN +#include + + + +void UsetRes::SetPos(int posX, int posY) +{ + SetWindowPos( + GetActiveWindow(), + HWND_TOP, + posX, + posY, + 0, + 0, + SWP_NOZORDER | SWP_NOSIZE + ); +} \ No newline at end of file diff --git a/Source/Motrisa/setRes.h b/Source/Motrisa/setRes.h new file mode 100644 index 0000000..a4fc4a4 --- /dev/null +++ b/Source/Motrisa/setRes.h @@ -0,0 +1,20 @@ + + +#pragma once + +#include "CoreMinimal.h" +#include "Kismet/BlueprintFunctionLibrary.h" +#include "setRes.generated.h" + +/** + * + */ +UCLASS() +class MOTRISA_API UsetRes : public UBlueprintFunctionLibrary +{ + GENERATED_BODY() public: + + UFUNCTION(BlueprintCallable) + static void SetPos(int posX, int posY); + +}; diff --git a/Source/MotrisaEditor.Target.cs b/Source/MotrisaEditor.Target.cs new file mode 100644 index 0000000..5a1f667 --- /dev/null +++ b/Source/MotrisaEditor.Target.cs @@ -0,0 +1,14 @@ + + +using UnrealBuildTool; +using System.Collections.Generic; + +public class MotrisaEditorTarget : TargetRules +{ + public MotrisaEditorTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Editor; + + ExtraModuleNames.AddRange( new string[] { "Motrisa" } ); + } +}