From 428f87aa2e4401e4a42aa042d47593e01d55d32e Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 13 Jun 2021 06:31:09 +0300 Subject: [PATCH] add client style config --- ScoreboardExt/Classes/ScoreboardExtRepInfo.uc | 4 ++++ ScoreboardExt/Classes/ScoreboardStyleClient.uc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ScoreboardExt/Classes/ScoreboardExtRepInfo.uc b/ScoreboardExt/Classes/ScoreboardExtRepInfo.uc index 874b771..830061b 100644 --- a/ScoreboardExt/Classes/ScoreboardExtRepInfo.uc +++ b/ScoreboardExt/Classes/ScoreboardExtRepInfo.uc @@ -88,6 +88,10 @@ private reliable client function ClientApplySettings() } ClearTimer(nameof(ClientApplySettings)); + + if (class'ScoreboardStyleClient'.default.bEnabled) + Settings.Style = class'ScoreboardStyleClient'.static.Settings(); + SC.Settings = Settings; } diff --git a/ScoreboardExt/Classes/ScoreboardStyleClient.uc b/ScoreboardExt/Classes/ScoreboardStyleClient.uc index 70905fd..3c41d34 100644 --- a/ScoreboardExt/Classes/ScoreboardStyleClient.uc +++ b/ScoreboardExt/Classes/ScoreboardStyleClient.uc @@ -4,9 +4,9 @@ class ScoreboardStyleClient extends ScoreboardStyle `include(Build.uci) `include(Logger.uci) -var config bool bEnable; +var config bool bEnabled; defaultProperties { - bEnable=false + } \ No newline at end of file