Mark non-moddable translation strings as constant.
This commit is contained in:
committed by
Gustas
parent
4f016f149f
commit
760a1245c5
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user