Add SupportPowerPaletteOrder to SupportPowerInfo

This commit is contained in:
Ivaylo Draganov
2019-06-07 01:46:42 +03:00
committed by abcdefg30
parent a8b7fcaf87
commit a85b634655
3 changed files with 8 additions and 2 deletions

View File

@@ -123,7 +123,8 @@ namespace OpenRA.Mods.Common.Widgets
public void RefreshIcons()
{
icons = new Dictionary<Rectangle, SupportPowerIcon>();
var powers = spm.Powers.Values.Where(p => !p.Disabled);
var powers = spm.Powers.Values.Where(p => !p.Disabled)
.OrderBy(p => p.Info.SupportPowerPaletteOrder);
var oldIconCount = IconCount;
IconCount = 0;