Mark non-moddable translation strings as constant.
This commit is contained in:
committed by
Gustas
parent
4f016f149f
commit
760a1245c5
@@ -72,6 +72,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public class DeveloperMode : IResolveOrder, ISync, INotifyCreated, IUnlocksRenderPlayer
|
||||
{
|
||||
[TranslationReference("cheat", "player", "suffix")]
|
||||
const string CheatUsed = "cheat-used";
|
||||
|
||||
readonly DeveloperModeInfo info;
|
||||
public bool Enabled { get; private set; }
|
||||
|
||||
@@ -106,9 +109,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
bool enableAll;
|
||||
|
||||
[TranslationReference("cheat", "player", "suffix")]
|
||||
static readonly string CheatUsed = "cheat-used";
|
||||
|
||||
public DeveloperMode(DeveloperModeInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
|
||||
@@ -22,6 +22,15 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Configuration options for the lobby player color picker. Attach this to the world actor.")]
|
||||
public class ColorPickerManagerInfo : TraitInfo<ColorPickerManager>, IRulesetLoaded
|
||||
{
|
||||
[TranslationReference]
|
||||
const string PlayerColorTerrain = "player-color-terrain";
|
||||
|
||||
[TranslationReference]
|
||||
const string PlayerColorPlayer = "player-color-player";
|
||||
|
||||
[TranslationReference]
|
||||
const string InvalidPlayerColor = "invalid-player-color";
|
||||
|
||||
[Desc("Minimum and maximum saturation levels that are valid for use.")]
|
||||
public readonly float[] HsvSaturationRange = { 0.3f, 0.95f };
|
||||
|
||||
@@ -60,13 +69,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public Color Color;
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string PlayerColorTerrain = "player-color-terrain";
|
||||
[TranslationReference]
|
||||
static readonly string PlayerColorPlayer = "player-color-player";
|
||||
[TranslationReference]
|
||||
static readonly string InvalidPlayerColor = "invalid-player-color";
|
||||
|
||||
bool TryGetBlockingColor((float R, float G, float B) color, List<(float R, float G, float B)> candidateBlockers, out (float R, float G, float B) closestBlocker)
|
||||
{
|
||||
var closestDistance = SimilarityThreshold;
|
||||
|
||||
Reference in New Issue
Block a user