fix 1 player shape

This commit is contained in:
GenZmeY 2021-06-13 10:01:07 +03:00
parent 5a70c4a4ac
commit ad77bf6d51

View File

@ -430,9 +430,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
if (!Settings.State.Dynamic) if (!Settings.State.Dynamic)
SetDrawColor(C, Settings.Style.LeftStateBoxColor); SetDrawColor(C, Settings.Style.LeftStateBoxColor);
if (Index == 0) if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapeLeftStateBoxTopPlayer; Shape = Settings.Style.ShapeLeftStateBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1) else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapeLeftStateBoxBottomPlayer; Shape = Settings.Style.ShapeLeftStateBoxBottomPlayer;
else else
Shape = Settings.Style.ShapeLeftStateBoxMidPlayer; Shape = Settings.Style.ShapeLeftStateBoxMidPlayer;
@ -452,9 +452,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
else else
SetDrawColor(C, Settings.Style.PlayerBoxColor); SetDrawColor(C, Settings.Style.PlayerBoxColor);
if (Index == 0) if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapePlayerBoxTopPlayer; Shape = Settings.Style.ShapePlayerBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1) else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapePlayerBoxBottomPlayer; Shape = Settings.Style.ShapePlayerBoxBottomPlayer;
else else
Shape = Settings.Style.ShapePlayerBoxMidPlayer; Shape = Settings.Style.ShapePlayerBoxMidPlayer;
@ -465,9 +465,9 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float
XPos += BoxWidth; XPos += BoxWidth;
// Right stats box // Right stats box
if (Index == 0) if (KFPRIArray.Length > 1 && Index == 0)
Shape = Settings.Style.ShapeStatsBoxTopPlayer; Shape = Settings.Style.ShapeStatsBoxTopPlayer;
else if (Index == KFPRIArray.Length - 1) else if (KFPRIArray.Length > 1 && Index == KFPRIArray.Length - 1)
Shape = Settings.Style.ShapeStatsBoxBottomPlayer; Shape = Settings.Style.ShapeStatsBoxBottomPlayer;
else else
Shape = Settings.Style.ShapeStatsBoxMidPlayer; Shape = Settings.Style.ShapeStatsBoxMidPlayer;