Make briefing less glitchy by not changing panel type before new briefing has been loaded

This commit is contained in:
Gustas
2024-10-07 16:52:23 +03:00
committed by Paul Chote
parent 53218414f8
commit 8cd08e6a58

View File

@@ -268,8 +268,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var infoVideo = "";
var infoVideoVisible = false;
panel = PanelType.MissionInfo;
new Thread(() =>
{
var missionData = preview.WorldActorInfo.TraitInfoOrDefault<MissionDataInfo>();
@@ -290,6 +288,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
description.GetText = () => briefing;
description.Bounds.Height = height;
descriptionPanel.Layout.AdjustChildren();
panel = PanelType.MissionInfo;
}
});
}