Mark non-moddable translation strings as constant.

This commit is contained in:
Matthias Mailänder
2022-11-17 21:54:39 +01:00
committed by Gustas
parent 4f016f149f
commit 760a1245c5
58 changed files with 807 additions and 795 deletions

View File

@@ -22,6 +22,21 @@ namespace OpenRA.Mods.Common.Widgets.Logic
class GameInfoLogic : ChromeLogic
{
[TranslationReference]
const string Objectives = "objectives";
[TranslationReference]
const string Briefing = "briefing";
[TranslationReference]
const string Options = "options";
[TranslationReference]
const string Debug = "debug";
[TranslationReference]
const string Chat = "chat";
readonly World world;
readonly ModData modData;
readonly Action<bool> hideMenu;
@@ -29,21 +44,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
IngameInfoPanel activePanel;
readonly bool hasError;
[TranslationReference]
static readonly string Objectives = "objectives";
[TranslationReference]
static readonly string Briefing = "briefing";
[TranslationReference]
static readonly string Options = "options";
[TranslationReference]
static readonly string Debug = "debug";
[TranslationReference]
static readonly string Chat = "chat";
[ObjectCreator.UseCtor]
public GameInfoLogic(Widget widget, ModData modData, World world, IngameInfoPanel initialPanel, Action<bool> hideMenu)
{