This commit is contained in:
Chris Forbes
2009-11-16 21:29:48 +13:00
parent 99275fac36
commit 2a5ef4e830
4 changed files with 43 additions and 31 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenRa.Game
DrawBuildPalette("Building");
}
static string[] groups = new string[] { "Building", "Vehicle", "Ship", "Infantry", "Plane" };
static string[] groups = new string[] { "Building", "Defense", "Vehicle", "Ship", "Infantry", "Plane" };
Dictionary<string, Sprite> sprites;
void DrawBuildPalette(string queueName)
@@ -75,7 +75,9 @@ namespace OpenRa.Game
var y = 0;
var buildableItems = Rules.TechTree.BuildableItems(Game.LocalPlayer, queueName).ToArray();
foreach (var item in Rules.TechTree.AllItems(Game.LocalPlayer, queueName))
var allItems = Rules.TechTree.AllItems(Game.LocalPlayer, queueName)
.OrderBy( a => Rules.UnitInfo[a].TechLevel );
foreach (var item in allItems)
{
if (Rules.UnitInfo[item].TechLevel == -1) continue;
var rect = new Rectangle(Game.viewport.Width - (3 - x) * 64 - 20, 32 + 48 * y, 64, 48);