Files
Jailbreak/lang/Jailbreak.English/SpecialDay/SDLocale.cs
2024-12-18 19:29:29 -08:00

51 lines
1.4 KiB
C#

using CounterStrikeSharp.API.Modules.Utils;
using Jailbreak.Formatting.Base;
using Jailbreak.Formatting.Core;
using Jailbreak.Formatting.Logistics;
using Jailbreak.Formatting.Objects;
using Jailbreak.Formatting.Views.SpecialDay;
namespace Jailbreak.English.SpecialDay;
public class SDLocale : ISDLocale, ILanguage<Formatting.Languages.English> {
public static readonly FormatObject PREFIX =
new HiddenFormatObject($" {ChatColors.DarkBlue}Game>") {
// Hide in panorama and center text
Plain = false, Panorama = false, Chat = true
};
public IView SpecialDayRunning(string name) {
return new SimpleView {
PREFIX,
"The current day is",
ChatColors.BlueGrey + name + ChatColors.Grey + "."
};
}
public IView InvalidSpecialDay(string name) {
return new SimpleView {
PREFIX,
ChatColors.Red + name,
ChatColors.Grey + "is not a valid special day."
};
}
public IView SpecialDayCooldown(int rounds) {
return new SimpleView {
PREFIX,
"You must wait",
rounds,
"more round" + (rounds == 1 ? "" : "s")
+ " before starting a special day."
};
}
public IView TooLateForSpecialDay(int maxTime) {
return new SimpleView {
PREFIX,
"You must start a special day within",
maxTime,
"second" + (maxTime == 1 ? "" : "s") + " of round start."
};
}
}