Rules header cvar + RP server rules header (#10450)
This commit is contained in:
@@ -77,7 +77,7 @@ namespace Content.Client.Info
|
|||||||
|
|
||||||
public static Control MakeRules(IConfigurationManager cfg, IResourceManager res)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,12 @@ namespace Content.Shared.CCVar
|
|||||||
public static readonly CVarDef<string> RulesFile =
|
public static readonly CVarDef<string> RulesFile =
|
||||||
CVarDef.Create("server.rules_file", "Rules.txt", CVar.REPLICATED | CVar.SERVER);
|
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
|
* Ambience
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Rules
|
# 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-accept = I have read and agree to follow the rules
|
||||||
ui-rules-wait = The accept button will be enabled after {$time} seconds.
|
ui-rules-wait = The accept button will be enabled after {$time} seconds.
|
||||||
|
|||||||
Reference in New Issue
Block a user