Fix rules popup (#8485)

* CVar to show rules popup for localhost.

For testing purposes.

* Fix rules popup being broken and throwing.

😐
This commit is contained in:
Pieter-Jan Briers
2022-05-27 23:50:11 +02:00
committed by GitHub
parent 38368d1341
commit 4c1b0b87fb
4 changed files with 31 additions and 8 deletions

View File

@@ -19,9 +19,6 @@ public sealed partial class RulesControl : BoxContainer
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
var path = "Server Info/" + _cfgManager.GetCVar(CCVars.RulesFile);
AddChild(new InfoSection(Loc.GetString("ui-rules-header"),
_resourceManager.ContentFileReadAllText(path), true));
AddChild(RulesAndInfoWindow.MakeRules(_cfgManager, _resourceManager));
}
}