From 8f2481f8fb66ed519cb7d39dbe59bc4bada1d696 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Mon, 31 Jul 2023 03:02:21 +0100 Subject: Adjust colours --- code/ui/character/LookingAtInfo.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/ui') diff --git a/code/ui/character/LookingAtInfo.razor b/code/ui/character/LookingAtInfo.razor index 4a54b81..098feb4 100644 --- a/code/ui/character/LookingAtInfo.razor +++ b/code/ui/character/LookingAtInfo.razor @@ -41,13 +41,13 @@ lookingatinfo { public string GetLookingAtName() { if (Game.LocalPawn is not Player player) return ""; - return player.LookingAt is not { } lookingAt ? "" : lookingAt.CharacterName; + return player.LookingAt is not { } lookingAt ? "" : (lookingAt.CharacterName ?? lookingAt.Client.Name); } public string GetLookingAtColour() { if (Game.LocalPawn is not Player player) return "white"; - return player.LookingAt is not { } lookingAt ? "white" : lookingAt.HexColor; + return player.LookingAt is not { } lookingAt ? "white" : (string.IsNullOrWhiteSpace(lookingAt.HexColor) ? "white" : lookingAt.HexColor); } protected override int BuildHash() -- cgit v1.2.3-70-g09d2