Adds rule button to lobby and character creation. Add IC naming warning. (#4760)
This commit is contained in:
committed by
GitHub
parent
c8193ef393
commit
54a2b5dee0
@@ -1,5 +1,6 @@
|
||||
using System.Linq;
|
||||
using Content.Client.CharacterAppearance;
|
||||
using Content.Client.Info;
|
||||
using Content.Client.Lobby.UI;
|
||||
using Content.Client.Parallax;
|
||||
using Content.Client.Resources;
|
||||
@@ -30,6 +31,7 @@ namespace Content.Client.Preferences.UI
|
||||
private readonly IClientPreferencesManager _preferencesManager;
|
||||
public readonly Button CloseButton;
|
||||
public readonly Button SaveButton;
|
||||
public readonly Button RulesButton;
|
||||
|
||||
public CharacterSetupGui(
|
||||
IEntityManager entityManager,
|
||||
@@ -84,12 +86,19 @@ namespace Content.Client.Preferences.UI
|
||||
StyleClasses = {StyleNano.StyleClassLabelHeadingBigger},
|
||||
VAlign = Label.VAlignMode.Center,
|
||||
},
|
||||
(SaveButton = new Button
|
||||
(RulesButton = new Button
|
||||
{
|
||||
HorizontalExpand = true,
|
||||
HorizontalAlignment = HAlignment.Right,
|
||||
Text = Loc.GetString("character-setup-gui-character-setup-rules-button"),
|
||||
StyleClasses = {StyleNano.StyleClassButtonBig},
|
||||
|
||||
}),
|
||||
(SaveButton = new Button
|
||||
{
|
||||
Text = Loc.GetString("character-setup-gui-character-setup-save-button"),
|
||||
StyleClasses = {StyleNano.StyleClassButtonBig},
|
||||
|
||||
}),
|
||||
(CloseButton = new Button
|
||||
{
|
||||
@@ -155,6 +164,7 @@ namespace Content.Client.Preferences.UI
|
||||
|
||||
UpdateUI();
|
||||
|
||||
RulesButton.OnPressed += _ => new InfoWindow().Open();
|
||||
preferencesManager.OnServerDataLoaded += UpdateUI;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user