2022-03-13 22:47:30 +00:00
|
|
|
<rxui:ReactiveUserControl
|
|
|
|
x:Class="Wabbajack.ModListGalleryView"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:rxui="http://reactiveui.net"
|
|
|
|
xmlns:system="clr-namespace:System;assembly=mscorlib"
|
2023-12-27 15:25:59 +00:00
|
|
|
xmlns:ic="clr-namespace:FluentIcons.WPF;assembly=FluentIcons.WPF"
|
2022-03-13 22:47:30 +00:00
|
|
|
d:DesignHeight="450"
|
|
|
|
d:DesignWidth="900"
|
|
|
|
x:TypeArguments="local:ModListGalleryVM"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
2023-12-27 15:25:59 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2023-12-27 17:02:12 +00:00
|
|
|
<ColumnDefinition Width="*" />
|
2023-12-27 15:25:59 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Column="1"
|
2022-03-13 22:47:30 +00:00
|
|
|
BorderBrush="Transparent"
|
2023-12-27 15:25:59 +00:00
|
|
|
BorderThickness="0">
|
2022-03-13 22:47:30 +00:00
|
|
|
<ScrollViewer Background="Transparent" VerticalScrollBarVisibility="Auto">
|
|
|
|
<ItemsControl
|
|
|
|
x:Name="ModListGalleryControl"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible">
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<WrapPanel />
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<local:ModListTileView ViewModel="{Binding}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Border>
|
2023-12-27 15:25:59 +00:00
|
|
|
<mahapps:ProgressRing Grid.Column="1"
|
2022-03-13 22:47:30 +00:00
|
|
|
x:Name="LoadingRing"
|
|
|
|
Visibility="Collapsed" />
|
2023-12-27 15:25:59 +00:00
|
|
|
<StackPanel Grid.Column="1"
|
2022-03-13 22:47:30 +00:00
|
|
|
x:Name="NoneFound"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Orientation="Vertical"
|
|
|
|
Visibility="Collapsed">
|
2023-12-27 15:25:59 +00:00
|
|
|
<ic:SymbolIcon
|
|
|
|
Grid.Column="1"
|
2022-03-13 22:47:30 +00:00
|
|
|
Foreground="{StaticResource Triadic2Brush}"
|
2023-12-27 15:25:59 +00:00
|
|
|
VerticalAlignment="Top"
|
|
|
|
Symbol="DismissCircle"
|
|
|
|
IsFilled="False"
|
|
|
|
FontSize="72"
|
|
|
|
/>
|
2022-03-13 22:47:30 +00:00
|
|
|
<TextBlock
|
2023-12-27 15:25:59 +00:00
|
|
|
FontSize="24"
|
|
|
|
Margin="0, 10, 0, 0"
|
2022-03-13 22:47:30 +00:00
|
|
|
Foreground="{StaticResource ForegroundBrush}"
|
2023-12-27 15:25:59 +00:00
|
|
|
Text="No modlists matching specified criteria" />
|
2022-03-13 22:47:30 +00:00
|
|
|
</StackPanel>
|
|
|
|
<iconPacks:PackIconControl Grid.Row="1"
|
|
|
|
x:Name="ErrorIcon"
|
|
|
|
Width="55"
|
|
|
|
Height="55"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{StaticResource ErrorBrush}"
|
|
|
|
Kind="{x:Static iconPacks:PackIconMaterialKind.AlertCircle}"
|
|
|
|
ToolTip="Error loading modlist gallery"
|
|
|
|
Visibility="Collapsed" />
|
2023-12-27 15:25:59 +00:00
|
|
|
<!--<local:TopProgressView Grid.Row="0" Grid.RowSpan="2"
|
2022-03-13 22:47:30 +00:00
|
|
|
Title="Browsing Modlists"
|
2023-12-27 15:25:59 +00:00
|
|
|
ShadowMargin="False" />-->
|
|
|
|
<StackPanel Grid.Row="0"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
Background="Green"
|
2023-12-27 17:02:12 +00:00
|
|
|
Width="256"
|
|
|
|
Height="Auto"
|
2023-12-27 15:25:59 +00:00
|
|
|
Orientation="Vertical">
|
2023-12-27 17:02:12 +00:00
|
|
|
<Grid>
|
|
|
|
<TextBox
|
|
|
|
x:Name="SearchBox"
|
|
|
|
Height="28"
|
|
|
|
VerticalContentAlignment="Center"
|
|
|
|
ToolTip="Search for a game" />
|
|
|
|
<TextBlock IsHitTestVisible="False" Text="Search for a game..." VerticalAlignment="Center" Margin="5, 0, 0, 0" Foreground="{StaticResource TextBoxDisabledForeground}">
|
|
|
|
<TextBlock.Style>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding Text, ElementName=SearchBox}" Value="">
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
|
|
<ic:SymbolIcon Symbol="Search" HorizontalAlignment="Right" Margin="0, 0, 5, 0" IsFilled="True"/>
|
|
|
|
</Grid>
|
2022-03-13 22:47:30 +00:00
|
|
|
<ComboBox
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{StaticResource ForegroundBrush}"
|
2023-05-07 20:32:18 +00:00
|
|
|
ItemsSource="{Binding GameTypeEntries, Mode=TwoWay}"
|
|
|
|
SelectedItem="{Binding SelectedGameTypeEntry, Mode=TwoWay}"
|
|
|
|
IsSynchronizedWithCurrentItem="True"
|
2023-12-27 15:25:59 +00:00
|
|
|
ToolTip="Filter modlists on game">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2023-12-27 16:37:19 +00:00
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0, 2, 0, 2">
|
|
|
|
<Border Width="24" Height="24" BorderThickness="0" CornerRadius="4" VerticalAlignment="Center">
|
2023-12-27 16:26:00 +00:00
|
|
|
<Border.Background>
|
|
|
|
<ImageBrush Stretch="Fill" ImageSource="{Binding GameMetaData.IconSource}"/>
|
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
2023-12-27 15:25:59 +00:00
|
|
|
<TextBlock Margin="10, 0, 0, 0" Text="{Binding FormattedName}" VerticalAlignment="Center" />
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
2022-03-13 22:47:30 +00:00
|
|
|
<CheckBox
|
|
|
|
x:Name="ShowNSFW"
|
|
|
|
Margin="10,0,10,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Content="Show NSFW"
|
2023-05-07 20:32:18 +00:00
|
|
|
Foreground="{StaticResource ForegroundBrush}"
|
|
|
|
ToolTip="Only show Not Safe For Work (NSFW) modlists" />
|
2022-03-13 22:47:30 +00:00
|
|
|
|
|
|
|
<CheckBox
|
2022-05-15 20:17:36 +00:00
|
|
|
x:Name="ShowUnofficialLists"
|
2022-03-13 22:47:30 +00:00
|
|
|
Margin="10,0,10,0"
|
|
|
|
VerticalAlignment="Center"
|
2022-05-15 20:17:36 +00:00
|
|
|
Content="Show Unofficial Lists"
|
2023-05-07 20:32:18 +00:00
|
|
|
Foreground="{StaticResource ForegroundBrush}"
|
|
|
|
ToolTip="Show modlists from external repositories"/>
|
2022-03-13 22:47:30 +00:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
x:Name="OnlyInstalledCheckbox"
|
|
|
|
Margin="10,0,10,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Content="Only Installed"
|
2023-05-07 20:32:18 +00:00
|
|
|
Foreground="{StaticResource ForegroundBrush}"
|
|
|
|
ToolTip="Only show modlists for games you have installed"/>
|
2022-03-13 22:47:30 +00:00
|
|
|
<Button
|
|
|
|
x:Name="ClearFiltersButton"
|
|
|
|
Margin="0,0,10,0"
|
2023-12-27 15:25:59 +00:00
|
|
|
Style="{StaticResource LargeButtonStyle}"
|
|
|
|
ToolTip="Reset filters to the default options"
|
2023-12-27 17:02:12 +00:00
|
|
|
VerticalAlignment="Bottom"
|
2023-12-27 15:25:59 +00:00
|
|
|
FontSize="24">
|
|
|
|
<Button.Content>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<ic:SymbolIcon Symbol="FilterDismiss" />
|
|
|
|
<TextBlock Margin="10, 0, 0, 0">Reset filters</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</Button.Content>
|
2022-03-13 22:47:30 +00:00
|
|
|
</Button>
|
2023-12-27 15:25:59 +00:00
|
|
|
</StackPanel>
|
2022-03-13 22:47:30 +00:00
|
|
|
</Grid>
|
|
|
|
</rxui:ReactiveUserControl>
|