Add support for transient text notifications matching speech notifications

This commit is contained in:
Ivaylo Draganov
2022-01-08 18:28:25 +02:00
committed by Paul Chote
parent 9f723be65a
commit 24b9482cc1
50 changed files with 372 additions and 46 deletions

View File

@@ -28,13 +28,19 @@ namespace OpenRA.Mods.Common.Traits
public readonly BitSet<DamageType> RepairDamageTypes = default(BitSet<DamageType>);
[NotificationReference("Speech")]
[Desc("The sound played when starting to repair a unit.")]
[Desc("Speech notification played when starting to repair a unit.")]
public readonly string StartRepairingNotification = null;
[Desc("Text notification displayed when starting to repair a unit.")]
public readonly string StartRepairingTextNotification = null;
[NotificationReference("Speech")]
[Desc("The sound played when repairing a unit is done.")]
[Desc("Speech notification played when repairing a unit is done.")]
public readonly string FinishRepairingNotification = null;
[Desc("Text notification displayed when repairing a unit is done.")]
public readonly string FinishRepairingTextNotification = null;
[Desc("Experience gained by the player owning this actor for repairing an allied unit.")]
public readonly int PlayerExperience = 0;