Custom configuration for each game #632
@ -29,6 +29,7 @@
|
|||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
KeyboardNavigation.IsTabStop="False"/>
|
KeyboardNavigation.IsTabStop="False"/>
|
||||||
<Grid Name="Pages" IsVisible="False" Grid.Row="2">
|
<Grid Name="Pages" IsVisible="False" Grid.Row="2">
|
||||||
|
<settings:SettingsInputView Name="InputPage" />
|
||||||
<settings:SettingsSystemView Name="SystemPage" />
|
<settings:SettingsSystemView Name="SystemPage" />
|
||||||
<settings:SettingsCPUView Name="CpuPage" />
|
<settings:SettingsCPUView Name="CpuPage" />
|
||||||
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
<settings:SettingsGraphicsView Name="GraphicsPage" />
|
||||||
@ -79,6 +80,10 @@
|
|||||||
</ui:NavigationView.PaneHeader>
|
</ui:NavigationView.PaneHeader>
|
||||||
|
|
||||||
<ui:NavigationView.MenuItems>
|
<ui:NavigationView.MenuItems>
|
||||||
|
<ui:NavigationViewItem
|
||||||
|
Content="{ext:Locale SettingsTabInput}"
|
||||||
|
Tag="InputPage"
|
||||||
|
IconSource="Games" />
|
||||||
<ui:NavigationViewItem
|
<ui:NavigationViewItem
|
||||||
Content="{ext:Locale SettingsTabSystem}"
|
Content="{ext:Locale SettingsTabSystem}"
|
||||||
Tag="SystemPage"
|
Tag="SystemPage"
|
||||||
|
@ -41,6 +41,7 @@ namespace Ryujinx.Ava.UI.Windows
|
|||||||
viewModel.SelectedApplication.Icon);
|
viewModel.SelectedApplication.Icon);
|
||||||
|
|
||||||
ViewModel.CloseWindow += Close;
|
ViewModel.CloseWindow += Close;
|
||||||
|
ViewModel.SaveSettingsEvent += SaveSettings;
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Load();
|
Load();
|
||||||
@ -51,6 +52,11 @@ namespace Ryujinx.Ava.UI.Windows
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SaveSettings()
|
||||||
|
{
|
||||||
|
InputPage.InputView?.SaveCurrentProfile();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void Load()
|
private void Load()
|
||||||
{
|
{
|
||||||
@ -67,9 +73,9 @@ namespace Ryujinx.Ava.UI.Windows
|
|||||||
{
|
{
|
||||||
switch (navItem.Tag.ToString())
|
switch (navItem.Tag.ToString())
|
||||||
{
|
{
|
||||||
//case nameof(InputPage):
|
case nameof(InputPage):
|
||||||
// NavPanel.Content = InputPage;
|
NavPanel.Content = InputPage;
|
||||||
// break;
|
break;
|
||||||
case nameof(SystemPage):
|
case nameof(SystemPage):
|
||||||
SystemPage.ViewModel = ViewModel;
|
SystemPage.ViewModel = ViewModel;
|
||||||
NavPanel.Content = SystemPage;
|
NavPanel.Content = SystemPage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user