Extract player profile loading chrome logic to a dedicated class

This commit is contained in:
Ivaylo Draganov
2024-10-03 12:17:08 +03:00
committed by Gustas
parent ca3ab78cf8
commit 791595e3ae
5 changed files with 33 additions and 10 deletions

View File

@@ -255,16 +255,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
menuType != MenuType.StartupPrompts &&
webServices.ModVersionStatus == ModVersionStatus.Outdated;
var playerProfile = widget.GetOrNull("PLAYER_PROFILE_CONTAINER");
if (playerProfile != null)
{
Func<bool> minimalProfile = () => Ui.CurrentWindow() != null;
Game.LoadWidget(world, "LOCAL_PROFILE_PANEL", playerProfile, new WidgetArgs()
{
{ "minimalProfile", minimalProfile }
});
}
menuType = MenuType.StartupPrompts;
void OnIntroductionComplete()