Allow disabling colors for NameAllKeys

This commit is contained in:
Ricardo Luís Vaz Silva 2023-09-01 13:20:44 -03:00 committed by Christoph Oelckers
parent 520b6af947
commit d0a955fef0
2 changed files with 3 additions and 2 deletions

View file

@ -1038,7 +1038,8 @@ DEFINE_ACTION_FUNCTION(FKeyBindings, NameAllKeys)
{
PARAM_PROLOGUE;
PARAM_POINTER(array, TArray<int>);
auto buffer = C_NameKeys(array->Data(), array->Size(), true);
PARAM_BOOL(color);
auto buffer = C_NameKeys(array->Data(), array->Size(), color);
ACTION_RETURN_STRING(buffer);
}

View file

@ -36,7 +36,7 @@
struct KeyBindings native version("2.4")
{
native static String NameKeys(int k1, int k2);
native static String NameAllKeys(array<int> list);
native static String NameAllKeys(array<int> list, bool colors = true);
native int, int GetKeysForCommand(String cmd);
native void GetAllKeysForCommand(out array<int> list, String cmd);