Skip to content

Commit

Permalink
Discord link to new api (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Werzet authored Jan 29, 2025
1 parent 8b3149d commit d076845
Show file tree
Hide file tree
Showing 20 changed files with 4,301 additions and 399 deletions.
46 changes: 0 additions & 46 deletions Content.Client/SS220/UserInterface/DiscordLink/DiscordLinkEui.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</BoxContainer>
<Button Name="OpenUrlButton" Text="{Loc 'discord-auth-browser-btn'}" HorizontalExpand="True" StyleClasses="OpenRight" />

<Button Name="ByPassCheck" Text="Войти без проверки" HorizontalExpand="True" StyleClasses="OpenRight" />
<Button Name="ByPassCheck" Text="Войти без проверки" HorizontalExpand="True" StyleClasses="OpenRight" />
</BoxContainer>
</Control>
</Control>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Client.AutoGenerated;
using Robust.Shared.Configuration;
using Content.Shared.SS220.CCVars;

namespace Content.Client.SS220.UserInterface.DiscordLink;

Expand All @@ -13,13 +15,16 @@ public sealed partial class DiscordLinkRequiredGui : Control
{
[Dependency] private readonly DiscordPlayerInfoManager _discordPlayerInfoManager = default!;
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;

public DiscordLinkRequiredGui()
{
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
LayoutContainer.SetAnchorPreset(this, LayoutContainer.LayoutPreset.Wide);

ByPassCheck.Visible = _cfg.GetCVar(CCVars220.ByPassDiscordLinkCheck);

QuitButton.OnPressed += (_) =>
{
_consoleHost.ExecuteCommand("quit");
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit d076845

Please sign in to comment.