From 3f2b1a3ec4e635f0227ec243d2b603d37674b940 Mon Sep 17 00:00:00 2001 From: Ethan Moffat Date: Mon, 19 Sep 2022 13:44:11 -0700 Subject: [PATCH] Fix bug in default panel display --- EndlessClient/HUD/Controls/HudControlsFactory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EndlessClient/HUD/Controls/HudControlsFactory.cs b/EndlessClient/HUD/Controls/HudControlsFactory.cs index a9a477241..bc2fa58e0 100644 --- a/EndlessClient/HUD/Controls/HudControlsFactory.cs +++ b/EndlessClient/HUD/Controls/HudControlsFactory.cs @@ -324,7 +324,8 @@ private IGameComponent CreateStatePanel(InGameStates whichState) } //news is visible by default when loading the game if news text is set - retPanel.Visible = (_newsProvider.NewsText.Any() && whichState == InGameStates.News) || whichState == InGameStates.Chat; + retPanel.Visible = (_newsProvider.NewsText.Any() && whichState == InGameStates.News) || + (!_newsProvider.NewsText.Any() && whichState == InGameStates.Chat); return retPanel; }