diff --git a/SPT-AKI Profile Editor.Tests/Hepers/TestsDialogManager.cs b/SPT-AKI Profile Editor.Tests/Hepers/TestsDialogManager.cs index 45c149c..b9b84e2 100644 --- a/SPT-AKI Profile Editor.Tests/Hepers/TestsDialogManager.cs +++ b/SPT-AKI Profile Editor.Tests/Hepers/TestsDialogManager.cs @@ -31,6 +31,11 @@ public Task HideProgressDialog() return Task.CompletedTask; } + public Task OpenServerSelectHelpAsync(AppSettings appSettings) + { + return Task.CompletedTask; + } + public Task ShowAddMoneyDialog(AddableItem money, RelayCommand addCommand) { addCommand.Execute(null); diff --git a/SPT-AKI Profile Editor/Helpers/MetroDialogManager.cs b/SPT-AKI Profile Editor/Helpers/MetroDialogManager.cs index 2efb3f3..9aa3ab1 100644 --- a/SPT-AKI Profile Editor/Helpers/MetroDialogManager.cs +++ b/SPT-AKI Profile Editor/Helpers/MetroDialogManager.cs @@ -55,6 +55,8 @@ public Task ShowProgressDialog(string title, MetroDialogSettings dialogSettings = null); public Task HideProgressDialog(); + + public Task OpenServerSelectHelpAsync(AppSettings appSettings); } public class MetroDialogManager : IDialogManager @@ -230,6 +232,12 @@ public async Task HideProgressDialog() progressDialog = null; } + public async Task OpenServerSelectHelpAsync(AppSettings appSettings) + { + CustomDialog helpDialog = CustomDialog(AppData.AppLocalization.GetLocalizedString("server_select_help"), 500); + await ShowCustomDialog(viewModel, helpDialog, new ServerSelectHelpDialogViewModel(appSettings, viewModel)); + } + private static CustomDialog CustomDialog(string title, double width) => new() { Title = title, diff --git a/SPT-AKI Profile Editor/Resources/Images/server_folder.jpg b/SPT-AKI Profile Editor/Resources/Images/server_folder.jpg index 4ba2b2b..71c6d1d 100644 Binary files a/SPT-AKI Profile Editor/Resources/Images/server_folder.jpg and b/SPT-AKI Profile Editor/Resources/Images/server_folder.jpg differ diff --git a/SPT-AKI Profile Editor/Resources/Labels.xaml b/SPT-AKI Profile Editor/Resources/Labels.xaml index ed4a547..6cc17ae 100644 --- a/SPT-AKI Profile Editor/Resources/Labels.xaml +++ b/SPT-AKI Profile Editor/Resources/Labels.xaml @@ -1,5 +1,4 @@ - + + + +