mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
interaction: add script_component, initial CBAfication of config.
This commit is contained in:
parent
17564e483a
commit
8bff5f6ef4
27
addons/interaction/CfgEventHandlers.hpp
Normal file
27
addons/interaction/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,27 @@
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
clientInit = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_clientInit.sqf) );
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_GetIn_EventHandlers {
|
||||
class All {
|
||||
class ADDONnu {
|
||||
clientGetIn = QUOTE( if (_this select 2 == AGM_player && {!isNull (findDisplay 1713999)}) then {(findDisplay 1713999) closeDisplay 1});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_GetOut_EventHandlers {
|
||||
class All {
|
||||
class ADDONnu {
|
||||
clientGetOut = QUOTE( if (_this select 2 == AGM_player && {!isNull (findDisplay 1713999)}) then {(findDisplay 1713999) closeDisplay 1});
|
||||
};
|
||||
};
|
||||
};
|
48
addons/interaction/XEH_preInit.sqf
Normal file
48
addons/interaction/XEH_preInit.sqf
Normal file
@ -0,0 +1,48 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
PREPF(addInteraction);
|
||||
PREPF(addInteractionSelf);
|
||||
PREPF(AddSelectableItem);
|
||||
PREPF(addToTooltip);
|
||||
PREPF(applyButtons);
|
||||
PREPF(canInteractWith);
|
||||
PREPF(canLockDoor);
|
||||
PREPF(canTapShoulder);
|
||||
PREPF(getActions2);
|
||||
PREPF(GetActions);
|
||||
PREPF(getDoor);
|
||||
PREPF(getDoorAnimations);
|
||||
PREPF(getDown);
|
||||
PREPF(getSelectedButton);
|
||||
PREPF(hideMenu);
|
||||
PREPF(hideMouseHint);
|
||||
PREPF(initialiseInteraction);
|
||||
PREPF(isInRange);
|
||||
PREPF(joinTeam);
|
||||
PREPF(lockDoor);
|
||||
PREPF(menuKeyInput);
|
||||
PREPF(moduleInteraction);
|
||||
PREPF(moveDown);
|
||||
PREPF(onButtonDown);
|
||||
PREPF(onButtonDownSelf);
|
||||
PREPF(onButtonUp);
|
||||
PREPF(onClick);
|
||||
PREPF(onSelectMenuDblClick);
|
||||
PREPF(openDoor);
|
||||
PREPF(openMenu);
|
||||
PREPF(openMenuSelectUI);
|
||||
PREPF(openMenuSelf);
|
||||
PREPF(openSelectMenu);
|
||||
PREPF(openSubMenu);
|
||||
PREPF(openSubMenuSelf);
|
||||
PREPF(prepareSelectMenu);
|
||||
PREPF(push);
|
||||
PREPF(removeInteraction);
|
||||
PREPF(removeInteractionSelf);
|
||||
PREPF(removeTag);
|
||||
PREPF(sendAway);
|
||||
PREPF(showMenu);
|
||||
PREPF(showMouseHint);
|
||||
PREPF(sortOptionsByPriority);
|
||||
PREPF(tapShoulder);
|
||||
PREPF(updateTooltipPosition);
|
@ -1,5 +1,7 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class AGM_Interaction {
|
||||
class ADDON {
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = 0.60;
|
||||
@ -12,6 +14,9 @@ class CfgPatches {
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
|
||||
/*
|
||||
class CfgFunctions {
|
||||
class AGM_Interaction {
|
||||
class AGM_Interaction {
|
||||
@ -69,28 +74,7 @@ class CfgFunctions {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class AGM_Interaction {
|
||||
clientInit = "call compile preprocessFileLineNumbers '\AGM_Interaction\clientInit.sqf'";
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_GetIn_EventHandlers {
|
||||
class All {
|
||||
class AGM_AutoCloseMenu {
|
||||
clientGetIn = "if (_this select 2 == AGM_player && {!isNull (findDisplay 1713999)}) then {(findDisplay 1713999) closeDisplay 1}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_GetOut_EventHandlers {
|
||||
class All {
|
||||
class AGM_AutoCloseMenu {
|
||||
clientGetOut = "if (_this select 2 == AGM_player && {!isNull (findDisplay 1713999)}) then {(findDisplay 1713999) closeDisplay 1}";
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
class AGM_Core_Default_Keys {
|
||||
class openInteractionMenuNew {
|
||||
|
12
addons/interaction/script_component.hpp
Normal file
12
addons/interaction/script_component.hpp
Normal file
@ -0,0 +1,12 @@
|
||||
#define COMPONENT interaction
|
||||
#include "\z\ace\Addons\main\script_mod.hpp"
|
||||
|
||||
#ifdef DEBUG_ENABLED_INTERACTION
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_SETTINGS_INTERACTION
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_INTERACTION
|
||||
#endif
|
||||
|
||||
#include "\z\ace\Addons\main\script_macros.hpp"
|
Loading…
Reference in New Issue
Block a user