Extract text feedback messages.
This commit is contained in:
committed by
Gustas
parent
94c8339e17
commit
c609c4af14
@@ -31,6 +31,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech notification type to play.")]
|
||||
public readonly string Notification = "BaseAttack";
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display.")]
|
||||
public readonly string TextNotification = null;
|
||||
|
||||
@@ -39,6 +40,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"Won't play a notification to allies if this is null.")]
|
||||
public readonly string AllyNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display to allies when under attack.")]
|
||||
public readonly string AllyTextNotification = null;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech notification type to play.")]
|
||||
public readonly string Notification = "HarvesterAttack";
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display.")]
|
||||
public readonly string TextNotification = null;
|
||||
|
||||
|
||||
@@ -54,16 +54,19 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[NotificationReference("Speech")]
|
||||
public readonly string WinNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
public readonly string WinTextNotification = null;
|
||||
|
||||
[NotificationReference("Speech")]
|
||||
public readonly string LoseNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
public readonly string LoseTextNotification = null;
|
||||
|
||||
[NotificationReference("Speech")]
|
||||
public readonly string LeaveNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
public readonly string LeaveTextNotification = null;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new MissionObjectives(init.Self.Owner, this); }
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech notification to play after building placement if new construction options are available.")]
|
||||
public readonly string NewOptionsNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display after building placement if new construction options are available.")]
|
||||
public readonly string NewOptionsTextNotification = null;
|
||||
|
||||
@@ -36,6 +37,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech notification to play if building placement is not possible.")]
|
||||
public readonly string CannotPlaceNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display if building placement is not possible.")]
|
||||
public readonly string CannotPlaceTextNotification = null;
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech notification to play when the player does not have any funds.")]
|
||||
public readonly string InsufficientFundsNotification = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text notification to display when the player does not have any funds.")]
|
||||
public readonly string InsufficientFundsTextNotification = null;
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string ReadyAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when production is complete.")]
|
||||
public readonly string ReadyTextNotification = null;
|
||||
|
||||
@@ -70,6 +71,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string BlockedAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when you can't train another actor",
|
||||
"when the build limit exceeded or the exit is jammed.")]
|
||||
public readonly string BlockedTextNotification = null;
|
||||
@@ -80,6 +82,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string LimitedAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when you can't queue another actor",
|
||||
"when the queue length limit is exceeded.")]
|
||||
public readonly string LimitedTextNotification = null;
|
||||
@@ -95,6 +98,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string QueuedAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when user clicks on the build palette icon.")]
|
||||
public readonly string QueuedTextNotification = null;
|
||||
|
||||
@@ -103,6 +107,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string OnHoldAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when player right-clicks on the build palette icon.")]
|
||||
public readonly string OnHoldTextNotification = null;
|
||||
|
||||
@@ -111,6 +116,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
"The filename of the audio is defined per faction in notifications.yaml.")]
|
||||
public readonly string CancelledAudio = null;
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Notification displayed when player right-clicks on a build palette icon that is already on hold.")]
|
||||
public readonly string CancelledTextNotification = null;
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Speech to play for the warning.")]
|
||||
public readonly string Notification = "SilosNeeded";
|
||||
|
||||
[TranslationReference(optional: true)]
|
||||
[Desc("Text to display for the warning.")]
|
||||
public readonly string TextNotification = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user