From 6803de9539533fa6b18aca1b0a3c720522f72bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 26 May 2016 19:28:38 +0200 Subject: [PATCH] Make the cursor configurable and expose it to Trait docs. --- OpenRA.Mods.Common/Traits/Demolition.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Demolition.cs b/OpenRA.Mods.Common/Traits/Demolition.cs index c979613b68..2fb4c24fae 100644 --- a/OpenRA.Mods.Common/Traits/Demolition.cs +++ b/OpenRA.Mods.Common/Traits/Demolition.cs @@ -43,6 +43,8 @@ namespace OpenRA.Mods.Common.Traits [Desc("Voice string when planting explosive charges.")] [VoiceReference] public readonly string Voice = "Action"; + public readonly string Cursor = "c4"; + public object Create(ActorInitializer init) { return new Demolition(this); } } @@ -57,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits public IEnumerable Orders { - get { yield return new DemolitionOrderTargeter("c4"); } + get { yield return new DemolitionOrderTargeter(info.Cursor); } } public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)