From fa8284da526c8cd1e7de64be1a30e4a7c4be80e5 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Fri, 26 Jan 2024 12:35:57 -0500 Subject: [PATCH] add mod info page --- .../CustomControls/ModInfoCard.axaml | 6 +- .../ViewModels/ModInfoViewModel.cs | 10 + .../ViewModels/ProfileViewModel.cs | 3 +- project/Aki.Launcher/Views/ModInfoView.axaml | 14 + .../Aki.Launcher/Views/ModInfoView.axaml.cs | 20 ++ project/Aki.Launcher/Views/ProfileView.axaml | 317 +++++++++--------- 6 files changed, 199 insertions(+), 171 deletions(-) create mode 100644 project/Aki.Launcher/ViewModels/ModInfoViewModel.cs create mode 100644 project/Aki.Launcher/Views/ModInfoView.axaml create mode 100644 project/Aki.Launcher/Views/ModInfoView.axaml.cs diff --git a/project/Aki.Launcher/CustomControls/ModInfoCard.axaml b/project/Aki.Launcher/CustomControls/ModInfoCard.axaml index 8982a1d..b045c5b 100644 --- a/project/Aki.Launcher/CustomControls/ModInfoCard.axaml +++ b/project/Aki.Launcher/CustomControls/ModInfoCard.axaml @@ -14,9 +14,9 @@ > + VerticalAlignment="Center" + Orientation="Horizontal" Spacing="5" + > diff --git a/project/Aki.Launcher/ViewModels/ModInfoViewModel.cs b/project/Aki.Launcher/ViewModels/ModInfoViewModel.cs new file mode 100644 index 0000000..aa2177c --- /dev/null +++ b/project/Aki.Launcher/ViewModels/ModInfoViewModel.cs @@ -0,0 +1,10 @@ +using ReactiveUI; + +namespace Aki.Launcher.ViewModels; + +public class ModInfoViewModel : ViewModelBase +{ + public ModInfoViewModel(IScreen Host) : base(Host) + { + } +} \ No newline at end of file diff --git a/project/Aki.Launcher/ViewModels/ProfileViewModel.cs b/project/Aki.Launcher/ViewModels/ProfileViewModel.cs index 03d1cbe..87bc112 100644 --- a/project/Aki.Launcher/ViewModels/ProfileViewModel.cs +++ b/project/Aki.Launcher/ViewModels/ProfileViewModel.cs @@ -104,7 +104,8 @@ namespace Aki.Launcher.ViewModels } } - public void ToggleModsListCommand() => ModsListIsVisible = !ModsListIsVisible; + public void OpenModsInfoCommand() => + NavigateTo(new ModInfoViewModel(HostScreen)); public void LogoutCommand() { diff --git a/project/Aki.Launcher/Views/ModInfoView.axaml b/project/Aki.Launcher/Views/ModInfoView.axaml new file mode 100644 index 0000000..1a08ff4 --- /dev/null +++ b/project/Aki.Launcher/Views/ModInfoView.axaml @@ -0,0 +1,14 @@ + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -