mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Modlist website button added to installer view
This commit is contained in:
@ -93,6 +93,7 @@ namespace Wabbajack
|
|||||||
public IReactiveCommand BeginCommand { get; }
|
public IReactiveCommand BeginCommand { get; }
|
||||||
public IReactiveCommand ShowReportCommand { get; }
|
public IReactiveCommand ShowReportCommand { get; }
|
||||||
public IReactiveCommand OpenReadmeCommand { get; }
|
public IReactiveCommand OpenReadmeCommand { get; }
|
||||||
|
public IReactiveCommand VisitWebsiteCommand { get; }
|
||||||
|
|
||||||
public InstallerVM(MainWindowVM mainWindowVM)
|
public InstallerVM(MainWindowVM mainWindowVM)
|
||||||
{
|
{
|
||||||
@ -250,6 +251,11 @@ namespace Wabbajack
|
|||||||
canExecute: this.WhenAny(x => x.Installing)
|
canExecute: this.WhenAny(x => x.Installing)
|
||||||
.Select(installing => !installing)
|
.Select(installing => !installing)
|
||||||
.ObserveOnGuiThread());
|
.ObserveOnGuiThread());
|
||||||
|
this.VisitWebsiteCommand = ReactiveCommand.Create(
|
||||||
|
execute: () => Process.Start(this.ModList.Website),
|
||||||
|
canExecute: this.WhenAny(x => x.ModList.Website)
|
||||||
|
.Select(x => x?.StartsWith("https://") ?? false)
|
||||||
|
.ObserveOnGuiThread());
|
||||||
|
|
||||||
// Have Installation location updates modify the downloads location if empty
|
// Have Installation location updates modify the downloads location if empty
|
||||||
this.WhenAny(x => x.Location)
|
this.WhenAny(x => x.Location)
|
||||||
|
@ -83,11 +83,6 @@ namespace Wabbajack
|
|||||||
.ObserveOnGuiThread()
|
.ObserveOnGuiThread()
|
||||||
.Do(modList =>
|
.Do(modList =>
|
||||||
{
|
{
|
||||||
this.NexusSiteURL = modList.Website;
|
|
||||||
this.ModName = modList.Name;
|
|
||||||
this.AuthorName = modList.Author;
|
|
||||||
this.Summary = modList.Description;
|
|
||||||
|
|
||||||
this.SlideShowElements = modList.Archives
|
this.SlideShowElements = modList.Archives
|
||||||
.Select(m => m.State)
|
.Select(m => m.State)
|
||||||
.OfType<NexusDownloader.State>()
|
.OfType<NexusDownloader.State>()
|
||||||
|
@ -408,15 +408,22 @@
|
|||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Button Grid.Row="0"
|
<Button Grid.Row="0"
|
||||||
Margin="30, 10"
|
Margin="30, 5"
|
||||||
Content="Readme"
|
Content="Readme"
|
||||||
ToolTip="Open the readme webpage for the modlist"
|
ToolTip="Open the readme for the modlist"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
Command="{Binding OpenReadmeCommand}" />
|
Command="{Binding OpenReadmeCommand}" />
|
||||||
<Button Grid.Row="1"
|
<Button Grid.Row="1"
|
||||||
Margin="30, 10"
|
Margin="30, 5"
|
||||||
|
Content="Website"
|
||||||
|
ToolTip="Open the webpage for the modlist"
|
||||||
|
FontSize="20"
|
||||||
|
Command="{Binding VisitWebsiteCommand}" />
|
||||||
|
<Button Grid.Row="2"
|
||||||
|
Margin="30, 5"
|
||||||
Content="Manifest"
|
Content="Manifest"
|
||||||
ToolTip="Open an explicit listing of all actions this modlist will take"
|
ToolTip="Open an explicit listing of all actions this modlist will take"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
|
Reference in New Issue
Block a user