Keep sprite ctrl groups for Dune 2000, Red Alert, Tiberian Dawn.

This commit is contained in:
Matthias Mailänder
2016-07-17 17:03:13 +02:00
parent 8452792bb1
commit 1a53bfd8a3
4 changed files with 25 additions and 0 deletions

View File

@@ -270,6 +270,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160717)
{
if (depth == 0)
{
var selectionDecorations = node.Value.Nodes.FirstOrDefault(n => n.Key == "SelectionDecorations");
if (selectionDecorations != null)
node.Value.Nodes.Add(selectionDecorations = new MiniYamlNode("WithSpriteControlGroup", ""));
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}

View File

@@ -69,6 +69,7 @@
Beach: 50
TurnSpeed: 5
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Targetable:
@@ -133,6 +134,7 @@
UpgradeTypes: airborne
UpgradeMinEnabledLevel: 1
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Aircraft:
@@ -191,6 +193,7 @@
PathingCost: 300
Beach: 80
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 12,17,0,-6
Targetable:
@@ -351,6 +354,7 @@
Beach: 80
Voice: Move
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Targetable:
@@ -398,6 +402,7 @@
BlueTiberium: 100
Beach: 60
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Targetable:
@@ -463,6 +468,7 @@
TerrainSpeeds:
Water: 100
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Targetable:
TargetTypes: Ground, Water
@@ -486,6 +492,7 @@
Inherits@2: ^SpriteActor
Huntable:
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Priority: 3
Targetable:

View File

@@ -74,6 +74,7 @@
Dune: 50
TurnSpeed: 5
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 32,32
Targetable:
@@ -183,6 +184,7 @@
Dune: 80
Rough: 80
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 12,20,0,-4
Targetable:
@@ -245,6 +247,7 @@
Inherits@2: ^SpriteActor
Huntable:
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Priority: 2
RevealsShroud:

View File

@@ -82,6 +82,7 @@
Beach: 40
TurnSpeed: 5
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24, 24
Targetable:
@@ -189,6 +190,7 @@
Gems: 80
Beach: 80
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 12,18,0,-8
Targetable:
@@ -316,6 +318,7 @@
TerrainSpeeds:
Water: 100
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Targetable:
@@ -357,6 +360,7 @@
AppearsOnRadar:
UseLocation: true
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Bounds: 24,24
Aircraft:
@@ -420,6 +424,7 @@
Inherits@2: ^IronCurtainable
Inherits@3: ^SpriteActor
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Priority: 3
Targetable: