Skip to content

Commit

Permalink
added scrolling fix to load order treedatagrid
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Nov 26, 2024
1 parent 55015af commit 8f2a5d0
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions src/NexusMods.App.UI/Pages/Sorting/LoadOrder/LoadOrderView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,27 @@
<sorting:LoadOrderDesignViewModel />
</Design.DataContext>

<StackPanel Orientation="Vertical" Spacing="24">
<Grid RowDefinitions="Auto, *">
<!-- <Border Background="Red"> -->
<!-- <TextBlock Text="{Binding SortOrderName}"/> -->
<!-- </Border> -->
<alerts:Alert
Severity="Info"
Title="Load Order for REDmod files in Cyberpunk 2077 - First Loaded Wins"
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."
IsVisible="True"
ShowDismiss="False" />
<TextBlock Text="Last Loaded REDmod File Wins"
Theme="{StaticResource HeadingXSSemiTheme}" />

<StackPanel Spacing="24"
Grid.Row="0">
<alerts:Alert
Severity="Info"
Title="Load Order for REDmod files in Cyberpunk 2077 - First Loaded Wins"
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."
IsVisible="True"
ShowDismiss="False" />

<TextBlock Grid.Row="1" Text="Last Loaded REDmod File Wins"
Theme="{StaticResource HeadingXSSemiTheme}" />
</StackPanel>


<Grid ColumnDefinitions="50, *">
<Grid Grid.Row="1" ColumnDefinitions="50, *" Margin="0,24,0,0">

<Grid RowDefinitions="24, 8, *, 8, 24" Margin="0,60,0,0">
<icons:UnifiedIcon Grid.Row="0" Value="{x:Static icons:IconValues.Trophy}" />
<Border Grid.Row="2" Width="5">
Expand All @@ -39,12 +46,12 @@
</Border>
<icons:UnifiedIcon Grid.Row="4" Value="{x:Static icons:IconValues.ArrowDown}" Foreground="#32FFFFFF" />
</Grid>

<TreeDataGrid Grid.Column="1" x:Name="SortOrderTreeDataGrid"
AutoDragDropRows="False"
CanUserResizeColumns="False"
CanUserResizeColumns="True"
CanUserSortColumns="False"
ShowColumnHeaders="True"
MinHeight="200"
RowDrop="OnRowDrop">

<TreeDataGrid.Resources>
Expand Down Expand Up @@ -100,6 +107,6 @@
</TreeDataGrid>
</Grid>

</StackPanel>
</Grid>

</reactiveUi:ReactiveUserControl>

0 comments on commit 8f2a5d0

Please sign in to comment.