Custom configuration for each game #632

Merged
Goodfeat merged 75 commits from master into master 2025-02-26 03:11:20 +00:00
2 changed files with 14 additions and 3 deletions
Showing only changes of commit 3a8e6e3117 - Show all commits

View File

@ -29,6 +29,7 @@
IsVisible="False"
KeyboardNavigation.IsTabStop="False"/>
<Grid Name="Pages" IsVisible="False" Grid.Row="2">
<settings:SettingsInputView Name="InputPage" />
<settings:SettingsSystemView Name="SystemPage" />
<settings:SettingsCPUView Name="CpuPage" />
<settings:SettingsGraphicsView Name="GraphicsPage" />
@ -79,6 +80,10 @@
</ui:NavigationView.PaneHeader>
<ui:NavigationView.MenuItems>
<ui:NavigationViewItem
Content="{ext:Locale SettingsTabInput}"
Tag="InputPage"
IconSource="Games" />
<ui:NavigationViewItem
Content="{ext:Locale SettingsTabSystem}"
Tag="SystemPage"

View File

@ -41,6 +41,7 @@ namespace Ryujinx.Ava.UI.Windows
viewModel.SelectedApplication.Icon);
ViewModel.CloseWindow += Close;
ViewModel.SaveSettingsEvent += SaveSettings;
InitializeComponent();
Load();
@ -51,6 +52,11 @@ namespace Ryujinx.Ava.UI.Windows
}
public void SaveSettings()
{
InputPage.InputView?.SaveCurrentProfile();
}
private void Load()
{
@ -67,9 +73,9 @@ namespace Ryujinx.Ava.UI.Windows
{
switch (navItem.Tag.ToString())
{
//case nameof(InputPage):
// NavPanel.Content = InputPage;
// break;
case nameof(InputPage):
NavPanel.Content = InputPage;
break;
case nameof(SystemPage):
SystemPage.ViewModel = ViewModel;
NavPanel.Content = SystemPage;