Rules header cvar + RP server rules header (#10450)

This commit is contained in:
Kara
2022-08-08 16:20:01 -07:00
committed by GitHub
parent 3fbc42aef0
commit 1eb4dfb13f
3 changed files with 9 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ namespace Content.Client.Info
public static Control MakeRules(IConfigurationManager cfg, IResourceManager res)
{
return MakeSection(Loc.GetString("ui-rules-header"), cfg.GetCVar(CCVars.RulesFile), true, res);
return MakeSection(Loc.GetString(cfg.GetCVar(CCVars.RulesHeader)), cfg.GetCVar(CCVars.RulesFile), true, res);
}
}
}

View File

@@ -24,6 +24,12 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<string> RulesFile =
CVarDef.Create("server.rules_file", "Rules.txt", CVar.REPLICATED | CVar.SERVER);
/// <summary>
/// A loc string for what should be displayed as the title on the Rules window.
/// </summary>
public static readonly CVarDef<string> RulesHeader =
CVarDef.Create("server.rules_header", "ui-rules-header", CVar.REPLICATED | CVar.SERVER);
/*
* Ambience
*/

View File

@@ -1,5 +1,6 @@
# Rules
ui-rules-header = SS14 Official Server Rules
ui-rules-header = Wizard's Den Official Server Rules
ui-rules-header-rp = Wizard's Den Roleplay Official Server Rules
ui-rules-accept = I have read and agree to follow the rules
ui-rules-wait = The accept button will be enabled after {$time} seconds.