This commit is contained in:
Benjamin Kyd
2019-06-07 22:36:21 +01:00
parent db62fbcc42
commit ccc022e263

View File

@@ -1,5 +1,6 @@
// Messy and mostly stolen code
systemChat "Chat Key pressed";
// If the key pressed in the chat bar was not enter, move on
@@ -8,12 +9,11 @@ systemChat "Enter Pressed";
private _chatmsg = ctrlText (finddisplay 24 displayctrl 101);
if ("/" != (_chatmsg select [0,1])) exitWith { };
if ("/" != (_chatmsg select [0,1])) exitWith { false; };
systemChat _chatmsg;
(finddisplay 24 displayctrl 101) ctrlSetText "";
// closeDialog 0;
// (findDisplay 24) closeDisplay 1;
private _command = (_chatmsg splitString "/");
private _args = (_command splitString " ");
@@ -22,3 +22,5 @@ systemChat _command select 0;
hint format ["%1", _args];
(findDisplay 24) displayRemoveEventHandler ["KeyDown", chatCommandEventH];
true;