Fix mod switcher icon handling.
This commit is contained in:
@@ -217,13 +217,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
return mod.Icon;
|
||||
};
|
||||
}
|
||||
|
||||
if (logo != null && mod.Icon == null)
|
||||
if (mod.Icon == null)
|
||||
{
|
||||
// Hide the logo and center just the text
|
||||
if (title != null)
|
||||
title.Bounds.X = logo.Bounds.Left;
|
||||
title.Bounds.X = logo.Bounds.X;
|
||||
|
||||
if (version != null)
|
||||
version.Bounds.X = logo.Bounds.X;
|
||||
@@ -235,6 +234,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
// Add an equal logo margin on the right of the text
|
||||
width += logo.Bounds.Width;
|
||||
}
|
||||
}
|
||||
|
||||
var container = panel.GetOrNull("MOD_CONTAINER");
|
||||
if (container != null)
|
||||
|
||||
Reference in New Issue
Block a user