From 3df649a1bb9271cd65fc6c12ee46d9a77f6d7c77 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 15 Jun 2021 00:29:00 +0300 Subject: [PATCH] fix apply color to level --- ScoreboardExt/Classes/KFScoreBoard.uc | 4 ++-- ScoreboardExt/Classes/ScoreboardExtMut.uc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index 89474b8..0e46568 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -581,10 +581,10 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float S = String(Level); DrawTextShadowHLeftVCenter(S, LevelXPos, TextYOffset, FontScalar); - if (CurrentRank.ApplyColorToFields.Perk) + if (CurrentRank.ApplyColorToFields.Level) SetDrawColor(C, CurrentRank.TextColor); else - SetDrawColor(C, Settings.Style.PerkTextColor); + SetDrawColor(C, Settings.Style.LevelTextColor); S = KFPRI.CurrentPerkClass.default.PerkName; DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar); } diff --git a/ScoreboardExt/Classes/ScoreboardExtMut.uc b/ScoreboardExt/Classes/ScoreboardExtMut.uc index e63833c..742358e 100644 --- a/ScoreboardExt/Classes/ScoreboardExtMut.uc +++ b/ScoreboardExt/Classes/ScoreboardExtMut.uc @@ -104,7 +104,7 @@ private function InitConfig() // Example rank for steam group members ExampleRank.ID = 1; - ExampleRank.Rank = "[MSK-GS]"; + ExampleRank.Rank = "MSK-GS"; ExampleRank.TextColor.R = 130; ExampleRank.TextColor.G = 250; ExampleRank.TextColor.B = 130;