mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
Allow disabling colors for NameAllKeys
This commit is contained in:
parent
520b6af947
commit
d0a955fef0
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue