| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- <UserControl
- x:Class="Ryujinx.Ava.UI.Views.Settings.SettingsSystemView"
- 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:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
- xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
- xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers"
- mc:Ignorable="d"
- x:DataType="viewModels:SettingsViewModel">
- <Design.DataContext>
- <viewModels:SettingsViewModel />
- </Design.DataContext>
- <ScrollViewer
- Name="SystemPage"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <Border Classes="settings">
- <StackPanel
- Margin="10"
- HorizontalAlignment="Stretch"
- Orientation="Vertical"
- Spacing="10">
- <TextBlock
- Classes="h1"
- Text="{ext:Locale SettingsTabSystemCore}" />
- <StackPanel
- Margin="10,0,0,0"
- Orientation="Vertical">
- <StackPanel
- Margin="0,0,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemSystemRegion}"
- Width="250" />
- <ComboBox
- SelectedIndex="{Binding Region}"
- ToolTip.Tip="{ext:Locale RegionTooltip}"
- HorizontalContentAlignment="Left"
- Width="350">
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionJapan}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionUSA}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionEurope}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionAustralia}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionChina}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionKorea}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemRegionTaiwan}" />
- </ComboBoxItem>
- </ComboBox>
- </StackPanel>
- <StackPanel
- Margin="0,0,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemSystemLanguage}"
- ToolTip.Tip="{ext:Locale LanguageTooltip}"
- Width="250" />
- <ComboBox
- SelectedIndex="{Binding Language}"
- ToolTip.Tip="{ext:Locale LanguageTooltip}"
- HorizontalContentAlignment="Left"
- Width="350">
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageJapanese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageAmericanEnglish}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageFrench}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageGerman}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageItalian}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageSpanish}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageChinese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageKorean}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageDutch}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguagePortuguese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageRussian}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageTaiwanese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageBritishEnglish}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageCanadianFrench}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageLatinAmericanSpanish}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageSimplifiedChinese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageTraditionalChinese}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" />
- </ComboBoxItem>
- </ComboBox>
- </StackPanel>
- <StackPanel
- Margin="0,0,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemSystemTimeZone}"
- ToolTip.Tip="{ext:Locale TimezoneTooltip}"
- Width="250" />
- <AutoCompleteBox
- Name="TimeZoneBox"
- Width="350"
- MaxDropDownHeight="500"
- FilterMode="Contains"
- ItemsSource="{Binding TimeZones}"
- SelectionChanged="TimeZoneBox_OnSelectionChanged"
- Text="{Binding Path=TimeZone, Mode=OneWay}"
- TextChanged="TimeZoneBox_OnTextChanged"
- ToolTip.Tip="{ext:Locale TimezoneTooltip}"
- ValueMemberBinding="{Binding Mode=OneWay, Converter={x:Static helpers:TimeZoneConverter.Instance}}" />
- </StackPanel>
- <StackPanel
- IsEnabled="{Binding !IsGameTitleNotNull}"
- Opacity="{Binding PanelOpacity}"
- Margin="0,0,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemSystemTime}"
- ToolTip.Tip="{ext:Locale TimeTooltip}"
- Width="250"/>
- <DatePicker
- VerticalAlignment="Center"
- IsEnabled="{Binding !MatchSystemTime}"
- SelectedDate="{Binding CurrentDate}"
- ToolTip.Tip="{ext:Locale TimeTooltip}"
- Width="350" />
- <TextBlock Classes="globalConfigMarker" IsVisible="{Binding IsGameTitleNotNull}"/>
- </StackPanel>
- <StackPanel
- IsEnabled="{Binding !IsGameTitleNotNull}"
- Opacity="{Binding PanelOpacity}"
- Margin="250,0,0,10"
- Orientation="Horizontal">
- <TimePicker
- VerticalAlignment="Center"
- ClockIdentifier="24HourClock"
- IsEnabled="{Binding !MatchSystemTime}"
- SelectedTime="{Binding CurrentTime}"
- Width="350"
- ToolTip.Tip="{ext:Locale TimeTooltip}" />
- <TextBlock Classes="globalConfigMarker" IsVisible="{Binding IsGameTitleNotNull}"/>
- </StackPanel>
- <StackPanel
- IsEnabled="{Binding !IsGameTitleNotNull}"
- Opacity="{Binding PanelOpacity}"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemSystemTimeMatch}"
- ToolTip.Tip="{ext:Locale MatchTimeTooltip}"
- Width="250"/>
- <CheckBox
- VerticalAlignment="Center"
- IsChecked="{Binding MatchSystemTime}"
- ToolTip.Tip="{ext:Locale MatchTimeTooltip}"/>
- <TextBlock Classes="globalConfigMarker" IsVisible="{Binding IsGameTitleNotNull}"/>
- </StackPanel>
- <Separator />
- <StackPanel Margin="0,10,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemVSyncMode}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemVSyncModeTooltip}"
- Width="250" />
- <ComboBox
- IsVisible="{Binding EnableCustomVSyncInterval}"
- SelectedIndex="{Binding VSyncMode}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemVSyncModeTooltipCustom}"
- HorizontalContentAlignment="Left"
- Width="350">
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemVSyncModeSwitch}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemVSyncModeUnbounded}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemVSyncModeCustom}" />
- </ComboBoxItem>
- </ComboBox>
- <ComboBox
- IsVisible="{Binding !EnableCustomVSyncInterval}"
- SelectedIndex="{Binding VSyncMode}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemVSyncModeTooltip}"
- HorizontalContentAlignment="Left"
- Width="350">
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemVSyncModeSwitch}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemVSyncModeUnbounded}" />
- </ComboBoxItem>
- </ComboBox>
- </StackPanel>
- <StackPanel IsVisible="{Binding EnableCustomVSyncInterval}"
- Margin="0,0,0,10"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemCustomVSyncIntervalPercentage}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemCustomVSyncIntervalValueTooltip}"
- Width="250" />
- <Slider Value="{Binding CustomVSyncIntervalPercentageProxy}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemCustomVSyncIntervalSliderTooltip}"
- MinWidth="175"
- Margin="10,-3,0,0"
- Height="32"
- Padding="0,-5"
- TickFrequency="1"
- IsSnapToTickEnabled="True"
- LargeChange="10"
- SmallChange="1"
- VerticalAlignment="Center"
- Minimum="10"
- Maximum="400" />
- <TextBlock Margin="5,0"
- Width="40"
- Text="{Binding CustomVSyncIntervalPercentageText}"/>
- </StackPanel>
- <CheckBox IsChecked="{Binding EnableFsIntegrityChecks}">
- <TextBlock
- Text="{ext:Locale SettingsTabSystemEnableFsIntegrityChecks}"
- ToolTip.Tip="{ext:Locale FsIntegrityToggleTooltip}" />
- </CheckBox>
- </StackPanel>
- <Separator Height="1" />
- <StackPanel
- Orientation="Vertical"
- Spacing="5">
- <TextBlock
- Classes="h1"
- Text="{ext:Locale SettingsTabSystemHacks}" />
- <TextBlock
- Foreground="{DynamicResource SecondaryTextColor}"
- TextDecorations="Underline"
- Text="{ext:Locale SettingsTabSystemHacksNote}" />
- </StackPanel>
- <StackPanel
- Margin="10,0,0,0"
- Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- Text="{ext:Locale SettingsTabSystemDramSize}"
- Width="250" />
- <ComboBox
- SelectedIndex="{Binding DramSize}"
- ToolTip.Tip="{ext:Locale DRamTooltip}"
- HorizontalContentAlignment="Left"
- Width="350">
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemDramSize4GiB}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemDramSize6GiB}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemDramSize8GiB}" />
- </ComboBoxItem>
- <ComboBoxItem>
- <TextBlock Text="{ext:Locale SettingsTabSystemDramSize12GiB}" />
- </ComboBoxItem>
- </ComboBox>
- </StackPanel>
- <StackPanel
- Margin="10,0,0,0"
- HorizontalAlignment="Stretch"
- Orientation="Vertical">
- <CheckBox
- IsChecked="{Binding IgnoreMissingServices}"
- ToolTip.Tip="{ext:Locale IgnoreMissingServicesTooltip}">
- <TextBlock Text="{ext:Locale SettingsTabSystemIgnoreMissingServices}" />
- </CheckBox>
- <CheckBox
- IsChecked="{Binding IgnoreApplet}"
- ToolTip.Tip="{ext:Locale IgnoreControllerAppletTooltip}">
- <TextBlock Text="{ext:Locale SettingsTabSystemIgnoreControllerApplet}" />
- </CheckBox>
- <CheckBox
- IsChecked="{Binding EnableCustomVSyncInterval}"
- ToolTip.Tip="{ext:Locale SettingsTabSystemEnableCustomVSyncIntervalTooltip}">
- <TextBlock Text="{ext:Locale SettingsTabSystemEnableCustomVSyncInterval}" />
- </CheckBox>
- </StackPanel>
- </StackPanel>
- </Border>
- </ScrollViewer>
- </UserControl>
|