Add a wait time for the rules popup (#5823)
* Create new rules popup * Implement accept and quit buttons * Add rules accept timer Forces the player to read the rules by making them wait. Speed reading the rules took me just under 45 seconds which means it'll take longer than that if someone's reading this for the first time. * Fix info rules header * Change _rulesPopup to local variable
This commit is contained in:
@@ -603,5 +603,15 @@ namespace Content.Shared.CCVar
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string>
|
||||
SalvageForced = CVarDef.Create("salvage.forced", "", CVar.SERVERONLY);
|
||||
|
||||
/*
|
||||
* Rules
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// Time that players have to wait before rules can be accepted.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> RulesWaitTime =
|
||||
CVarDef.Create("rules.time", 45f, CVar.SERVER | CVar.REPLICATED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user