fix apply color to level
This commit is contained in:
parent
48ea52e9f9
commit
3df649a1bb
@ -581,10 +581,10 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
|
|||||||
S = String(Level);
|
S = String(Level);
|
||||||
DrawTextShadowHLeftVCenter(S, LevelXPos, TextYOffset, FontScalar);
|
DrawTextShadowHLeftVCenter(S, LevelXPos, TextYOffset, FontScalar);
|
||||||
|
|
||||||
if (CurrentRank.ApplyColorToFields.Perk)
|
if (CurrentRank.ApplyColorToFields.Level)
|
||||||
SetDrawColor(C, CurrentRank.TextColor);
|
SetDrawColor(C, CurrentRank.TextColor);
|
||||||
else
|
else
|
||||||
SetDrawColor(C, Settings.Style.PerkTextColor);
|
SetDrawColor(C, Settings.Style.LevelTextColor);
|
||||||
S = KFPRI.CurrentPerkClass.default.PerkName;
|
S = KFPRI.CurrentPerkClass.default.PerkName;
|
||||||
DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar);
|
DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar);
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ private function InitConfig()
|
|||||||
|
|
||||||
// Example rank for steam group members
|
// Example rank for steam group members
|
||||||
ExampleRank.ID = 1;
|
ExampleRank.ID = 1;
|
||||||
ExampleRank.Rank = "[MSK-GS]";
|
ExampleRank.Rank = "MSK-GS";
|
||||||
ExampleRank.TextColor.R = 130;
|
ExampleRank.TextColor.R = 130;
|
||||||
ExampleRank.TextColor.G = 250;
|
ExampleRank.TextColor.G = 250;
|
||||||
ExampleRank.TextColor.B = 130;
|
ExampleRank.TextColor.B = 130;
|
||||||
|
Loading…
Reference in New Issue
Block a user