fix apply color to level

This commit is contained in:
GenZmeY 2021-06-15 00:29:00 +03:00
parent 48ea52e9f9
commit 3df649a1bb
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;