Skip to content

Commit

Permalink
fix chat colours
Browse files Browse the repository at this point in the history
  • Loading branch information
destoer committed Nov 22, 2023
1 parent 3b1e0c3 commit 0590239
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ public static void test_laser(CCSPlayerController? invoke, CommandInfo command)
// are these commands allowed or not?
public static readonly bool enable = true;

public static readonly String DEBUG_PREFIX = $"{ChatColors.Green}[DEBUG]: {ChatColors.White}";
public static readonly String DEBUG_PREFIX = $" {ChatColors.Green}[DEBUG]: {ChatColors.White}";
}
2 changes: 1 addition & 1 deletion src/LastRequest/LastRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -902,5 +902,5 @@ internal class LrChoice

LrChoice[] lr_choice = new LrChoice[64];

public static readonly String LR_PREFIX = $"{ChatColors.Green}[LR]: {ChatColors.White}";
public static readonly String LR_PREFIX = $" {ChatColors.Green}[LR]: {ChatColors.White}";
}
2 changes: 1 addition & 1 deletion src/SpecialDay/SpecialDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public enum SDType
NONE
};

public static readonly String SPECIALDAY_PREFIX = "[Special day]: ";
public static readonly String SPECIALDAY_PREFIX = $" {ChatColors.Green}[Special day]: {ChatColors.White}";

static String[] SD_NAME = {
"Friendly fire",
Expand Down
2 changes: 1 addition & 1 deletion src/Warden/JailPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void rebel_death(CCSPlayerController? player,CCSPlayerController? killer)
// print death if player is rebel and killer on CT
if(is_rebel && killer.TeamNum == Lib.TEAM_CT)
{
Server.PrintToChatAll($"{ChatColors.Green}[REBEL]: {ChatColors.White}{killer.PlayerName} killed the rebel {player.PlayerName}");
Server.PrintToChatAll($" {ChatColors.Green}[REBEL]: {ChatColors.White}{killer.PlayerName} killed the rebel {player.PlayerName}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Warden/Mute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void switch_team(CCSPlayerController? player,int new_team)

CSTimer.Timer? mute_timer = null;

static readonly String MUTE_PREFIX = $"{ChatColors.Green}[MUTE]: {ChatColors.White}";
static readonly String MUTE_PREFIX = $" {ChatColors.Green}[MUTE]: {ChatColors.White}";

// has the mute timer finished?
bool mute_active = false;
Expand Down
6 changes: 4 additions & 2 deletions src/Warden/Warday.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void gun_callback()
}
}

Lib.announce("[WARDAY]: ","Weapons live!");
Lib.announce(WARDAY_PREFIX,"Weapons live!");
}

warday_timer = null;
Expand All @@ -39,7 +39,7 @@ public bool start_warday(String location)
{
if(round_counter >= ROUND_LIMIT)
{
Lib.announce("[WARDAY]: ",$"warday will start in 20 seconds at {location}");
Lib.announce(WARDAY_PREFIX,$"warday will start in 20 seconds at {location}");

// must wait again to start a warday
round_counter = 0;
Expand Down Expand Up @@ -86,6 +86,8 @@ public void map_start()
round_counter = ROUND_LIMIT;
}

String WARDAY_PREFIX = $" {ChatColors.Green} [Warday]: {ChatColors.White}";

bool warday_active = false;

public int round_counter = ROUND_LIMIT;
Expand Down
2 changes: 1 addition & 1 deletion src/Warden/Warden.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public void weapon_fire(CCSPlayerController? player, String name)

int warden_slot = INAVLID_SLOT;

public static readonly String WARDEN_PREFIX = $"{ChatColors.Green}[WARDEN]: {ChatColors.White}";
public static readonly String WARDEN_PREFIX = $" {ChatColors.Green}[WARDEN]: {ChatColors.White}";


JailPlayer[] jail_players = new JailPlayer[64];
Expand Down

0 comments on commit 0590239

Please sign in to comment.