#include "..\script_component.hpp" /* * Author: IDSolutions * Handles UI events. * * Arguments: * None * * Return Value: * None * * Example: * [] call forge_client_notifications_fnc_handleUIEvents; * * Public: No */ params ["_control", "_isConfirmDialog", "_message"]; private _alert = fromJSON _message; private _event = _alert get "event"; private _data = _alert get "data"; diag_log format ["[FORGE:Client:Notifications] Handling UI event: %1 with data: %2", _event, _data]; switch (_event) do { case "notifications::ready": { GVAR(NotificationClass) call ["init", []]; }; default { hint format ["[FORGE:Client:Notifications] Unhandled event: %1", _event]; }; }; true;