Skip to content

Commit 598bbce

Browse files
Merge branch '5.3' into 5.4_dev
2 parents bda3684 + e2a9244 commit 598bbce

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

Resources/MPLIcon.png

2.2 KB
Loading

Source/MounteaDialogueSystemEditor/Private/EditorStyle/FMounteaDialogueGraphEditorStyle.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ void FMounteaDialogueGraphEditorStyle::Create()
146146
StyleSet->Set("MDSStyleSet.Dialoguer.Small", new IMAGE_BRUSH(TEXT("Dialoguer_Icon"), Icon16x16));
147147
StyleSet->Set("MDSStyleSet.Dialoguer.large", new IMAGE_BRUSH(TEXT("Dialoguer_Icon"), Icon64x64));
148148

149+
StyleSet->Set("MDSStyleSet.Launcher", new IMAGE_BRUSH(TEXT("MPLIcon"), Icon40x40));
150+
149151
StyleSet->Set("MDSStyleSet.Wiki", new IMAGE_BRUSH(TEXT("Wiki_Icon"), Icon40x40));
150152
StyleSet->Set("MDSStyleSet.Wiki.Small", new IMAGE_BRUSH(TEXT("Wiki_Icon"), Icon16x16));
151153
StyleSet->Set("MDSStyleSet.Wiki.large", new IMAGE_BRUSH(TEXT("Wiki_Icon"), Icon64x64));

Source/MounteaDialogueSystemEditor/Private/MounteaDialogueSystemEditor.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,16 @@ void FMounteaDialogueSystemEditor::SendHTTPGet_Tags()
381381
Request->ProcessRequest();
382382
}
383383

384+
void FMounteaDialogueSystemEditor::LauncherButtonClicked() const
385+
{
386+
const FString URL = "https://github.com/Mountea-Framework/MounteaProjectLauncher";
387+
388+
if (!URL.IsEmpty())
389+
{
390+
FPlatformProcess::LaunchURL(*URL, nullptr, nullptr);
391+
}
392+
}
393+
384394
void FMounteaDialogueSystemEditor::DialoguerButtonClicked() const
385395
{
386396
const FString URL = "https://mountea-framework.github.io/MounteaDialoguer/";
@@ -629,6 +639,16 @@ TSharedRef<SWidget> FMounteaDialogueSystemEditor::MakeMounteaMenuWidget() const
629639
)
630640
);
631641
}
642+
643+
// Launcher Tool Entry
644+
MenuBuilder.AddMenuEntry(
645+
LOCTEXT("MounteaSystemEditor_LauncherButton_Label", "Mountea Project Launcher"),
646+
LOCTEXT("MounteaSystemEditor_LauncherButton_ToolTip", "🚀 Open Mountea Project Launcher\n\n❔ Mountea Project Launcher is a standalone tool created for project launcher which can launch projects locally with multiple settings.\nUseful for testing."),
647+
FSlateIcon(FMounteaDialogueGraphEditorStyle::GetAppStyleSetName(), "MDSStyleSet.Launcher"),
648+
FUIAction(
649+
FExecuteAction::CreateRaw(this, &FMounteaDialogueSystemEditor::LauncherButtonClicked)
650+
)
651+
);
632652
MenuBuilder.EndSection();
633653

634654
return MenuBuilder.MakeWidget();

Source/MounteaDialogueSystemEditor/Public/MounteaDialogueSystemEditor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class FMounteaDialogueSystemEditor : public IModuleInterface
5252
void OnGetResponse_Tags(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
5353
UFUNCTION() void SendHTTPGet_Tags();
5454

55+
void LauncherButtonClicked() const;
5556
void DialoguerButtonClicked() const;
5657
void WikiButtonClicked() const;
5758
void PluginButtonClicked() const;

0 commit comments

Comments
 (0)