Skip to content

Commit

Permalink
Я забыл про кнопку (#217)
Browse files Browse the repository at this point in the history
Теперь не забыл
  • Loading branch information
Cooderer authored Aug 11, 2023
1 parent 86a4e2c commit 5893501
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Content.Client/Info/RulesLinksSection.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<BoxContainer xmlns="https://spacestation14.io"
<BoxContainer xmlns="https://spacestation14.io"
Orientation="Vertical">
<Label Text="{Loc 'ui-rules-header-links'}" StyleClasses="LabelHeading"/>
<BoxContainer Orientation="Horizontal"
Expand All @@ -12,5 +12,8 @@
<Button Name="LawsButton"
Text="{Loc 'ui-rules-laws'}"
Access="Public"/>
<Button Name="ToWikiSend"
Text ="{Loc 'ui-rules-wikirules'}"
Access="Public"/>
</BoxContainer>
</BoxContainer>
4 changes: 3 additions & 1 deletion Content.Client/Info/RulesLinksSection.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Content.Shared.CCVar;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
Expand All @@ -25,5 +25,7 @@ public RulesLinksSection()
RolesButton.Visible = cfg.GetCVar(CCVars.InfoLinksRoles) != "";
LawsButton.OnPressed += args => uriOpener.OpenUri(cfg.GetCVar(CCVars.InfoLinksLaws));
LawsButton.Visible = cfg.GetCVar(CCVars.InfoLinksLaws) != "";
ToWikiSend.OnPressed += args => uriOpener.OpenUri(cfg.GetCVar(CCVars.InfoLinksWikiRules));
ToWikiSend.Visible = cfg.GetCVar(CCVars.InfoLinksWikiRules) != "";
}
}

0 comments on commit 5893501

Please sign in to comment.