fix key input not working

This commit is contained in:
commy2 2015-01-13 17:42:56 +01:00
parent e575e6027e
commit 2336b51e5b
3 changed files with 5 additions and 5 deletions

View File

@ -51,13 +51,13 @@ class ACE_Rsc_Control_Base {
h = 0; h = 0;
}; };
class GVAR(canInteractConditions) { class ACE_canInteractConditions {
class GVAR(notOnMap) { class GVAR(notOnMap) {
condition = "!visibleMap"; condition = "!visibleMap";
}; };
}; };
class GVAR(Options) { class ACE_Options {
class enableNumberHotkeys { class enableNumberHotkeys {
displayName = "$STR_ACE_Common_EnableNumberHotkeys"; displayName = "$STR_ACE_Common_EnableNumberHotkeys";
default = 1; default = 1;

View File

@ -17,7 +17,7 @@ _overwrite = _this select 0;
_saveProfile = false; _saveProfile = false;
_config = configFile >> QGVAR(Default_Keys); _config = configFile >> "ACE_Default_Keys";
_count = count _config; _count = count _config;
for "_index" from 0 to (_count - 1) do { for "_index" from 0 to (_count - 1) do {
@ -38,7 +38,7 @@ for "_index" from 0 to (_count - 1) do {
}; };
}; };
_config = configFile >> QGVAR(Options); _config = configFile >> "ACE_Options";
_count = count _config; _count = count _config;
for "_index" from 0 to (_count - 1) do { for "_index" from 0 to (_count - 1) do {

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "\z\ace\addons\common\script_component.hpp" #include "\z\ace\addons\common\script_component.hpp"
_config = configFile >> ACE_Default_Keys; _config = configFile >> "ACE_Default_Keys";
_count = count _config; _count = count _config;
_header = format ["_keyCode = [_this select 1, _this select 2, _this select 3, _this select 4] call %1; _keyIndex = floor _keyCode; if (_keyIndex == 0) exitWith {false}; if (!(profileNamespace getVariable ['ACE_enableNumberHotkeys', true]) && {_keyIndex < 12} && {_keyIndex > 1} && {_keyCode mod 1 == 0}) exitWith {false}; _time = time; _player = ACE_player; _vehicle = vehicle _player; _isInput = false;", QUOTE(FUNC(convertKeyCode))]; _header = format ["_keyCode = [_this select 1, _this select 2, _this select 3, _this select 4] call %1; _keyIndex = floor _keyCode; if (_keyIndex == 0) exitWith {false}; if (!(profileNamespace getVariable ['ACE_enableNumberHotkeys', true]) && {_keyIndex < 12} && {_keyIndex > 1} && {_keyCode mod 1 == 0}) exitWith {false}; _time = time; _player = ACE_player; _vehicle = vehicle _player; _isInput = false;", QUOTE(FUNC(convertKeyCode))];