Files
Jailbreak/lang/Jailbreak.English/LastGuard/LastGuardNotifications.cs
2024-07-11 19:48:57 -07:00

29 lines
922 B
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;
namespace Jailbreak.English.LastGuard;
public class LastGuardNotifications : ILastGuardNotifications,
ILanguage<Formatting.Languages.English> {
private static readonly FormatObject PREFIX =
new HiddenFormatObject(
$" {ChatColors.DarkRed}[{ChatColors.LightRed}Last Guard{ChatColors.DarkRed}]") {
// Hide in panorama and center text
Plain = false, Panorama = false, Chat = true
};
public IView LGStarted(int ctHealth, int tHealth) {
return new SimpleView {
PREFIX,
$"{ChatColors.Red}Last Guard has been activated! Last guard has",
ctHealth,
$"{ChatColors.Red}health and Ts have",
tHealth,
$"{ChatColors.Red}health."
};
}
}