Remove "Fake" tag.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace OpenRA.Traits
|
||||
|
||||
// depends on the order of pips in WorldRenderer.cs!
|
||||
public enum PipType { Transparent, Green, Yellow, Red, Gray, Blue, Ammo, AmmoEmpty }
|
||||
public enum TagType { None, Fake, Primary }
|
||||
public enum TagType { None, Primary }
|
||||
|
||||
[Flags]
|
||||
public enum Stance
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
// depends on the order of pips in TraitsInterfaces.cs!
|
||||
static readonly string[] PipStrings = { "pip-empty", "pip-green", "pip-yellow", "pip-red", "pip-gray", "pip-blue", "pip-ammo", "pip-ammoempty" };
|
||||
static readonly string[] TagStrings = { "", "tag-fake", "tag-primary" };
|
||||
static readonly string[] TagStrings = { "", "tag-primary" };
|
||||
|
||||
public readonly SelectionDecorationsInfo Info;
|
||||
readonly Actor self;
|
||||
|
||||
@@ -2739,6 +2739,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
node.Value.Nodes.RemoveAll(n => n.Key == "ShowToAllies");
|
||||
node.Value.Nodes.RemoveAll(n => n.Key == "ShowToEnemies");
|
||||
}
|
||||
|
||||
if (depth == 1 && node.Key == "Fake")
|
||||
{
|
||||
node.Key = "WithDecoration@fake";
|
||||
node.Value.Nodes.Add(new MiniYamlNode("RequiresSelection", "true"));
|
||||
node.Value.Nodes.Add(new MiniYamlNode("Image", "pips"));
|
||||
node.Value.Nodes.Add(new MiniYamlNode("Sequence", "tag-fake"));
|
||||
node.Value.Nodes.Add(new MiniYamlNode("ReferencePoint", "Top"));
|
||||
node.Value.Nodes.Add(new MiniYamlNode("ZOffset", "256"));
|
||||
}
|
||||
}
|
||||
|
||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
|
||||
@@ -86,7 +86,6 @@
|
||||
<Compile Include="Scripting\Properties\InfiltrateProperties.cs" />
|
||||
<Compile Include="Scripting\Properties\DisguiseProperties.cs" />
|
||||
<Compile Include="Traits\Attack\AttackLeap.cs" />
|
||||
<Compile Include="Traits\Buildings\Fake.cs" />
|
||||
<Compile Include="Traits\Buildings\ClonesProducedUnits.cs" />
|
||||
<Compile Include="Traits\Chronoshiftable.cs" />
|
||||
<Compile Include="Traits\Cloneable.cs" />
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
[Desc("Display a sprite tag \"fake\" when selected.")]
|
||||
class FakeInfo : TraitInfo<Fake> { }
|
||||
|
||||
class Fake : ITags
|
||||
{
|
||||
public IEnumerable<TagType> GetTags() { yield return TagType.Fake; }
|
||||
}
|
||||
}
|
||||
@@ -520,7 +520,12 @@
|
||||
DamageThreshold: 90
|
||||
RevealsShroud:
|
||||
Range: 4c0
|
||||
Fake:
|
||||
WithDecoration@fake:
|
||||
RequiresSelection: true
|
||||
Image: pips
|
||||
Sequence: tag-fake
|
||||
ReferencePoint: Top
|
||||
ZOffset: 256
|
||||
-EmitInfantryOnSell:
|
||||
-MustBeDestroyed:
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ pips:
|
||||
# Start: 4
|
||||
tag-fake:
|
||||
Start: 18
|
||||
Offset: 0, 2
|
||||
tag-primary:
|
||||
Start: 2
|
||||
pip-empty: pips2
|
||||
|
||||
Reference in New Issue
Block a user