-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented UModioSubsystem::SubmitModChangesAsync allowing you to edit mod name, description, etc * Implemented UModioSubsystem::PrioritizeTransferForMod allowing you to request a transfer begin immediately, bumping the current transfer back to the queue * Expose `FModioCreateModParams` and `FModioCreateModFileParams` to Blueprint * Minor UI updates * UE4.27 compatibility improvements * Improve support for non-unity builds * Update NativeSDK
- Loading branch information
1 parent
f2bd144
commit 6fa50a3
Showing
181 changed files
with
1,293 additions
and
730 deletions.
There are no files selected for viewing
Binary file modified
BIN
+5.74 KB
(120%)
Content/UI/Browser/Views/SearchResults/ModioSearchResultsViewWidget.uasset
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "Internal/Convert/Numerics.h" | ||
#include "Internal/Convert/Optional.h" | ||
#include "Internal/ModioConvert.h" | ||
#include "ModioSDK.h" | ||
#include "Types/ModioEditModParams.h" | ||
|
||
FORCEINLINE Modio::EditModParams ToModio(const FModioEditModParams& In) | ||
{ | ||
Modio::EditModParams Out; | ||
|
||
Out.Name = ToModioOptional<std::string>(In.Name); | ||
Out.Summary = ToModioOptional<std::string>(In.Summary); | ||
Out.NamePath = ToModioOptional<std::string>(In.NamePath); | ||
Out.bVisible = ToModioOptional<bool>(In.bVisible); | ||
Out.Description = ToModioOptional<std::string>(In.Description); | ||
Out.HomepageURL = ToModioOptional<std::string>(In.HomepageURL); | ||
Out.MaturityRating = In.MaturityFlags.IsSet() ? static_cast<Modio::MaturityOption>(In.MaturityFlags.GetValue()) | ||
: Modio::Optional<Modio::MaturityOption> {}; | ||
Out.MetadataBlob = ToModioOptional<std::string>(In.MetadataBlob); | ||
|
||
return Out; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#include "Libraries/ModioCreateModLibrary.h" | ||
|
||
void UModioCreateModLibrary::SetInitialVisibility(FModioCreateModParams& In, bool InitialVisibility) | ||
{ | ||
In.bVisible = InitialVisibility; | ||
} | ||
|
||
void UModioCreateModLibrary::SetDescription(FModioCreateModParams& In, FString Description) | ||
{ | ||
In.Description = Description; | ||
} | ||
|
||
void UModioCreateModLibrary::SetHomepageURL(FModioCreateModParams& In, FString HomepageURL) | ||
{ | ||
In.HomepageURL = HomepageURL; | ||
} | ||
|
||
void UModioCreateModLibrary::SetMetadataBlob(FModioCreateModParams& In, FString MetadataBlob) | ||
{ | ||
In.MetadataBlob = MetadataBlob; | ||
} | ||
|
||
void UModioCreateModLibrary::SetModFileMetadataBlob(FModioCreateModFileParams& In, FString MetadataBlob) | ||
{ | ||
In.MetadataBlob = MetadataBlob; | ||
} | ||
|
||
void UModioCreateModLibrary::SetModfilePlatforms(FModioCreateModFileParams& In, | ||
TArray<EModioModfilePlatform>& Platforms) | ||
{ | ||
In.ModfilePlatforms = Platforms; | ||
} | ||
|
||
void UModioCreateModLibrary::SetTags(FModioCreateModParams& In, TArray<FString>& Tags) | ||
{ | ||
In.Tags = Tags; | ||
} | ||
|
||
void UModioCreateModLibrary::SetVersionString(FModioCreateModFileParams& In, FString Version) | ||
{ | ||
In.VersionString = Version; | ||
} | ||
|
||
void UModioCreateModLibrary::SetChangelogString(FModioCreateModFileParams& In, FString Changelog) | ||
{ | ||
In.Changelog = Changelog; | ||
} | ||
|
||
void UModioCreateModLibrary::SetMarkAsActiveRelease(FModioCreateModFileParams& In, bool bMarkAsActiveRelease) | ||
{ | ||
In.bSetAsActiveRelease = bMarkAsActiveRelease; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#include "Libraries/ModioEditModLibrary.h" | ||
|
||
void UModioEditModLibrary::SetName(FModioEditModParams& In, FString Name) | ||
{ | ||
In.Name = Name; | ||
} | ||
|
||
void UModioEditModLibrary::SetSummary(FModioEditModParams& In, FString Summary) | ||
{ | ||
In.Summary = Summary; | ||
} | ||
|
||
void UModioEditModLibrary::SetNamePath(FModioEditModParams& In, FString NamePath) | ||
{ | ||
In.NamePath = NamePath; | ||
} | ||
|
||
void UModioEditModLibrary::SetVisibility(FModioEditModParams& In, bool Visibility) | ||
{ | ||
In.bVisible = Visibility; | ||
} | ||
|
||
void UModioEditModLibrary::SetDescription(FModioEditModParams& In, FString Description) | ||
{ | ||
In.Description = Description; | ||
} | ||
|
||
void UModioEditModLibrary::SetHomepageURL(FModioEditModParams& In, FString HomepageURL) | ||
{ | ||
In.HomepageURL = HomepageURL; | ||
} | ||
|
||
void UModioEditModLibrary::SetMaturityFlags(FModioEditModParams& In, EModioMaturityFlags MaturityFlags) | ||
{ | ||
In.MaturityFlags = MaturityFlags; | ||
} | ||
|
||
void UModioEditModLibrary::SetMetadataBlob(FModioEditModParams& In, FString MetadataBlob) | ||
{ | ||
In.MetadataBlob = MetadataBlob; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,69 @@ | ||
/* | ||
/* | ||
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> | ||
* | ||
* | ||
* This file is part of the mod.io UE4 Plugin. | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* | ||
* Distributed under the MIT License. (See accompanying file LICENSE or | ||
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>) | ||
* | ||
* | ||
*/ | ||
|
||
#include "Modio.h" | ||
#include "HAL/PlatformMisc.h" | ||
#include "Math/Color.h" | ||
#include "Stats/Stats.h" | ||
#include "Containers/Array.h" | ||
|
||
DEFINE_LOG_CATEGORY(LogModio) | ||
DEFINE_LOG_CATEGORY(LogModio) | ||
|
||
DECLARE_STATS_GROUP(TEXT("Modio"), STATGROUP_Modio, STATCAT_Advanced); | ||
|
||
#ifdef MODIO_UNREAL_PROFILING_SUPPORT | ||
|
||
extern "C" | ||
{ | ||
static TArray<FName>& ProfilingScopes() | ||
{ | ||
static TArray<FName> ScopeStorage; | ||
return ScopeStorage; | ||
} | ||
static TStatId& GetOrCreateStat(FName StatName) { | ||
static TMap<FName, TStatId> StatIDs; | ||
if (TStatId* FoundID = StatIDs.Find(StatName)) { | ||
return *FoundID; | ||
} | ||
else | ||
{ | ||
StatIDs.Add(StatName,FDynamicStats::CreateStatId<FStatGroup_STATGROUP_Modio>(StatName)); | ||
return StatIDs[StatName]; | ||
} | ||
} | ||
PRAGMA_DISABLE_OPTIMIZATION | ||
void modio_profile_scope_start(const char* Name, void** Data) | ||
{ | ||
if (FThreadStats::IsCollectingData()) | ||
{ | ||
FThreadStats::AddMessage(GetOrCreateStat(FName(Name)).GetName(), EStatOperation::CycleScopeStart); | ||
} | ||
FCpuProfilerTrace::OutputBeginEvent(FCpuProfilerTrace::OutputEventType(Name)); | ||
} | ||
void modio_profile_scope_end(const char* Name, void* Data) | ||
{ | ||
if (FThreadStats::IsCollectingData()) | ||
{ | ||
FThreadStats::AddMessage(GetOrCreateStat(FName(Name)).GetName(), EStatOperation::CycleScopeEnd); | ||
} | ||
FCpuProfilerTrace::OutputEndEvent(); | ||
} | ||
void modio_profile_push(const char* Name) | ||
{ | ||
//FCpuProfilerTrace::OutputBeginEvent(FCpuProfilerTrace::OutputEventType(Name)); | ||
} | ||
void modio_profile_pop() | ||
{ | ||
//FCpuProfilerTrace::OutputEndEvent(); | ||
} | ||
PRAGMA_ENABLE_OPTIMIZATION | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.