mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-05 00:07:25 +00:00
38519f3b9a
* Fix redundancies * Add back elses * Settings Refactor * Fix Disposal functions * Use `ReflectionBinding` instead of redundant funcs * Ac_K suggestions * Update Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update locale keys * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Views/Settings/SettingsSystemView.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Views/Settings/SettingsSystemView.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Update Ryujinx.Ava/UI/Windows/SettingsWindow.axaml.cs Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * Use block-scoped namespaces * Fix typo * Make `TimeZone` internal again Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
218 lines
No EOL
12 KiB
XML
218 lines
No EOL
12 KiB
XML
<UserControl
|
|
x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsGraphicsView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
|
|
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
|
|
mc:Ignorable="d"
|
|
x:CompileBindings="True"
|
|
x:DataType="viewModels:SettingsViewModel">
|
|
<Design.DataContext>
|
|
<viewModels:SettingsViewModel />
|
|
</Design.DataContext>
|
|
<ScrollViewer
|
|
Name="GraphicsPage"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<Border Classes="settings">
|
|
<StackPanel
|
|
Margin="10"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical"
|
|
Spacing="10">
|
|
<TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsAPI}" />
|
|
<StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsBackend}"
|
|
Width="250" />
|
|
<ComboBox Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale SettingsTabGraphicsBackendTooltip}"
|
|
SelectedIndex="{Binding GraphicsBackendIndex}">
|
|
<ComboBoxItem IsVisible="{Binding IsVulkanAvailable}">
|
|
<TextBlock Text="Vulkan" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem IsEnabled="{Binding IsOpenGLAvailable}">
|
|
<TextBlock Text="OpenGL" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" IsVisible="{Binding IsVulkanSelected}">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsPreferredGpu}"
|
|
Width="250" />
|
|
<ComboBox Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale SettingsTabGraphicsPreferredGpuTooltip}"
|
|
SelectedIndex="{Binding PreferredGpuIndex}"
|
|
Items="{Binding AvailableGpus}"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<Separator Height="1" />
|
|
<TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsFeatures}" />
|
|
<StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
|
|
<StackPanel Orientation="Vertical">
|
|
<CheckBox IsChecked="{Binding EnableShaderCache}"
|
|
ToolTip.Tip="{locale:Locale ShaderCacheToggleTooltip}">
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsEnableShaderCache}" />
|
|
</CheckBox>
|
|
<CheckBox IsChecked="{Binding EnableTextureRecompression}"
|
|
ToolTip.Tip="{locale:Locale SettingsEnableTextureRecompressionTooltip}">
|
|
<TextBlock Text="{locale:Locale SettingsEnableTextureRecompression}" />
|
|
</CheckBox>
|
|
<CheckBox IsChecked="{Binding EnableMacroHLE}"
|
|
ToolTip.Tip="{locale:Locale SettingsEnableMacroHLETooltip}">
|
|
<TextBlock Text="{locale:Locale SettingsEnableMacroHLE}" />
|
|
</CheckBox>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsResolutionScale}"
|
|
Width="250" />
|
|
<ComboBox SelectedIndex="{Binding ResolutionScale}"
|
|
Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale ResolutionScaleTooltip}">
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleCustom}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScaleNative}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale2x}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale3x}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsResolutionScale4x}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
<ui:NumberBox
|
|
Margin="10,0,0,0"
|
|
ToolTip.Tip="{locale:Locale ResolutionScaleEntryTooltip}"
|
|
MinWidth="150"
|
|
SmallChange="0.1"
|
|
LargeChange="1"
|
|
SimpleNumberFormat="F2"
|
|
SpinButtonPlacementMode="Inline"
|
|
IsVisible="{Binding IsCustomResolutionScaleActive}"
|
|
Maximum="100"
|
|
Minimum="0.1"
|
|
Value="{Binding CustomResolutionScale}" />
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale AnisotropyTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering}"
|
|
Width="250" />
|
|
<ComboBox SelectedIndex="{Binding MaxAnisotropy}"
|
|
Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale AnisotropyTooltip}">
|
|
<ComboBoxItem>
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabGraphicsAnisotropicFilteringAuto}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering2x}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering4x}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering8x}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock
|
|
Text="{locale:Locale SettingsTabGraphicsAnisotropicFiltering16x}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale AspectRatioTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsAspectRatio}"
|
|
Width="250" />
|
|
<ComboBox SelectedIndex="{Binding AspectRatio}"
|
|
Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale AspectRatioTooltip}">
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio4x3}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x9}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio16x10}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio21x9}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatio32x9}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale SettingsTabGraphicsAspectRatioStretch}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical"
|
|
Spacing="10">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale GraphicsBackendThreadingTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsBackendMultithreading}"
|
|
Width="250" />
|
|
<ComboBox Width="350"
|
|
HorizontalContentAlignment="Left"
|
|
ToolTip.Tip="{locale:Locale GalThreadingTooltip}"
|
|
SelectedIndex="{Binding GraphicsBackendMultithreadingIndex}">
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale CommonAuto}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale CommonOff}" />
|
|
</ComboBoxItem>
|
|
<ComboBoxItem>
|
|
<TextBlock Text="{locale:Locale CommonOn}" />
|
|
</ComboBoxItem>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<Separator Height="1" />
|
|
<TextBlock Classes="h1" Text="{locale:Locale SettingsTabGraphicsDeveloperOptions}" />
|
|
<StackPanel
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Orientation="Vertical"
|
|
Spacing="10">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock VerticalAlignment="Center"
|
|
ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}"
|
|
Text="{locale:Locale SettingsTabGraphicsShaderDumpPath}"
|
|
Width="250" />
|
|
<TextBox Text="{Binding ShaderDumpPath}"
|
|
Width="350"
|
|
ToolTip.Tip="{locale:Locale ShaderDumpPathTooltip}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</UserControl> |