|
6 | 6 | xmlns:controls="clr-namespace:NexusMods.App.UI.Controls"
|
7 | 7 | xmlns:icons="clr-namespace:NexusMods.Icons;assembly=NexusMods.Icons"
|
8 | 8 | xmlns:sorting="clr-namespace:NexusMods.App.UI.Pages.Sorting"
|
| 9 | + xmlns:alerts="clr-namespace:NexusMods.App.UI.Controls.Alerts" |
9 | 10 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
10 | 11 | x:Class="NexusMods.App.UI.Pages.Sorting.LoadOrderView">
|
11 |
| - <StackPanel Orientation="Vertical"> |
12 |
| - <TreeDataGrid x:Name="SortOrderTreeDataGrid" |
13 |
| - AutoDragDropRows="False" |
14 |
| - Margin="0,20" |
15 |
| - CanUserResizeColumns="True" |
16 |
| - CanUserSortColumns="False" |
17 |
| - ShowColumnHeaders="True" |
18 |
| - RowDrop="OnRowDrop"> |
19 |
| - |
20 |
| - <TreeDataGrid.Resources> |
21 |
| - |
22 |
| - <DataTemplate x:Key="LoadOrderItemIndexColumnTemplate" |
23 |
| - DataType="sorting:ILoadOrderItemModel"> |
24 |
| - <StackPanel Orientation="Horizontal"> |
25 |
| - <TextBlock x:Name="ItemIndex" |
26 |
| - Text="{CompiledBinding SortIndex}" /> |
27 |
| - <controls:StandardButton x:Name="UpButton" |
28 |
| - Command="{CompiledBinding MoveDown}" |
29 |
| - LeftIcon="{x:Static icons:IconValues.ArrowUp}" |
30 |
| - ShowIcon="Left" |
31 |
| - Text="" /> |
32 |
| - <controls:StandardButton x:Name="DownButton" |
33 |
| - Command="{CompiledBinding MoveUp}" |
34 |
| - LeftIcon="{x:Static icons:IconValues.ArrowDown}" |
35 |
| - ShowIcon="Left" |
36 |
| - Text="" /> |
37 |
| - </StackPanel> |
38 |
| - </DataTemplate> |
39 |
| - |
40 |
| - <DataTemplate x:Key="LoadOrderItemNameColumnTemplate" |
41 |
| - DataType="sorting:ILoadOrderItemModel"> |
42 |
| - <StackPanel Orientation="Horizontal"> |
43 |
| - <TextBlock x:Name="ItemName" |
44 |
| - Text="{CompiledBinding DisplayName}" /> |
45 |
| - </StackPanel> |
46 |
| - </DataTemplate> |
47 |
| - |
48 |
| - </TreeDataGrid.Resources> |
49 |
| - |
50 |
| - </TreeDataGrid> |
| 12 | + <Design.DataContext> |
| 13 | + <sorting:LoadOrderDesignViewModel /> |
| 14 | + </Design.DataContext> |
| 15 | + |
| 16 | + <Grid RowDefinitions="Auto, *"> |
| 17 | + <!-- <Border Background="Red"> --> |
| 18 | + <!-- <TextBlock Text="{Binding SortOrderName}"/> --> |
| 19 | + <!-- </Border> --> |
| 20 | + |
| 21 | + <StackPanel Spacing="24" |
| 22 | + Grid.Row="0"> |
| 23 | + <alerts:Alert |
| 24 | + Severity="Info" |
| 25 | + Title="Load Order for REDmod files in Cyberpunk 2077 - First Loaded Wins" |
| 26 | + Body="Some Cyberpunk 2077 mods use REDmod files to alter core gameplay elements. If two REDmod files modify the same part of the game, the one loaded first will take priority and overwrite changes from those loaded later.\n\nFor example, the 1st position overwrites the 2nd, the 2nd overwrites the 3rd, and so on." |
| 27 | + IsVisible="True" |
| 28 | + ShowDismiss="False" /> |
| 29 | + |
| 30 | + <TextBlock Grid.Row="1" Text="Last Loaded REDmod File Wins" |
| 31 | + Theme="{StaticResource HeadingXSSemiTheme}" /> |
| 32 | + </StackPanel> |
51 | 33 |
|
52 |
| - </StackPanel> |
| 34 | + |
| 35 | + <Grid Grid.Row="1" ColumnDefinitions="50, *" Margin="0,24,0,0"> |
| 36 | + |
| 37 | + <Grid RowDefinitions="24, 8, *, 8, 24" Margin="0,60,0,0"> |
| 38 | + <icons:UnifiedIcon Grid.Row="0" Value="{x:Static icons:IconValues.Trophy}" /> |
| 39 | + <Border Grid.Row="2" Width="5"> |
| 40 | + <Border.Background> |
| 41 | + <LinearGradientBrush StartPoint="0%,0%" EndPoint="0%,100%"> |
| 42 | + <GradientStop Color="#FFFFFFFF" Offset="0" /> |
| 43 | + <GradientStop Color="#32FFFFFF" Offset="1" /> |
| 44 | + </LinearGradientBrush> |
| 45 | + </Border.Background> |
| 46 | + </Border> |
| 47 | + <icons:UnifiedIcon Grid.Row="4" Value="{x:Static icons:IconValues.ArrowDown}" Foreground="#32FFFFFF" /> |
| 48 | + </Grid> |
| 49 | + |
| 50 | + <TreeDataGrid Grid.Column="1" x:Name="SortOrderTreeDataGrid" |
| 51 | + AutoDragDropRows="False" |
| 52 | + CanUserResizeColumns="True" |
| 53 | + CanUserSortColumns="False" |
| 54 | + ShowColumnHeaders="True" |
| 55 | + RowDrop="OnRowDrop"> |
| 56 | + |
| 57 | + <TreeDataGrid.Resources> |
| 58 | + |
| 59 | + <DataTemplate x:Key="LoadOrderItemIndexColumnTemplate" |
| 60 | + DataType="sorting:ILoadOrderItemModel"> |
| 61 | + |
| 62 | + <StackPanel Orientation="Horizontal" Spacing="12"> |
| 63 | + <controls:StandardButton x:Name="UpButton" |
| 64 | + Command="{CompiledBinding MoveDown}" |
| 65 | + LeftIcon="{x:Static icons:IconValues.ArrowUp}" |
| 66 | + ShowIcon="IconOnly" |
| 67 | + Size="Medium" |
| 68 | + Type="Tertiary" |
| 69 | + Fill="None" /> |
| 70 | + <Border |
| 71 | + Background="{StaticResource SurfaceLowBrush}" |
| 72 | + BorderThickness="1" |
| 73 | + BorderBrush="{StaticResource StrokeTranslucentSubduedBrush}" |
| 74 | + CornerRadius="4" |
| 75 | + Width="52" |
| 76 | + Height="42"> |
| 77 | + <TextBlock x:Name="ItemIndex" |
| 78 | + Text="{CompiledBinding SortIndex}" |
| 79 | + Foreground="{StaticResource NeutralTranslucentStrongBrush}" |
| 80 | + Theme="{StaticResource BodyMDBoldTheme}" |
| 81 | + HorizontalAlignment="Center" /> |
| 82 | + </Border> |
| 83 | + <controls:StandardButton x:Name="DownButton" |
| 84 | + Command="{CompiledBinding MoveUp}" |
| 85 | + LeftIcon="{x:Static icons:IconValues.ArrowDown}" |
| 86 | + ShowIcon="IconOnly" |
| 87 | + Size="Medium" |
| 88 | + Type="Tertiary" |
| 89 | + Fill="None" /> |
| 90 | + <Border |
| 91 | + Background="{StaticResource SurfaceTranslucentMidBrush}" |
| 92 | + Width="1" |
| 93 | + Height="42"/> |
| 94 | + </StackPanel> |
| 95 | + </DataTemplate> |
| 96 | + |
| 97 | + <DataTemplate x:Key="LoadOrderItemNameColumnTemplate" |
| 98 | + DataType="sorting:ILoadOrderItemModel"> |
| 99 | + <StackPanel Orientation="Horizontal"> |
| 100 | + <TextBlock x:Name="ItemName" |
| 101 | + Text="{CompiledBinding DisplayName}" /> |
| 102 | + </StackPanel> |
| 103 | + </DataTemplate> |
| 104 | + |
| 105 | + </TreeDataGrid.Resources> |
| 106 | + |
| 107 | + </TreeDataGrid> |
| 108 | + </Grid> |
| 109 | + |
| 110 | + </Grid> |
53 | 111 |
|
54 | 112 | </reactiveUi:ReactiveUserControl>
|
0 commit comments