From 73419a58f25a0cc416064683e3dba673e976eac5 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 13 Jun 2021 08:40:26 +0300 Subject: [PATCH] ... --- ScoreboardExt/Classes/KFScoreBoard.uc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index e3cb472..53fe831 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -267,24 +267,19 @@ function DrawMenu() PerkXPos = Width * 0.40; Canvas.TextSize(class'KFGFxHUD_ScoreboardWidget'.default.PingString$" ", XL, YL, FontScalar, FontScalar); - XL = XL < MinBoxW ? MinBoxW : XL; - PingXPos = Width - XL; + PingXPos = Width - (XL < MinBoxW ? MinBoxW : XL); Canvas.TextSize(State$" ", XL, YL, FontScalar, FontScalar); - XL = XL < MinBoxW ? MinBoxW : XL; - HealthXPos = PingXPos - XL; + HealthXPos = PingXPos - (XL < MinBoxW ? MinBoxW : XL); Canvas.TextSize(class'KFGFxHUD_ScoreboardWidget'.default.AssistsString$" ", XL, YL, FontScalar, FontScalar); - XL = XL < MinBoxW ? MinBoxW : XL; - AssistXPos = HealthXPos - XL; + AssistXPos = HealthXPos - (XL < MinBoxW ? MinBoxW : XL); Canvas.TextSize(class'KFGFxHUD_ScoreboardWidget'.default.KillsString$" ", XL, YL, FontScalar, FontScalar); - XL = XL < MinBoxW ? MinBoxW : XL; - KillsXPos = AssistXPos - XL; + KillsXPos = AssistXPos - (XL < MinBoxW ? MinBoxW : XL); Canvas.TextSize(class'KFGFxHUD_ScoreboardWidget'.default.DoshString$" ", XL, YL, FontScalar, FontScalar); - XL = XL < MinBoxW ? MinBoxW : XL; - CashXPos = KillsXPos - XL; + CashXPos = KillsXPos - (XL < MinBoxW ? MinBoxW : XL); StatusWBox = PlayerXPos - RankXPos; PlayerWBox = PerkXPos - PlayerXPos;