* CVar to show rules popup for localhost.
For testing purposes.
* Fix rules popup being broken and throwing.
😐
25 lines
724 B
C#
25 lines
724 B
C#
using System.IO;
|
|
using Content.Shared.CCVar;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.ResourceManagement;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Configuration;
|
|
|
|
namespace Content.Client.Info;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class RulesControl : BoxContainer
|
|
{
|
|
[Dependency] private readonly IResourceCache _resourceManager = default!;
|
|
[Dependency] private readonly IConfigurationManager _cfgManager = default!;
|
|
|
|
public RulesControl()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
AddChild(RulesAndInfoWindow.MakeRules(_cfgManager, _resourceManager));
|
|
}
|
|
}
|