diff --git a/project/Aki.Launcher.Base/Controllers/ServerManager.cs b/project/Aki.Launcher.Base/Controllers/ServerManager.cs index bf192d4..ab76001 100644 --- a/project/Aki.Launcher.Base/Controllers/ServerManager.cs +++ b/project/Aki.Launcher.Base/Controllers/ServerManager.cs @@ -7,10 +7,9 @@ */ -using Aki.Launch.Models.Aki; using Aki.Launcher.MiniCommon; +using Aki.Launcher.Models.Aki; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; namespace Aki.Launcher diff --git a/project/Aki.Launcher.Base/Helpers/LocalizationProvider.cs b/project/Aki.Launcher.Base/Helpers/LocalizationProvider.cs index c2a1ace..eac6378 100644 --- a/project/Aki.Launcher.Base/Helpers/LocalizationProvider.cs +++ b/project/Aki.Launcher.Base/Helpers/LocalizationProvider.cs @@ -171,6 +171,9 @@ namespace Aki.Launcher.Helpers englishLocale.i_understand = "I Understand"; englishLocale.game_version_mismatch_format_2 = "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from"; englishLocale.description = "Description"; + englishLocale.server_mods = "Server Mods"; + englishLocale.profile_mods = "Profile Mods"; + englishLocale.author = "Author"; #endregion Directory.CreateDirectory(LocalizationProvider.DefaultLocaleFolderPath); @@ -1519,6 +1522,55 @@ namespace Aki.Launcher.Helpers } #endregion + #region server_mods + private string _server_mods; + public string server_mods + { + get => _server_mods; + set + { + if (_server_mods != value) + { + _server_mods = value; + RaisePropertyChanged(nameof(server_mods)); + } + } + } + #endregion + + #region profile_mods + private string _profile_mods; + public string profile_mods + { + get => _profile_mods; + set + { + if (_profile_mods != value) + { + _profile_mods = value; + RaisePropertyChanged(nameof(profile_mods)); + } + } + } + #endregion + + #region author + private string _author; + public string author + { + get => _author; + set + { + if (_author != value) + { + _author = value; + RaisePropertyChanged(nameof(author)); + } + } + } + + #endregion + #endregion public event PropertyChangedEventHandler PropertyChanged; diff --git a/project/Aki.Launcher.Base/Models/Aki/AkiMod.cs b/project/Aki.Launcher.Base/Models/Aki/AkiMod.cs new file mode 100644 index 0000000..7bd2dc8 --- /dev/null +++ b/project/Aki.Launcher.Base/Models/Aki/AkiMod.cs @@ -0,0 +1,11 @@ +namespace Aki.Launcher.Models.Aki +{ + public class AkiMod + { + public bool InServer { get; set; } + public bool InProfile { get; set; } + public string Author { get; set; } + public string Name { get; set; } + public string Version { get; set; } + } +} diff --git a/project/Aki.Launcher.Base/Models/Aki/AkiProfileModInfo.cs b/project/Aki.Launcher.Base/Models/Aki/AkiProfileModInfo.cs index e6eec09..82e8d4c 100644 --- a/project/Aki.Launcher.Base/Models/Aki/AkiProfileModInfo.cs +++ b/project/Aki.Launcher.Base/Models/Aki/AkiProfileModInfo.cs @@ -1,13 +1,10 @@ using System; -namespace Aki.Launch.Models.Aki +namespace Aki.Launcher.Models.Aki { - public class AkiProfileModInfo + public class AkiProfileModInfo : AkiMod { - public string Author { get; set; } - public string Name { get; set; } - public DateTime DateAdded { get; set; } - public string Version { get; set; } + public string DateAdded { get; set; } } } diff --git a/project/Aki.Launcher.Base/Models/Aki/AkiServerModInfo.cs b/project/Aki.Launcher.Base/Models/Aki/AkiServerModInfo.cs index 8cd1dbc..d53ac3a 100644 --- a/project/Aki.Launcher.Base/Models/Aki/AkiServerModInfo.cs +++ b/project/Aki.Launcher.Base/Models/Aki/AkiServerModInfo.cs @@ -1,15 +1,11 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; -namespace Aki.Launch.Models.Aki +namespace Aki.Launcher.Models.Aki { - public class AkiServerModInfo + public class AkiServerModInfo : AkiMod { - public string Name { get; set; } - public string Version { get; set; } public string Main { get; set; } public string License { get; set; } - public string Author { get; set; } public string AkiVersion { get; set; } public Dictionary Scripts { get; set; } public DevDependencies DevDependencies { get; set; } diff --git a/project/Aki.Launcher.Base/Models/Aki/DevDependencies.cs b/project/Aki.Launcher.Base/Models/Aki/DevDependencies.cs index 980c139..72d1ef9 100644 --- a/project/Aki.Launcher.Base/Models/Aki/DevDependencies.cs +++ b/project/Aki.Launcher.Base/Models/Aki/DevDependencies.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace Aki.Launch.Models.Aki +namespace Aki.Launcher.Models.Aki { public class DevDependencies { diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Simplified).json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Simplified).json index 4d2d040..4cf5d68 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Simplified).json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Simplified).json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "永久移除档案 '{0}'吗?", "i_understand": "我了解", "game_version_mismatch_format_2": "SPT无法运行,这是由于SPT需要EFT版本 '{1}',\n但现有版本是 '{0}'\n\n确保你已经按照你下载SPT的页面上的\n安装指导的描述降级你的EFT", - "description": "描述" + "description": "描述", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Traditional).json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Traditional).json index 747cc30..583f216 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Traditional).json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Chinese (Traditional).json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Permanently remove profile '{0}'?", "i_understand": "I Understand", "game_version_mismatch_format_2": "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/English.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/English.json index 004da11..bd30c22 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/English.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/English.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Permanently remove profile '{0}'?", "i_understand": "I Understand", "game_version_mismatch_format_2": "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/French.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/French.json index 29b20c7..34a924b 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/French.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/French.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Permanently remove profile '{0}'?", "i_understand": "I Understand", "game_version_mismatch_format_2": "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/German.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/German.json index 6846440..1899e64 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/German.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/German.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Permanently remove profile '{0}'?", "i_understand": "I Understand", "game_version_mismatch_format_2": "SPT is unable to run, this is because SPT expected to find EFT version '{1}',\nbut instead found version '{0}'\n\nEnsure you've downgraded your EFT as described in the install guide\non the page you downloaded SPT from", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Italian.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Italian.json index 017cfbe..fb72c8d 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Italian.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Italian.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Rimuovere permanentemente il profilo '{0}'?", "i_understand": "Accetto", "game_version_mismatch_format_2": "SPT non riesce ad avviarsi, questo è perché SPT si aspettava la versione di EFT '{1}',\nmentre invece tu hai la versione '{0}'\n\nAssicurati di aver downgradato correttamente EFT come descritto nella guida all'installazione\nche hai trovato sulla pagina web da cui hai scaricato SPT", - "description": "Descrizione" + "description": "Descrizione", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Japanese.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Japanese.json index eeab602..30e4728 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Japanese.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Japanese.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "プロファイル '{0}' を完全に削除しますか?", "i_understand": "了解", "game_version_mismatch_format_2": "SPT を実行できません。これは、SPT が EFT バージョン '{1}' を検出することを期待していたためです\n代わりにバージョン '{0}' を検出しました\n\nインストール ガイドの説明に従って EFT をダウングレードしたことを確認してください\n SPT をダウンロードしたページ", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Korean.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Korean.json index 1c074a7..7dc6d3e 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Korean.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Korean.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "프로필 '{0}'을 영구적으로 삭제하시겠습니까?", "i_understand": "이해하였습니다", "game_version_mismatch_format_2": "당신의 게임 버전은 '{0}'이며 호환되는 버전은 '{1}' 입니다.\n\n게임 실행에 문제가 발생하거나 되지 않을 수 있습니다.", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Russian.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Russian.json index a9d5566..2444e12 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Russian.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Russian.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Удалить профиль '{0}' безвозвратно?", "i_understand": "Я понимаю", "game_version_mismatch_format_2": "Ваша версия игры: '{0}' и совместимая версия: '{1}'.\n\nИгра может работать некорректно или не работать вообще.", - "description": "Description" + "description": "Description", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Spanish.json b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Spanish.json index 2fbc479..3735d58 100644 --- a/project/Aki.Launcher/Aki_Data/Launcher/Locales/Spanish.json +++ b/project/Aki.Launcher/Aki_Data/Launcher/Locales/Spanish.json @@ -80,5 +80,8 @@ "profile_remove_question_format_1": "Confirma si quieres borrar el perfil: '{0}'", "i_understand": "Lo entiendo", "game_version_mismatch_format_2": "SPT no puede iniciar, esto es debido a que la versión de EFT esperada es '{1}',\npero la versión encontrada es '{0}'\n\nAsegurate de haber realizado el downgrade de tu versión de EFT, tal como se indica en la guía de instalación\nen la página en la que has descargado SPT", - "description": "Descripción" + "description": "Descripción", + "server_mods": "Server Mods", + "profile_mods": "Profile Mods", + "author": "Author" } \ No newline at end of file diff --git a/project/Aki.Launcher/App.axaml b/project/Aki.Launcher/App.axaml index e32e261..ec353f3 100644 --- a/project/Aki.Launcher/App.axaml +++ b/project/Aki.Launcher/App.axaml @@ -48,5 +48,17 @@ + + + + + + + + diff --git a/project/Aki.Launcher/Assets/Styles.axaml b/project/Aki.Launcher/Assets/Styles.axaml index b12d7d2..7f47fc2 100644 --- a/project/Aki.Launcher/Assets/Styles.axaml +++ b/project/Aki.Launcher/Assets/Styles.axaml @@ -8,9 +8,6 @@ + + + + + + + + + + + - + -