Add configurable target cursors to various traits

This commit is contained in:
Ivaylo Draganov
2020-05-15 01:16:29 +03:00
committed by abcdefg30
parent d193ef856e
commit 393f6eca3a
4 changed files with 22 additions and 10 deletions

View File

@@ -93,6 +93,9 @@ namespace OpenRA.Mods.Cnc.Traits
"A dictionary of [actor id]: [condition].")]
public readonly Dictionary<string, string> DisguisedAsConditions = new Dictionary<string, string>();
[Desc("Cursor to show when hovering over a valid actor to disguise as.")]
public readonly string Cursor = "ability";
[GrantedConditionReference]
public IEnumerable<string> LinterConditions { get { return DisguisedAsConditions.Values; } }
@@ -284,7 +287,7 @@ namespace OpenRA.Mods.Cnc.Traits
readonly DisguiseInfo info;
public DisguiseOrderTargeter(DisguiseInfo info)
: base("Disguise", 7, "ability", true, true)
: base("Disguise", 7, info.Cursor, true, true)
{
this.info = info;
ForceAttack = false;