Keep sprite ctrl groups for Dune 2000, Red Alert, Tiberian Dawn.
This commit is contained in:
@@ -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);
|
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
Beach: 50
|
Beach: 50
|
||||||
TurnSpeed: 5
|
TurnSpeed: 5
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -133,6 +134,7 @@
|
|||||||
UpgradeTypes: airborne
|
UpgradeTypes: airborne
|
||||||
UpgradeMinEnabledLevel: 1
|
UpgradeMinEnabledLevel: 1
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Aircraft:
|
Aircraft:
|
||||||
@@ -191,6 +193,7 @@
|
|||||||
PathingCost: 300
|
PathingCost: 300
|
||||||
Beach: 80
|
Beach: 80
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 12,17,0,-6
|
Bounds: 12,17,0,-6
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -351,6 +354,7 @@
|
|||||||
Beach: 80
|
Beach: 80
|
||||||
Voice: Move
|
Voice: Move
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -398,6 +402,7 @@
|
|||||||
BlueTiberium: 100
|
BlueTiberium: 100
|
||||||
Beach: 60
|
Beach: 60
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -463,6 +468,7 @@
|
|||||||
TerrainSpeeds:
|
TerrainSpeeds:
|
||||||
Water: 100
|
Water: 100
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Targetable:
|
Targetable:
|
||||||
TargetTypes: Ground, Water
|
TargetTypes: Ground, Water
|
||||||
@@ -486,6 +492,7 @@
|
|||||||
Inherits@2: ^SpriteActor
|
Inherits@2: ^SpriteActor
|
||||||
Huntable:
|
Huntable:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 3
|
Priority: 3
|
||||||
Targetable:
|
Targetable:
|
||||||
|
|||||||
@@ -74,6 +74,7 @@
|
|||||||
Dune: 50
|
Dune: 50
|
||||||
TurnSpeed: 5
|
TurnSpeed: 5
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 32,32
|
Bounds: 32,32
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -183,6 +184,7 @@
|
|||||||
Dune: 80
|
Dune: 80
|
||||||
Rough: 80
|
Rough: 80
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 12,20,0,-4
|
Bounds: 12,20,0,-4
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -245,6 +247,7 @@
|
|||||||
Inherits@2: ^SpriteActor
|
Inherits@2: ^SpriteActor
|
||||||
Huntable:
|
Huntable:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 2
|
Priority: 2
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
Beach: 40
|
Beach: 40
|
||||||
TurnSpeed: 5
|
TurnSpeed: 5
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24, 24
|
Bounds: 24, 24
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -189,6 +190,7 @@
|
|||||||
Gems: 80
|
Gems: 80
|
||||||
Beach: 80
|
Beach: 80
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 12,18,0,-8
|
Bounds: 12,18,0,-8
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -316,6 +318,7 @@
|
|||||||
TerrainSpeeds:
|
TerrainSpeeds:
|
||||||
Water: 100
|
Water: 100
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Targetable:
|
Targetable:
|
||||||
@@ -357,6 +360,7 @@
|
|||||||
AppearsOnRadar:
|
AppearsOnRadar:
|
||||||
UseLocation: true
|
UseLocation: true
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 24,24
|
Bounds: 24,24
|
||||||
Aircraft:
|
Aircraft:
|
||||||
@@ -420,6 +424,7 @@
|
|||||||
Inherits@2: ^IronCurtainable
|
Inherits@2: ^IronCurtainable
|
||||||
Inherits@3: ^SpriteActor
|
Inherits@3: ^SpriteActor
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
|
WithSpriteControlGroupDecoration:
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 3
|
Priority: 3
|
||||||
Targetable:
|
Targetable:
|
||||||
|
|||||||
Reference in New Issue
Block a user