fix (#373)
This commit is contained in:
@@ -41,7 +41,6 @@ namespace Content.Client.Info
|
|||||||
// AddSection(rulesList, _rules.RulesSection());
|
// AddSection(rulesList, _rules.RulesSection());
|
||||||
var rulesWikiSection = new RulesWikiSection();
|
var rulesWikiSection = new RulesWikiSection();
|
||||||
rulesList.InfoContainer.AddChild(rulesWikiSection);
|
rulesList.InfoContainer.AddChild(rulesWikiSection);
|
||||||
rulesWikiSection.RulesButton.OnPressed += _ => _uri.OpenUri(_cfg.GetCVar(WhiteCVars.RulesWiki));
|
|
||||||
// WD EDIT END
|
// WD EDIT END
|
||||||
PopulateTutorial(tutorialList);
|
PopulateTutorial(tutorialList);
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,22 @@
|
|||||||
using Robust.Client.AutoGenerated;
|
using Content.Shared.White;
|
||||||
|
using Robust.Client.AutoGenerated;
|
||||||
|
using Robust.Client.UserInterface;
|
||||||
using Robust.Client.UserInterface.Controls;
|
using Robust.Client.UserInterface.Controls;
|
||||||
using Robust.Client.UserInterface.XAML;
|
using Robust.Client.UserInterface.XAML;
|
||||||
|
using Robust.Shared.Configuration;
|
||||||
|
|
||||||
namespace Content.Client.White.Rules;
|
namespace Content.Client.White.Rules;
|
||||||
|
|
||||||
[GenerateTypedNameReferences]
|
[GenerateTypedNameReferences]
|
||||||
public sealed partial class RulesWikiSection : BoxContainer
|
public sealed partial class RulesWikiSection : BoxContainer
|
||||||
{
|
{
|
||||||
|
[Dependency] private readonly IUriOpener _uri = default!;
|
||||||
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||||
|
|
||||||
public RulesWikiSection()
|
public RulesWikiSection()
|
||||||
{
|
{
|
||||||
RobustXamlLoader.Load(this);
|
RobustXamlLoader.Load(this);
|
||||||
|
IoCManager.InjectDependencies(this);
|
||||||
|
RulesButton.OnPressed += _ => _uri.OpenUri(_cfg.GetCVar(WhiteCVars.RulesWiki));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user