Use short context names in hotkey yaml, generate translation key at runtime.

This commit is contained in:
RoosterDragon
2024-09-23 19:06:08 +01:00
committed by Gustas
parent 559a76be8d
commit 6bd64677ec
15 changed files with 208 additions and 203 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
const string DuplicateNotice = "label-duplicate-notice";
[FluentReference]
const string AnyContext = "hotkey-context-any";
const string AnyContext = HotkeyDefinition.ContextFluentPrefix + "-any";
readonly ModData modData;
readonly Dictionary<string, MiniYaml> logicArgs;