mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-03-14 02:21:07 +00:00
the context can now override a virtual method named `CreateHelpContent` which the setup wizard system will automatically try to use when you use the generic overload taking a generic context type. If the return is null, it skips setting entirely (the default impl is null) additionally made the discord join link a button with code copied from the about window, and made it centered at the bottom.
24 lines
528 B
C#
24 lines
528 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Ryujinx.Ava.UI.Controls;
|
|
|
|
using Ryujinx.Common.Helper;
|
|
|
|
namespace Ryujinx.Ava.UI.SetupWizard
|
|
{
|
|
public partial class SetupWizardPageView : RyujinxControl<SetupWizardPage>
|
|
{
|
|
public SetupWizardPageView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
if (sender is Button { Tag: string url })
|
|
OpenHelper.OpenUrl(url);
|
|
}
|
|
}
|
|
}
|
|
|