mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
111 lines
5.3 KiB
XML
111 lines
5.3 KiB
XML
<UserControl
|
|
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:vm="using:Mesen.ViewModels"
|
|
xmlns:c="using:Mesen.Controls"
|
|
xmlns:v="using:Mesen.Views"
|
|
xmlns:dc="using:Mesen.Debugger.Controls"
|
|
xmlns:cfg="using:Mesen.Config"
|
|
xmlns:l="using:Mesen.Localization"
|
|
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="250"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
x:DataType="vm:GbaConfigViewModel"
|
|
x:Class="Mesen.Views.GbaConfigView"
|
|
>
|
|
<Design.DataContext>
|
|
<vm:GbaConfigViewModel />
|
|
</Design.DataContext>
|
|
|
|
<TabControl TabStripPlacement="Top" SelectedIndex="{Binding SelectedTab}">
|
|
<TabItem Header="{l:Translate tpgGeneral}">
|
|
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
|
|
<StackPanel>
|
|
<CheckBox IsChecked="{Binding Config.SkipBootScreen}" Content="{l:Translate chkSkipBootScreen}"/>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{l:Translate tpgAudio}">
|
|
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
|
|
<StackPanel>
|
|
<c:GroupBox Header="{l:Translate grpVolume}" HorizontalAlignment="Left">
|
|
<StackPanel Orientation="Horizontal" Height="150">
|
|
<StackPanel.Styles>
|
|
<Style Selector="c|MesenSlider">
|
|
<Setter Property="Minimum" Value="0" />
|
|
<Setter Property="Maximum" Value="100" />
|
|
<Setter Property="Orientation" Value="Vertical" />
|
|
<Setter Property="Margin" Value="5 0" />
|
|
</Style>
|
|
</StackPanel.Styles>
|
|
|
|
<c:MesenSlider Text="{l:Translate lblChannelA}" Value="{Binding Config.ChannelAVol}" />
|
|
<c:MesenSlider Text="{l:Translate lblChannelB}" Value="{Binding Config.ChannelBVol}" />
|
|
<c:MesenSlider Text="{l:Translate lblSquare1}" Value="{Binding Config.Square1Vol}" />
|
|
<c:MesenSlider Text="{l:Translate lblSquare2}" Value="{Binding Config.Square2Vol}" />
|
|
<c:MesenSlider Text="{l:Translate lblWave}" Value="{Binding Config.WaveVol}" />
|
|
<c:MesenSlider Text="{l:Translate lblNoise}" Value="{Binding Config.NoiseVol}" />
|
|
</StackPanel>
|
|
</c:GroupBox>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{l:Translate tpgEmulation}">
|
|
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
|
|
<StackPanel>
|
|
<StackPanel Orientation="Horizontal" IsVisible="False">
|
|
<TextBlock Text="{l:Translate lblRamPowerOnState}" />
|
|
<c:EnumComboBox SelectedItem="{Binding Config.RamPowerOnState}" Width="200" />
|
|
</StackPanel>
|
|
<Grid ColumnDefinitions="Auto,Auto" RowDefinitions="Auto,Auto">
|
|
<TextBlock Text="{l:Translate lblSaveType}" />
|
|
<c:EnumComboBox SelectedItem="{Binding Config.SaveType}" MinWidth="150" Grid.Column="1" />
|
|
<TextBlock Text="{l:Translate lblRtcType}" Grid.Row="1" />
|
|
<c:EnumComboBox SelectedItem="{Binding Config.RtcType}" MinWidth="150" Grid.Row="1" Grid.Column="1" />
|
|
</Grid>
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.EnableMgbaLogApi}" Text="{l:Translate chkEnableMgbaLogApi}" />
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{l:Translate tpgInput}">
|
|
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
|
|
<StackPanel>
|
|
<c:OptionSection Header="{l:Translate grpControllers}" Margin="0">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{l:Translate lblPlayer1}" />
|
|
<Button
|
|
Margin="10 0 0 0"
|
|
Command="{Binding SetupPlayer}"
|
|
CommandParameter="{Binding $self}"
|
|
Content="{l:Translate btnSetup}"
|
|
/>
|
|
</StackPanel>
|
|
</c:OptionSection>
|
|
<c:OptionSection Header="{l:Translate grpGeneral}">
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.AllowInvalidInput}" Text="{l:Translate chkAllowInvalidInput}" />
|
|
</c:OptionSection>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{l:Translate tpgVideo}">
|
|
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
|
|
<StackPanel>
|
|
<v:VideoConfigOverrideView DataContext="{Binding Config.ConfigOverrides}" />
|
|
|
|
<c:OptionSection Header="{l:Translate lblLcdSettings}">
|
|
<CheckBox IsChecked="{Binding Config.GbaAdjustColors}" Content="{l:Translate chkGbaAdjustColors}"/>
|
|
<CheckBox IsChecked="{Binding Config.BlendFrames}" Content="{l:Translate chkGbBlendFrames}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.DisableFrameSkipping}" Text="{l:Translate chkDisableFrameSkipping}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.HideBgLayer1}" Text="{l:Translate chkHideBgLayer1}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.HideBgLayer2}" Text="{l:Translate chkHideBgLayer2}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.HideBgLayer3}" Text="{l:Translate chkHideBgLayer3}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.HideBgLayer4}" Text="{l:Translate chkHideBgLayer4}" />
|
|
<c:CheckBoxWarning IsChecked="{Binding Config.DisableSprites}" Text="{l:Translate chkDisableSprites}" />
|
|
</c:OptionSection>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
</TabControl>
|
|
</UserControl>
|