перенос файлов клиента из папки White в _White
This commit is contained in:
12
Content.Client/_White/Rules/RulesWikiSection.xaml
Normal file
12
Content.Client/_White/Rules/RulesWikiSection.xaml
Normal file
@@ -0,0 +1,12 @@
|
||||
<BoxContainer xmlns="https://spacestation14.io"
|
||||
Orientation="Vertical" HorizontalExpand="True">
|
||||
<Label Text="Правила сервера White Dream"
|
||||
StyleClasses="LabelHeading"
|
||||
HorizontalExpand="True"
|
||||
HorizontalAlignment="Center"/>
|
||||
<Button Name="RulesButton"
|
||||
StyleClasses="ButtonColorRed"
|
||||
MinHeight="40"
|
||||
Text="Открыть правила"
|
||||
Access="Public"/>
|
||||
</BoxContainer>
|
||||
22
Content.Client/_White/Rules/RulesWikiSection.xaml.cs
Normal file
22
Content.Client/_White/Rules/RulesWikiSection.xaml.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Shared.White;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Configuration;
|
||||
|
||||
namespace Content.Client._White.Rules;
|
||||
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class RulesWikiSection : BoxContainer
|
||||
{
|
||||
[Dependency] private readonly IUriOpener _uri = default!;
|
||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||
|
||||
public RulesWikiSection()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
IoCManager.InjectDependencies(this);
|
||||
RulesButton.OnPressed += _ => _uri.OpenUri(_cfg.GetCVar(WhiteCVars.RulesWiki));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user