SMh
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user