Mark non-moddable translation strings as constant.
This commit is contained in:
committed by
Gustas
parent
4f016f149f
commit
760a1245c5
@@ -18,14 +18,14 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
[ChromeLogicArgsHotkeys("MuteAudioKey")]
|
||||
public class MuteHotkeyLogic : SingleHotkeyBaseLogic
|
||||
{
|
||||
[TranslationReference]
|
||||
const string AudioMuted = "audio-muted";
|
||||
|
||||
[TranslationReference]
|
||||
const string AudioUnmuted = "audio-unmuted";
|
||||
|
||||
readonly ModData modData;
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string AudioMuted = "audio-muted";
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string AudioUnmuted = "audio-unmuted";
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
public MuteHotkeyLogic(Widget widget, ModData modData, Dictionary<string, MiniYaml> logicArgs)
|
||||
: base(widget, modData, "MuteAudioKey", "GLOBAL_KEYHANDLER", logicArgs)
|
||||
|
||||
Reference in New Issue
Block a user