mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge remote-tracking branch 'origin/crit_obscure_old_request' into pre-release
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
afce8617cf
@ -2,6 +2,7 @@
|
||||
|
||||
### Version - TBA
|
||||
* Fixed some UI issues arising from 3.2.0.0 changes - more informative error text, drive space checking, wiki link button
|
||||
* Added optional JSON flag for `DisplayVersionOnlyInInstallerView` to enable the installer image to only show version number.
|
||||
|
||||
#### Version - 3.2.0.1 - 7/23/2023
|
||||
* Code cleanup: re-added some network and diagnostic code missing since 2.5
|
||||
|
@ -82,6 +82,13 @@ namespace Wabbajack
|
||||
[Reactive]
|
||||
public string VersionText { get; private set; }
|
||||
|
||||
[Reactive]
|
||||
public bool ImageContainsTitle { get; private set; }
|
||||
|
||||
[Reactive]
|
||||
|
||||
public bool DisplayVersionOnlyInInstallerView { get; private set; }
|
||||
|
||||
[Reactive]
|
||||
public IErrorResponse Error { get; private set; }
|
||||
|
||||
@ -123,6 +130,8 @@ namespace Wabbajack
|
||||
Metadata.DownloadMetadata.SizeOfArchives + Metadata.DownloadMetadata.SizeOfInstalledFiles
|
||||
);
|
||||
VersionText = "Modlist version : " + Metadata.Version;
|
||||
ImageContainsTitle = Metadata.ImageContainsTitle;
|
||||
DisplayVersionOnlyInInstallerView = Metadata.DisplayVersionOnlyInInstallerView;
|
||||
IsBroken = metadata.ValidationSummary.HasFailures || metadata.ForceDown;
|
||||
// https://www.wabbajack.org/modlist/wj-featured/aldrnari
|
||||
OpenWebsiteCommand = ReactiveCommand.Create(() => UIUtils.OpenWebsite(new Uri($"https://www.wabbajack.org/modlist/{Metadata.NamespacedName}")));
|
||||
|
@ -565,7 +565,14 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
||||
|
||||
private void PopulateSlideShow(ModList modList)
|
||||
{
|
||||
SlideShowTitle = modList.Name;
|
||||
if (ModlistMetadata.ImageContainsTitle && ModlistMetadata.DisplayVersionOnlyInInstallerView)
|
||||
{
|
||||
SlideShowTitle = "v" + ModlistMetadata.Version.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
SlideShowTitle = modList.Name;
|
||||
}
|
||||
SlideShowAuthor = modList.Author;
|
||||
SlideShowDescription = modList.Description;
|
||||
SlideShowImage = ModListImage;
|
||||
|
@ -30,6 +30,8 @@ public class ModlistMetadata
|
||||
[JsonPropertyName("image_contains_title")]
|
||||
public bool ImageContainsTitle { get; set; }
|
||||
|
||||
[JsonPropertyName("DisplayVersionOnlyInInstallerView")] public bool DisplayVersionOnlyInInstallerView { get; set; }
|
||||
|
||||
[JsonPropertyName("force_down")] public bool ForceDown { get; set; }
|
||||
|
||||
[JsonPropertyName("links")] public LinksObject Links { get; set; } = new();
|
||||
|
Loading…
Reference in New Issue
Block a user