mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-14 21:01:14 +03:00
Fix patreon link in queue
This commit is contained in:
parent
d8e7632f73
commit
df46659618
1 changed files with 7 additions and 3 deletions
|
|
@ -1,14 +1,17 @@
|
|||
using Content.Client.Links;
|
||||
using Content.Shared.CCVar;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Configuration;
|
||||
|
||||
namespace Content.Client.Corvax.JoinQueue;
|
||||
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class QueueGui : Control
|
||||
{
|
||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||
|
||||
public event Action? QuitPressed;
|
||||
|
||||
public QueueGui()
|
||||
|
|
@ -19,7 +22,8 @@ public sealed partial class QueueGui : Control
|
|||
QuitButton.OnPressed += (_) => QuitPressed?.Invoke();
|
||||
PriorityJoinButton.OnPressed += (_) =>
|
||||
{
|
||||
IoCManager.Resolve<IUriOpener>().OpenUri(UILinks.Patreon);
|
||||
var linkPatreon = _cfg.GetCVar(CCVars.InfoLinksPatreon);
|
||||
IoCManager.Resolve<IUriOpener>().OpenUri(linkPatreon);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -28,4 +32,4 @@ public sealed partial class QueueGui : Control
|
|||
QueueTotal.Text = total.ToString();
|
||||
QueuePosition.Text = position.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue