a LOT of time wasted fighting with dlls again

This commit is contained in:
wonkyhonky2024
2025-05-14 22:29:33 +01:00
parent 1b44322325
commit 23691e77c2
13 changed files with 153 additions and 88 deletions

View File

@ -1,15 +1,14 @@
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
using System.Collections.Generic;
public class MyProjectTarget : TargetRules
{
public MyProjectTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V5;
public MyProjectTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V5;
ExtraModuleNames.AddRange( new string[] { "MyProject" } );
}
ExtraModuleNames.AddRange(new string[] { "MyProject", "hstherac25" });
}
}

View File

@ -4,20 +4,20 @@ using UnrealBuildTool;
public class MyProject : ModuleRules
{
public MyProject(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG" });
public MyProject(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PrivateDependencyModuleNames.AddRange(new string[] { });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG" });
// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
PrivateDependencyModuleNames.AddRange(new string[] { });
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "hstherac25" });
// 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
}
}

View File

@ -16,7 +16,7 @@ void UMyUserWidget::NativeOnInitialized() {
CR_TextBlock,
ColX_TextBlock,
ColY_TextBlock,
WR_TextBlock,
WN_TextBlock,
AN_TextBlock
};
for (auto * n : arcaneNumbers) {

View File

@ -40,10 +40,10 @@ class MYPROJECT_API UMyUserWidget : public UUserWidget {
UTextBlock * ColY_TextBlock;
UPROPERTY(meta = (BindWidget))
UTextBlock * WR_TextBlock;
UTextBlock * WN_TextBlock;
UPROPERTY(meta = (BindWidget))
UTextBlock * AN_TextBlock;
void NativeOnInitialized() override;
void NativeOnInitialized() override;
};

View File

@ -1,15 +1,14 @@
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
using System.Collections.Generic;
public class MyProjectEditorTarget : TargetRules
{
public MyProjectEditorTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V5;
public MyProjectEditorTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V5;
ExtraModuleNames.AddRange( new string[] { "MyProject" } );
}
ExtraModuleNames.AddRange(new string[] { "MyProject", "hstherac25" });
}
}