2024-01-28 18:37:24 +07:00
|
|
|
|
using Content.Shared._White;
|
2023-09-08 18:29:43 +06:00
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
|
using Robust.Client.UserInterface;
|
2023-08-09 20:20:37 +03:00
|
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
2023-09-08 18:29:43 +06:00
|
|
|
|
using Robust.Shared.Configuration;
|
2023-08-09 20:20:37 +03:00
|
|
|
|
|
2024-01-28 17:32:55 +07:00
|
|
|
|
namespace Content.Client._White.Rules;
|
2023-08-09 20:20:37 +03:00
|
|
|
|
|
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
|
public sealed partial class RulesWikiSection : BoxContainer
|
|
|
|
|
|
{
|
2023-09-08 18:29:43 +06:00
|
|
|
|
[Dependency] private readonly IUriOpener _uri = default!;
|
|
|
|
|
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
|
|
|
|
|
|
2023-08-09 20:20:37 +03:00
|
|
|
|
public RulesWikiSection()
|
|
|
|
|
|
{
|
|
|
|
|
|
RobustXamlLoader.Load(this);
|
2023-09-08 18:29:43 +06:00
|
|
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
|
|
RulesButton.OnPressed += _ => _uri.OpenUri(_cfg.GetCVar(WhiteCVars.RulesWiki));
|
2023-08-09 20:20:37 +03:00
|
|
|
|
}
|
|
|
|
|
|
}
|