-
Notifications
You must be signed in to change notification settings - Fork 149
Display Handlers
commy2 edited this page May 17, 2016
·
1 revision
Display Handlers are normal user interface event handlers added to the "RscDisplayMission" display (or commonly known as findDisplay 46
). This framework handles all quirks adding for example "keyDown" events has in savegames, restarted games and removes the necessity of waitUntil {!isNull findDisplay 46}
loops (and worse).
Dislay Handlers are added via CBA_fnc_addDisplayHandler
and removed via CBA_fnc_removeDisplayHandler
by ID.
A full list of all available events can be found here. Remember to remove the "on" tag.
["MouseMoving", { systemChat str _this; }] call CBA_fnc_addDisplayHandler;