Localize the faction dropdown.

This commit is contained in:
Matthias Mailänder
2024-07-16 19:27:06 +02:00
committed by Gustas
parent 59f6a6a2c2
commit 5ddc7b1177
14 changed files with 229 additions and 63 deletions

View File

@@ -17,6 +17,7 @@ namespace OpenRA.Traits
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
public class FactionInfo : TraitInfo<Faction>
{
[TranslationReference]
[Desc("This is the name exposed to the players.")]
public readonly string Name = null;
@@ -29,6 +30,8 @@ namespace OpenRA.Traits
[Desc("The side that the faction belongs to. For example, England belongs to the 'Allies' side.")]
public readonly string Side = null;
[TranslationReference(optional: true)]
[Desc("This is shown in the lobby as a tooltip.")]
public readonly string Description = null;
public readonly bool Selectable = true;