ACE3/addons/gunbag/CfgEventHandlers.hpp
mjc4wilton 2220822d30
Gunbag - Add BI Arsenal Compatibility (#7887)
* Initial Commit

* Remove development components

* Adapt to ACE_player & resolve returned assignment

* Update addons/gunbag/functions/fnc_BIArsenalClose.sqf

Co-authored-by: commy2 <commy-2@gmx.de>

Co-authored-by: commy2 <commy-2@gmx.de>
2020-10-29 10:12:51 -05:00

29 lines
754 B
C++

class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
//EH must be loaded this way to get ace_gunbag_gunbagWeapon before it is deleted upon opening the BI arsenal. May cause instability with other mods.
class RscPicture;
class RscDisplayArsenal {
class Controls {
class IconBackgroundPrimaryWeapon: RscPicture {
onLoad = QUOTE([ACE_player] call FUNC(BIArsenalOpen));
};
};
};
class Extended_DisplayUnload_EventHandlers {
class RscDisplayArsenal {
ADDON = QUOTE([ACE_player] call FUNC(BIArsenalClose));
};
};