[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:
rhailrake
2023-04-27 21:56:22 +06:00
committed by Remuchi
parent 976b6788a8
commit c41e58fa3e
22 changed files with 539 additions and 10 deletions

View File

@@ -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()