Build 0.18.9.0

This commit is contained in:
Markus Isberg
2022-06-14 04:14:47 +09:00
parent 4f5a3bf8b9
commit 856f894203
39 changed files with 459 additions and 377 deletions
@@ -492,7 +492,11 @@ namespace Barotrauma
#if CLIENT
if (setGraphicsMode)
{
GameMain.Instance.ApplyGraphicsSettings();
GameMain.Instance.ApplyGraphicsSettings(recalculateFontsAndStyles: true);
}
else if (textScaleChanged)
{
GUIStyle.RecalculateFonts();
}
if (audioOutputChanged)
@@ -505,17 +509,6 @@ namespace Barotrauma
VoipCapture.ChangeCaptureDevice(currentConfig.Audio.VoiceCaptureDevice);
}
if (textScaleChanged || resolutionChanged)
{
foreach (var font in GUIStyle.Fonts.Values)
{
font.Prefabs.ForEach(p => p.LoadFont());
}
foreach (var componentStyle in GUIStyle.ComponentStyles)
{
componentStyle.RefreshSize();
}
}
if (hudScaleChanged)
{
HUDLayoutSettings.CreateAreas();