From 63270fdafcd40ab6c7a776d805528227d892d7c8 Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Wed, 30 Oct 2024 09:40:19 +0100 Subject: [PATCH] Put Docs Url in BeamEnvironment --- .../BeamableCore/Content/Environments/BeamDevEnv.uasset | 4 ++-- .../BeamableCore/Content/Environments/BeamProdEnv.uasset | 4 ++-- .../Content/Environments/BeamStagingEnv.uasset | 4 ++-- .../Source/BeamableCore/Public/BeamEnvironment.h | 2 ++ .../Private/Subsystems/BeamEditor.cpp | 7 ++++++- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Plugins/BeamableCore/Content/Environments/BeamDevEnv.uasset b/Plugins/BeamableCore/Content/Environments/BeamDevEnv.uasset index 20697e49..cc1b47c7 100644 --- a/Plugins/BeamableCore/Content/Environments/BeamDevEnv.uasset +++ b/Plugins/BeamableCore/Content/Environments/BeamDevEnv.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f3aa97f40e8ce4e8a88b680d64667642950371186911a737406468a0f8e93acc -size 2082 +oid sha256:a69e98dfc1f87ae5b2e6afbfccbacba848c6ff95e5eb87c455f533415048a564 +size 2229 diff --git a/Plugins/BeamableCore/Content/Environments/BeamProdEnv.uasset b/Plugins/BeamableCore/Content/Environments/BeamProdEnv.uasset index c774f9ec..160f55bc 100644 --- a/Plugins/BeamableCore/Content/Environments/BeamProdEnv.uasset +++ b/Plugins/BeamableCore/Content/Environments/BeamProdEnv.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ae221e49ea23b41668a4532d6a5ecf85a3c8173114a1e22ab99bad3a53c8b0b4 -size 2099 +oid sha256:c2a6186808851eb3af4347dfa7b932a7c461eed5355cb33745b8325fe20c2f1c +size 2219 diff --git a/Plugins/BeamableCore/Content/Environments/BeamStagingEnv.uasset b/Plugins/BeamableCore/Content/Environments/BeamStagingEnv.uasset index 4b4c4d10..8a28daf4 100644 --- a/Plugins/BeamableCore/Content/Environments/BeamStagingEnv.uasset +++ b/Plugins/BeamableCore/Content/Environments/BeamStagingEnv.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8061ad87bd3c43faf4bd2b271090fe5c1d648435383e111524d39922ad483e12 -size 2149 +oid sha256:cbc4594c6ac04b8ff9e7bc7595f38ceeaf7a07d2d2263f3cf90aa24c51311e00 +size 2269 diff --git a/Plugins/BeamableCore/Source/BeamableCore/Public/BeamEnvironment.h b/Plugins/BeamableCore/Source/BeamableCore/Public/BeamEnvironment.h index 1debc90d..44d2a9c3 100644 --- a/Plugins/BeamableCore/Source/BeamableCore/Public/BeamEnvironment.h +++ b/Plugins/BeamableCore/Source/BeamableCore/Public/BeamEnvironment.h @@ -89,6 +89,8 @@ class BEAMABLECORE_API UBeamEnvironmentData : public UDataAsset, public FJsonSer FString SDKVersion; UPROPERTY(EditAnywhere) FString DockerRegistryUrl; + UPROPERTY(EditAnywhere) + FString DocsUrl; UPROPERTY(EditAnywhere) FBeamPackageVersion Version; diff --git a/Plugins/BeamableCore/Source/BeamableCoreRuntimeEditor/Private/Subsystems/BeamEditor.cpp b/Plugins/BeamableCore/Source/BeamableCoreRuntimeEditor/Private/Subsystems/BeamEditor.cpp index 4e897867..683bcc88 100644 --- a/Plugins/BeamableCore/Source/BeamableCoreRuntimeEditor/Private/Subsystems/BeamEditor.cpp +++ b/Plugins/BeamableCore/Source/BeamableCoreRuntimeEditor/Private/Subsystems/BeamEditor.cpp @@ -46,7 +46,12 @@ void UBeamEditor::ClearBeamableWindowMessage() void UBeamEditor::OpenDocsPage(FDocsPageItem item) { - FString FullUri = FString("https://beamable.github.io/UnrealSDK/") + item.Path; + FString Docs = GetDefault()->BeamableEnvironment->DocsUrl; + if(Docs.IsEmpty()) + { + Docs = FString("https://beamable.github.io/UnrealSDK/"); + } + const FString FullUri = Docs + item.Path; FPlatformProcess::LaunchURL(*FullUri, nullptr, nullptr); }