Make briefing less glitchy by not changing panel type before new briefing has been loaded
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user