Files
gregExtractor/GUI/Views/ExtractorView.axaml
T

64 lines
3.1 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:models="clr-namespace:gregExtractor.Models"
x:Class="gregExtractor.GUI.Views.ExtractorView">
<Grid RowDefinitions="Auto,Auto,*,Auto">
<Border Classes="greg-card" Grid.Row="0">
<Grid ColumnDefinitions="Auto,*,Auto,Auto">
<TextBlock Text="IL2CPP" VerticalAlignment="Center" Classes="greg-secondary"/>
<TextBox Grid.Column="1" Text="{Binding Il2CppPath}" Classes="greg-input"/>
<Button Grid.Column="2" Content="Auto" Classes="greg-secondary" Command="{Binding AutoDetectPathCommand}"/>
<Button Grid.Column="3" Content="Browse" Classes="greg-primary" Command="{Binding BrowsePathCommand}" CommandParameter="Il2CppPath"/>
</Grid>
</Border>
<Border Classes="greg-card" Grid.Row="1">
<Grid ColumnDefinitions="Auto,*">
<StackPanel Grid.Column="0">
<TextBlock Text="Total" Classes="greg-secondary"/>
<TextBlock Text="{Binding TotalHooks}" FontSize="18" FontWeight="SemiBold"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" Spacing="24">
<StackPanel><TextBlock Text="Grouped" Classes="greg-secondary"/><TextBlock Text="{Binding GroupedHooks}"/></StackPanel>
<StackPanel><TextBlock Text="Unknown" Classes="greg-secondary"/><TextBlock Text="{Binding UnknownHooks}"/></StackPanel>
<StackPanel><TextBlock Text="Groups" Classes="greg-secondary"/><TextBlock Text="{Binding GroupCount}"/></StackPanel>
</StackPanel>
</Grid>
</Border>
<Grid Grid.Row="2" ColumnDefinitions="340,*">
<Border Classes="greg-card" Grid.Column="0">
<Grid RowDefinitions="Auto,*">
<Button Content="Analyse starten" Classes="greg-primary" Command="{Binding StartAnalysisCommand}" Height="36"/>
<ScrollViewer Grid.Row="1">
<ItemsControl ItemsSource="{Binding HookGroups}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid ColumnDefinitions="Auto,*,Auto" Margin="0,4">
<CheckBox IsChecked="{Binding IsSelected}"/>
<TextBlock Grid.Column="1" Text="{Binding GroupName}" Margin="8,0,0,0"/>
<TextBlock Grid.Column="2" Text="{Binding Count}" Classes="greg-secondary"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
</Border>
<Border Classes="greg-card" Grid.Column="1">
<ListBox ItemsSource="{Binding LogLines}"/>
</Border>
</Grid>
<ProgressBar Grid.Row="3" Value="{Binding Progress}" Maximum="100" Classes="greg-progress"/>
<Border IsVisible="{Binding IsLoading}" Background="#880B1220" CornerRadius="12">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="8">
<ProgressBar IsIndeterminate="True" Width="220"/>
<TextBlock Text="Analyse läuft..."/>
</StackPanel>
</Border>
</Grid>
</UserControl>