From f9947ca7980e4d05c44f7d84145a83caff23f994 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 8 Jun 2021 23:31:56 +0300 Subject: [PATCH] save settings if needed --- ScoreboardExt/Classes/KFScoreBoard.uc | 8 ++++++++ ScoreboardExt/Classes/ScoreboardExtMut.uc | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index 5dd2e04..6251c5d 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -682,6 +682,14 @@ defaultproperties IdealPing=50.0 MaxPing=200.0 PingBars=5.0 + + SystemAdminRank="Admin" + SystemAdminColor=(R=250,G=0,B=0) + SystemAdminApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False) + + SystemPlayerRank="Player" + SystemPlayerColor=(R=250,G=250,B=250) + SystemPlayerApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False) Begin Object Class=KFGUI_List Name=PlayerList XSize=0.625 diff --git a/ScoreboardExt/Classes/ScoreboardExtMut.uc b/ScoreboardExt/Classes/ScoreboardExtMut.uc index 98b5683..65619c4 100644 --- a/ScoreboardExt/Classes/ScoreboardExtMut.uc +++ b/ScoreboardExt/Classes/ScoreboardExtMut.uc @@ -110,8 +110,11 @@ private function InitConfig() break; } - ConfigVersion = CurrentVersion; - SaveConfig(); + if (ConfigVersion != CurrentVersion) + { + ConfigVersion = CurrentVersion; + SaveConfig(); + } } private function LoadGroupPlayers()