Files
tbd-station-14/Content.Client/Info/RulesControl.xaml.cs
Pieter-Jan Briers 4c1b0b87fb Fix rules popup (#8485)
* CVar to show rules popup for localhost.

For testing purposes.

* Fix rules popup being broken and throwing.

😐
2022-05-27 14:50:11 -07:00

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));
}
}