Show rules on first connection (#5715)
* Implement showing rules on first connection * Clean up RulesManager * Change changelog and rules unread to use CVars * Fix missing change * Rename InfoWindow to RulesAndInfoWindow * Change default server.id to unknown * Fix invalid file contents and getting CVar
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Content.Client.Info
|
||||
var uriOpener = IoCManager.Resolve<IUriOpener>();
|
||||
|
||||
var rulesButton = new Button() { Text = Loc.GetString("server-info-rules-button") };
|
||||
rulesButton.OnPressed += args => new InfoWindow().Open();
|
||||
rulesButton.OnPressed += args => new RulesAndInfoWindow().Open();
|
||||
|
||||
var discordButton = new Button {Text = Loc.GetString("server-info-discord-button") };
|
||||
discordButton.OnPressed += args => uriOpener.OpenUri(UILinks.Discord);
|
||||
|
||||
Reference in New Issue
Block a user