[feat] Stalin manager
# Conflicts: # Content.Client/Entry/EntryPoint.cs # Content.Server/Entry/EntryPoint.cs # Content.Server/GameTicking/Commands/JoinGameCommand.cs # Content.Server/GameTicking/GameTicker.Lobby.cs # Content.Server/GameTicking/GameTicker.RoundFlow.cs # Content.Server/GameTicking/GameTicker.Spawning.cs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Client.Changelog;
|
||||
using Content.Client.UserInterface.Systems.EscapeMenu;
|
||||
using Content.Client.UserInterface.Systems.Guidebook;
|
||||
using Content.Client.White.Stalin;
|
||||
using Content.Shared.CCVar;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
@@ -11,12 +12,14 @@ namespace Content.Client.Info
|
||||
{
|
||||
public sealed class LinkBanner : BoxContainer
|
||||
{
|
||||
[Dependency] private readonly StalinManager _stalinManager = default!;
|
||||
private readonly IConfigurationManager _cfg;
|
||||
|
||||
private ValueList<(CVarDef<string> cVar, Button button)> _infoLinks;
|
||||
|
||||
public LinkBanner()
|
||||
{
|
||||
IoCManager.InjectDependencies(this);
|
||||
var buttons = new BoxContainer
|
||||
{
|
||||
Orientation = LayoutOrientation.Horizontal
|
||||
@@ -54,6 +57,15 @@ namespace Content.Client.Info
|
||||
buttons.AddChild(button);
|
||||
_infoLinks.Add((cVar, button));
|
||||
}
|
||||
|
||||
var saltedYaycaButton = new Button() {Text = "Привязать дискорд"};
|
||||
|
||||
saltedYaycaButton.OnPressed += _ =>
|
||||
{
|
||||
_stalinManager.RequestUri();
|
||||
};
|
||||
|
||||
buttons.AddChild(saltedYaycaButton);
|
||||
}
|
||||
|
||||
protected override void EnteredTree()
|
||||
|
||||
Reference in New Issue
Block a user