From 7edd203e5a400c34ff70c65285f6a66ebdfd9aa0 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 9 Jun 2021 04:16:59 +0300 Subject: [PATCH] remove avatar settings and update readme --- README.md | 1 - ScoreboardExt/Classes/KFScoreBoard.uc | 2 +- ScoreboardExt/Classes/ScoreboardStyle.uc | 3 --- ScoreboardExt/Classes/Types.uc | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index c915cba..0e87dc5 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,3 @@ 2. Check fields char capacity (crop if text is large then cap) 3. Check steam group (?) 4. Rework replication -5. Customizable colors diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index de5bbd0..945844e 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -503,7 +503,7 @@ function DrawPlayerEntry( Canvas C, int Index, float YOffset, float Height, floa if( KFPRI.Avatar == default.DefaultAvatar ) CheckAvatar(KFPRI, OwnerPC); - SetDrawColor(C, Settings.Style.AvatarBorderColor); // Check + C.SetDrawColor(255,255,255,255); C.SetPos(PlayerXPos - (Height * 1.075), YOffset + (Height * 0.5f) - ((Height - 6) * 0.5f)); C.DrawTile(KFPRI.Avatar,Height - 6,Height - 6,0,0,KFPRI.Avatar.SizeX,KFPRI.Avatar.SizeY); Owner.CurrentStyle.DrawBoxHollow(PlayerXPos - (Height * 1.075), YOffset + (Height * 0.5f) - ((Height - 6) * 0.5f), Height - 6, Height - 6, 1); diff --git a/ScoreboardExt/Classes/ScoreboardStyle.uc b/ScoreboardExt/Classes/ScoreboardStyle.uc index c0113c2..b0fb759 100644 --- a/ScoreboardExt/Classes/ScoreboardStyle.uc +++ b/ScoreboardExt/Classes/ScoreboardStyle.uc @@ -24,7 +24,6 @@ var config ColorRGBA RankTextColor; var config ColorRGBA ZedTextColor; var config ColorRGBA PerkTextColor; var config ColorRGBA LevelTextColor; -var config ColorRGBA AvatarBorderColor; var config ColorRGBA PlayerNameTextColor; var config ColorRGBA KillsTextColor; var config ColorRGBA AssistsTextColor; @@ -75,7 +74,6 @@ public static function SCEStyle Settings() Settings.ZedTextColor = default.ZedTextColor; Settings.PerkTextColor = default.PerkTextColor; Settings.LevelTextColor = default.LevelTextColor; - Settings.AvatarBorderColor = default.AvatarBorderColor; Settings.PlayerNameTextColor = default.PlayerNameTextColor; Settings.KillsTextColor = default.KillsTextColor; Settings.AssistsTextColor = default.AssistsTextColor; @@ -121,7 +119,6 @@ public static function WriteSettings(SCEStyle Settings) default.ZedTextColor = Settings.ZedTextColor; default.PerkTextColor = Settings.PerkTextColor; default.LevelTextColor = Settings.LevelTextColor; - default.AvatarBorderColor = Settings.AvatarBorderColor; default.PlayerNameTextColor = Settings.PlayerNameTextColor; default.KillsTextColor = Settings.KillsTextColor; default.AssistsTextColor = Settings.AssistsTextColor; diff --git a/ScoreboardExt/Classes/Types.uc b/ScoreboardExt/Classes/Types.uc index ac91393..a51c30a 100644 --- a/ScoreboardExt/Classes/Types.uc +++ b/ScoreboardExt/Classes/Types.uc @@ -171,7 +171,6 @@ struct SCEStyle var ColorRGBA ZedTextColor; var ColorRGBA PerkTextColor; var ColorRGBA LevelTextColor; - var ColorRGBA AvatarBorderColor; var ColorRGBA PlayerNameTextColor; var ColorRGBA KillsTextColor; var ColorRGBA AssistsTextColor; @@ -223,7 +222,6 @@ struct SCEStyle ZedTextColor=(R=255,G=0,B=0,A=255) PerkTextColor=(R=250,G=250,B=250,A=255) LevelTextColor=(R=250,G=250,B=250,A=255) - AvatarBorderColor=(R=255,G=255,B=255,A=255) PlayerNameTextColor=(R=250,G=250,B=250,A=255) KillsTextColor=(R=250,G=250,B=250,A=255) AssistsTextColor=(R=250,G=250,B=250,A=255)