Add missing trait descriptions for cursors and unify the language

This commit is contained in:
Ivaylo Draganov
2020-05-18 15:18:35 +03:00
committed by abcdefg30
parent 227567dfe1
commit b8a9f41892
25 changed files with 59 additions and 11 deletions

View File

@@ -30,6 +30,7 @@ namespace OpenRA.Mods.Common.Traits
[SequenceReference("Image")]
public readonly string CirclesSequence = "circles";
[Desc("Cursor to display when rally point can be set.")]
public readonly string Cursor = "ability";
[PaletteReference("IsPlayerPalette")]

View File

@@ -36,7 +36,10 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Require the force-move modifier to display the move cursor.")]
public readonly bool RequiresForceMove = false;
[Desc("Cursor to display when able to land at target building.")]
public readonly string EnterCursor = "enter";
[Desc("Cursor to display when unable to land at target building.")]
public readonly string EnterBlockedCursor = "enter-blocked";
public override object Create(ActorInitializer init) { return new TransformsIntoAircraft(init, this); }

View File

@@ -23,7 +23,10 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Add to a building to expose a move cursor that triggers Transforms and issues an enter tunnel order to the transformed actor.")]
public class TransformsIntoEntersTunnelsInfo : ConditionalTraitInfo, Requires<TransformsInfo>
{
[Desc("Cursor to display when able to enter target tunnel.")]
public readonly string EnterCursor = "enter";
[Desc("Cursor to display when unable to enter target tunnel.")]
public readonly string EnterBlockedCursor = "enter-blocked";
[VoiceReference]

View File

@@ -27,7 +27,10 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Locomotor used by the transformed actor. Must be defined on the World actor.")]
public readonly string Locomotor = null;
[Desc("Cursor to display when a move order can be issued at target location.")]
public readonly string Cursor = "move";
[Desc("Cursor to display when a move order cannot be issued at target location.")]
public readonly string BlockedCursor = "move-blocked";
[VoiceReference]

View File

@@ -32,7 +32,10 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Require the force-move modifier to display the enter cursor.")]
public readonly bool RequiresForceMove = false;
[Desc("Cursor to display when able to enter target actor.")]
public readonly string EnterCursor = "enter";
[Desc("Cursor to display when unable to enter target actor.")]
public readonly string EnterBlockedCursor = "enter-blocked";
public override object Create(ActorInitializer init) { return new TransformsIntoPassenger(init.Self, this); }

View File

@@ -33,7 +33,10 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Require the force-move modifier to display the enter cursor.")]
public readonly bool RequiresForceMove = false;
[Desc("Cursor to display when able to be repaired at target actor.")]
public readonly string EnterCursor = "enter";
[Desc("Cursor to display when unable to be repaired at target actor.")]
public readonly string EnterBlockedCursor = "enter-blocked";
public override object Create(ActorInitializer init) { return new TransformsIntoRepairable(init.Self, this); }