mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
replace mainDisplayLoaded event with DisplayLoad XEH and add ACE version to main menu (CBA help)
This commit is contained in:
@ -290,31 +290,6 @@ if (!hasInterface) exitWith {};
|
||||
|
||||
call FUNC(assignedItemFix);
|
||||
|
||||
GVAR(ScrollWheelFrame) = diag_frameno;
|
||||
|
||||
["mainDisplayLoaded", {
|
||||
[{
|
||||
call FUNC(handleScrollWheelInit);
|
||||
call FUNC(handleModifierKeyInit);
|
||||
}, [], 0.1] call FUNC(waitAndExecute); // needs delay, otherwise doesn't work without pressing "RESTART" in editor once. Tested in 1.52RC
|
||||
}] call FUNC(addEventHandler);
|
||||
|
||||
// add PFH to execute event that fires when the main display (46) is created
|
||||
private _fnc_initMainDisplayCheck = {
|
||||
[{
|
||||
if !(isNull findDisplay 46) then {
|
||||
// Raise ACE event locally
|
||||
["mainDisplayLoaded", [findDisplay 46]] call FUNC(localEvent);
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
}, 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
};
|
||||
|
||||
call _fnc_initMainDisplayCheck;
|
||||
|
||||
// repeat this every time a savegame is loaded
|
||||
addMissionEventHandler ["Loaded", _fnc_initMainDisplayCheck];
|
||||
|
||||
// @todo remove?
|
||||
enableCamShake true;
|
||||
|
||||
|
Reference in New Issue
Block a user