From 5b5baa59cfa474a5383f67c60aea1740abb3faeb Mon Sep 17 00:00:00 2001 From: jonpas Date: Thu, 7 Mar 2019 16:55:37 +0100 Subject: [PATCH] Update DIK Codes include path (#1090) * Update DIK Codes define path Updated path, used in ACE3 everywhere and in CBA mostly. * Update fnc_add.sqf * Update script_component.hpp * Update fnc_addKeybind.sqf --- addons/events/script_component.hpp | 2 +- addons/keybinding/fnc_addKeybind.sqf | 4 ++-- addons/ui/flexiMenu/fnc_add.sqf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/events/script_component.hpp b/addons/events/script_component.hpp index dfcca14f6..08bc8ac2c 100644 --- a/addons/events/script_component.hpp +++ b/addons/events/script_component.hpp @@ -39,7 +39,7 @@ #define GETOBJ(obj) (if (obj isEqualType grpNull) then {leader obj} else {obj}) -#include "\a3\editor_f\Data\Scripts\dikCodes.h" +#include "\a3\ui_f\hpp\defineDIKCodes.inc" // key handler system #define MOUSE_OFFSET 0xF0 diff --git a/addons/keybinding/fnc_addKeybind.sqf b/addons/keybinding/fnc_addKeybind.sqf index 803814ad5..7fc65e37e 100644 --- a/addons/keybinding/fnc_addKeybind.sqf +++ b/addons/keybinding/fnc_addKeybind.sqf @@ -7,7 +7,7 @@ Description: a function with that keybind being pressed. This file should be included for readable DIK codes: - #include "\a3\editor_f\Data\Scripts\dikCodes.h" + #include "\a3\ui_f\hpp\defineDIKCodes.inc" Additional DIK codes usable with this function: 0xF0: Left mouse button @@ -40,7 +40,7 @@ Returns: Examples: (begin example) // Register a simple keypress to an action - #include "\a3\editor_f\Data\Scripts\dikCodes.h" + #include "\a3\ui_f\hpp\defineDIKCodes.inc" ["MyMod", "MyKey", ["My Pretty Key Name", "My Pretty Tool Tip"], { _this call mymod_fnc_keyDown diff --git a/addons/ui/flexiMenu/fnc_add.sqf b/addons/ui/flexiMenu/fnc_add.sqf index 702ccff5b..d0856faf6 100644 --- a/addons/ui/flexiMenu/fnc_add.sqf +++ b/addons/ui/flexiMenu/fnc_add.sqf @@ -4,7 +4,7 @@ TRACE_1("",_this); // _this = ["player", [DIK_LSHIFT], -3, ["mission\weapon_menuDef.sqf", ["main"]]] -// Note: calling script may require this file for dik codes: #include "\a3\editor_f\Data\Scripts\dikCodes.h" +// Note: calling script may require this file for dik codes: #include "\a3\ui_f\hpp\defineDIKCodes.inc" private _msg = "FLEXIMENU: Unknown Error in fnc_add.sqf"; //Initialize private _key = [];