Add SupportPowerPaletteOrder to SupportPowerInfo
This commit is contained in:
committed by
abcdefg30
parent
a8b7fcaf87
commit
a85b634655
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user