mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
79 lines
3.9 KiB
XML
79 lines
3.9 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:cfg="using:Mesen.Config"
|
|
xmlns:c="using:Mesen.Controls"
|
|
xmlns:dc="using:Mesen.Debugger.Controls"
|
|
mc:Ignorable="d"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
x:DataType="cfg:SnesEventViewerConfig"
|
|
x:Class="Mesen.Debugger.Views.SnesEventViewerConfigView"
|
|
>
|
|
<Design.DataContext>
|
|
<cfg:SnesEventViewerConfig />
|
|
</Design.DataContext>
|
|
|
|
<StackPanel>
|
|
<Grid ColumnDefinitions="10, 1*, 10, 1*" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto">
|
|
<c:OptionSection Header="PPU Register Writes" Margin="0" Grid.Column="0" Grid.ColumnSpan="2" />
|
|
<StackPanel Grid.Column="1" Grid.Row="1">
|
|
<dc:EventViewerCategoryControl Text="VRAM" Config="{Binding PpuRegisterVramWrites}" />
|
|
<dc:EventViewerCategoryControl Text="CGRAM" Config="{Binding PpuRegisterCgramWrites}" />
|
|
<dc:EventViewerCategoryControl Text="OAM" Config="{Binding PpuRegisterOamWrites}" />
|
|
<dc:EventViewerCategoryControl Text="Mode 7" Config="{Binding PpuRegisterMode7Writes}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="3" Grid.Row="1">
|
|
<dc:EventViewerCategoryControl Text="BG Options" Config="{Binding PpuRegisterBgOptionWrites}" />
|
|
<dc:EventViewerCategoryControl Text="BG Scroll" Config="{Binding PpuRegisterBgScrollWrites}" />
|
|
<dc:EventViewerCategoryControl Text="Window" Config="{Binding PpuRegisterWindowWrites}" />
|
|
<dc:EventViewerCategoryControl Text="Others" Config="{Binding PpuRegisterOtherWrites}" />
|
|
</StackPanel>
|
|
<c:OptionSection Header="Other events" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" />
|
|
<dc:EventViewerCategoryControl
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Text="PPU Reg. Read"
|
|
Config="{Binding PpuRegisterReads}"
|
|
/>
|
|
<StackPanel Grid.Column="1" Grid.Row="4">
|
|
<dc:EventViewerCategoryControl Text="SPC Reg. Read" Config="{Binding ApuRegisterReads}" />
|
|
<dc:EventViewerCategoryControl Text="CPU Reg. Read" Config="{Binding CpuRegisterReads}" />
|
|
<dc:EventViewerCategoryControl Text="WRAM Reg. Read" Config="{Binding WorkRamRegisterReads}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="3" Grid.Row="4">
|
|
<dc:EventViewerCategoryControl Text="SPC Reg. Write" Config="{Binding ApuRegisterWrites}" />
|
|
<dc:EventViewerCategoryControl Text="CPU Reg. Write" Config="{Binding CpuRegisterWrites}" />
|
|
<dc:EventViewerCategoryControl Text="WRAM Reg. Write" Config="{Binding WorkRamRegisterWrites}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2">
|
|
<dc:EventViewerCategoryControl Text="IRQ" Config="{Binding Irq}" />
|
|
<dc:EventViewerCategoryControl Text="NMI" Config="{Binding Nmi}" />
|
|
<dc:EventViewerCategoryControl Text="Marked Breakpoints" Config="{Binding MarkedBreakpoints}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<c:OptionSection Header="DMA Filters">
|
|
<Grid ColumnDefinitions="1*, 10, 1*" RowDefinitions="Auto">
|
|
<StackPanel Grid.Column="0">
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel0}" Content="Channel 0" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel1}" Content="Channel 1" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel2}" Content="Channel 2" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel3}" Content="Channel 3" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2">
|
|
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel4}" Content="Channel 4" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel5}" Content="Channel 5" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel6}" Content="Channel 6" />
|
|
<CheckBox IsChecked="{Binding ShowDmaChannel7}" Content="Channel 7" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</c:OptionSection>
|
|
|
|
<CheckBox Margin="0 10 0 0" IsChecked="{Binding ShowPreviousFrameEvents}" Content="Show previous frame events" />
|
|
</StackPanel>
|
|
</UserControl>
|