From 2f9fcbf5c0dcbb97cc74ffba3856c9ebdc07ee77 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Thu, 27 May 2021 03:37:53 +0300 Subject: [PATCH] show the perk and its icon in the same way as the player and avatar --- ScoreboardExt/Classes/KFScoreBoard.uc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index e4d4780..5206b92 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -294,9 +294,9 @@ function DrawPlayerEntry( Canvas C, int Index, float YOffset, float Height, floa PrestigeLevel = KFPRI.GetActivePerkPrestigeLevel(); Level = KFPRI.GetActivePerkLevel(); - PerkIconPosX = PerkXPos; PerkIconPosY = YOffset + (Owner.HUDOwner.ScaledBorderSize * 2); PerkIconSize = Height-(Owner.HUDOwner.ScaledBorderSize * 4); + PerkIconPosX = PerkXPos - PerkIconSize - (Owner.HUDOwner.ScaledBorderSize*2); PrestigeIconScale = 0.6625f; C.DrawColor = HUDOwner.WhiteColor; @@ -316,13 +316,13 @@ function DrawPlayerEntry( Canvas C, int Index, float YOffset, float Height, floa C.SetDrawColor(250,250,250,255); S = Level@KFPRI.CurrentPerkClass.default.PerkName; - DrawTextShadowHLeftVCenter(S, PerkIconPosX + PerkIconSize + (Owner.HUDOwner.ScaledBorderSize*2), TextYOffset, FontScalar); + DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar); } else { C.SetDrawColor(250,250,250,255); S = "No Perk"; - DrawTextShadowHLeftVCenter(S, PerkXPos + Height, TextYOffset, FontScalar); + DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar); } }