-
-
Notifications
You must be signed in to change notification settings - Fork 102
Preserve exclusion/include list and add Progress bar for local mod installation #667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Sewer56
merged 16 commits into
Reloaded-Project:master
from
TheBestAstroNOT:preserve-exclusion-list
Nov 15, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bfd7cd0
Save included and excluded regex to modconfig for publishing
TheBestAstroNOT 49b3e1e
Persist ignore/include regexes across sessions
TheBestAstroNOT 0cf2938
Remove old comment
TheBestAstroNOT bdff396
Update PublishModDialogViewModel.cs
TheBestAstroNOT f70880f
Added a progress bar for mod installation (large mods only), made Cop…
TheBestAstroNOT 0966c60
Fixed bug where the config was not updated if the value in the String…
TheBestAstroNOT a00d751
Make suggested changes
TheBestAstroNOT e8e5498
Only add default regexes when creating the mod
TheBestAstroNOT 1f7c061
Make suggested changes again
TheBestAstroNOT 626acef
Make suggested changes again again
TheBestAstroNOT 13d8059
Merge remote-tracking branch 'origin/master' into preserve-exclusion-…
Sewer56 fbc6dd0
Changed: Follow Fody Weaving Pattern from rest of source.
Sewer56 53be43b
Improve: Center InstallPackageDialog to the screen
Sewer56 e3f3499
Removed: Redundant AddINotifyPropertyChangedInterface from StringWrapper
Sewer56 966abe1
Changed: Updated IgnoreRegexes & IncludeRegexes to only update on sav…
Sewer56 78a2e01
Updated: Template of Changelog Update(s)
Sewer56 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
source/Reloaded.Mod.Launcher.Lib/Models/ViewModel/Dialog/InstallPackageViewModel.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| namespace Reloaded.Mod.Launcher.Lib.Models.ViewModel.Dialog; | ||
|
|
||
| /// <summary> | ||
| /// ViewModel for downloading an individual package. | ||
| /// </summary> | ||
| public class InstallPackageViewModel : ObservableObject | ||
| { | ||
| /// <summary> | ||
| /// The display text for the package installation. | ||
| /// </summary> | ||
| public string Text { get; set; } = ""; | ||
|
|
||
| /// <summary> | ||
| /// The title for the package installation. | ||
| /// </summary> | ||
| public string Title { get; set; } = ""; | ||
|
|
||
| /// <summary> | ||
| /// The current progress of the installation operation. | ||
| /// Range 0-100. | ||
| /// </summary> | ||
| public double Progress { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// True if the installation is complete, else false. | ||
| /// </summary> | ||
| public bool IsComplete { get; set; } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
source/Reloaded.Mod.Launcher/Pages/Dialogs/InstallPackageDialog.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| <default:ReloadedWindow x:Class="Reloaded.Mod.Launcher.Pages.Dialogs.InstallPackageDialog" | ||
| 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:local="clr-namespace:Reloaded.Mod.Launcher.Pages.Dialogs" | ||
| xmlns:converters="clr-namespace:Reloaded.Mod.Launcher.Converters" | ||
| xmlns:default="clr-namespace:Reloaded.WPF.Theme.Default;assembly=Reloaded.WPF.Theme.Default" | ||
| mc:Ignorable="d" | ||
| SizeToContent="Height" | ||
| Width="500" | ||
| Title="{Binding Title}" | ||
| WindowStartupLocation="CenterScreen" | ||
| Style="{DynamicResource ReloadedWindow}"> | ||
| <Grid Margin="{DynamicResource PageMarginSmall}" DataContext="{Binding Path=ViewModel, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}}"> | ||
|
|
||
| <Grid.RowDefinitions> | ||
| <RowDefinition Height="Auto"/> | ||
| <RowDefinition Height="*"/> | ||
| <RowDefinition Height="Auto"/> | ||
| </Grid.RowDefinitions> | ||
|
|
||
| <TextBlock HorizontalAlignment="Center" | ||
| Grid.Row="0" | ||
| Text="{Binding Text}" | ||
| Visibility="{Binding Text, Converter={x:Static converters:StringToVisibilityConverter.Instance}}" | ||
| Style="{DynamicResource DefaultTextBlock}" /> | ||
|
|
||
| <Grid Margin="{DynamicResource PanelMargin}" | ||
| Grid.Row="1"/> | ||
|
|
||
| <Grid Margin="{DynamicResource PanelMargin}" Grid.Row="2"> | ||
| <Grid.ColumnDefinitions> | ||
| <ColumnDefinition Width="*" /> | ||
| <ColumnDefinition Width="{DynamicResource GridInterPanelMargin}" /> | ||
| <ColumnDefinition Width="Auto"/> | ||
| </Grid.ColumnDefinitions> | ||
|
|
||
| <ProgressBar Grid.Column="0" | ||
| Height="25" | ||
| Value="{Binding Progress, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" | ||
| Maximum="100" /> | ||
| </Grid> | ||
| </Grid> | ||
| </default:ReloadedWindow> |
26 changes: 26 additions & 0 deletions
26
source/Reloaded.Mod.Launcher/Pages/Dialogs/InstallPackageDialog.xaml.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| using Button = System.Windows.Controls.Button; | ||
|
|
||
| namespace Reloaded.Mod.Launcher.Pages.Dialogs; | ||
|
|
||
| /// <summary> | ||
| /// Interaction logic for DownloadPackageDialog.xaml | ||
| /// </summary> | ||
| public partial class InstallPackageDialog : ReloadedWindow | ||
| { | ||
| public new InstallPackageViewModel ViewModel { get; set; } | ||
|
|
||
| /// <inheritdoc /> | ||
| public InstallPackageDialog(InstallPackageViewModel viewModel) | ||
| { | ||
| InitializeComponent(); | ||
| ViewModel = viewModel; | ||
| DataContext = viewModel; | ||
| viewModel.PropertyChanged += (s, e) => | ||
| { | ||
| if (e.PropertyName == nameof(InstallPackageViewModel.IsComplete) && viewModel.IsComplete) | ||
| { | ||
| ActionWrappers.ExecuteWithApplicationDispatcher(this.Close); | ||
| } | ||
| }; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.