Add support for readonly hotkeys and expose chat input hotkeys

This commit is contained in:
Ivaylo Draganov
2021-07-22 18:49:19 +03:00
committed by Paul Chote
parent 1969ae361c
commit 5f42c7c8df
13 changed files with 60 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA
foreach (var kv in settings)
{
if (definitions.ContainsKey(kv.Key))
if (definitions.ContainsKey(kv.Key) && !definitions[kv.Key].Readonly)
keys[kv.Key] = kv.Value;
}
@@ -61,6 +61,9 @@ namespace OpenRA
if (!definitions.TryGetValue(name, out var definition))
return;
if (definition.Readonly)
return;
keys[name] = value;
if (value != definition.Default)
settings[name] = value;