Extract version label chrome logic to a dedicated class

This commit is contained in:
Ivaylo Draganov
2024-10-03 11:46:44 +03:00
committed by Gustas
parent fff41a44ed
commit c0839d4521
11 changed files with 32 additions and 12 deletions

View File

@@ -69,8 +69,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
this.modData = modData;
rootMenu = widget;
var versionText = modData.Manifest.Metadata.Version;
rootMenu.Get<LabelWidget>("VERSION_LABEL").GetText = () => versionText;
// Menu buttons
var mainMenu = widget.Get("MAIN_MENU");