Files
gregExtractor/GUI/Views/CreateView.axaml
T

50 lines
2.5 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="gregExtractor.GUI.Views.CreateView">
<Grid RowDefinitions="Auto,*,Auto">
<Border Classes="greg-card" Grid.Row="0">
<StackPanel Orientation="Horizontal" Spacing="12" VerticalAlignment="Center">
<TextBlock Text="Wizard Step:" Classes="greg-secondary"/>
<TextBlock Text="{Binding Step}" FontWeight="SemiBold"/>
<Button Content="Zurück" Classes="greg-secondary" Command="{Binding PreviousStepCommand}"/>
<Button Content="Weiter" Classes="greg-secondary" Command="{Binding NextStepCommand}"/>
</StackPanel>
</Border>
<Grid Grid.Row="1" ColumnDefinitions="380,*">
<Border Classes="greg-card" Grid.Column="0">
<StackPanel Spacing="8">
<TextBlock Text="Mod Name" Classes="greg-secondary"/>
<TextBox Text="{Binding ModName}" Classes="greg-input"/>
<TextBlock Text="Author" Classes="greg-secondary"/>
<TextBox Text="{Binding Author}" Classes="greg-input"/>
<TextBlock Text="Version" Classes="greg-secondary"/>
<TextBox Text="{Binding Version}" Classes="greg-input"/>
<TextBlock Text="Beschreibung" Classes="greg-secondary"/>
<TextBox Text="{Binding Description}" Classes="greg-input"/>
<TextBlock Text="Template" Classes="greg-secondary"/>
<ComboBox ItemsSource="{Binding TemplateTypes}" SelectedItem="{Binding SelectedTemplateType}"/>
<TextBlock Text="Kategorie" Classes="greg-secondary"/>
<ComboBox ItemsSource="{Binding Categories}" SelectedItem="{Binding SelectedCategory}"/>
<Button Content="Output wählen" Classes="greg-secondary" Command="{Binding BrowseOutputPathCommand}"/>
<Button Content="Mod erzeugen" Classes="greg-primary" Command="{Binding GenerateCommand}" Height="36"/>
</StackPanel>
</Border>
<Border Classes="greg-card" Grid.Column="1">
<Grid RowDefinitions="*,*">
<ListBox ItemsSource="{Binding PreviewTree}"/>
<ListBox Grid.Row="1" ItemsSource="{Binding LogLines}"/>
</Grid>
</Border>
</Grid>
<Border IsVisible="{Binding IsLoading}" Background="#880B1220" CornerRadius="12">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="8">
<ProgressBar IsIndeterminate="True" Width="220"/>
<TextBlock Text="Mod-Erstellung läuft..."/>
</StackPanel>
</Border>
</Grid>
</UserControl>