forge/arma/client/addons/cad/XEH_postInitClient.sqf
Jacob Schmidt 0e9d0d3dc4 Refactor CAD sidepanel to hydrate board data
- Replace task-only refresh flow with hydrate/assignment/group events
- Add contracts, groups, and activity tabs to the client sidepanel
- Introduce server-side CAD store and request handlers
2026-03-29 22:17:07 -05:00

27 lines
819 B
Plaintext

#include "script_component.hpp"
if (isNil QGVAR(CADRepository)) then { call FUNC(initRepository); };
if (isNil QGVAR(CADUIBridge)) then { call FUNC(initUIBridge); };
[QGVAR(openCAD), {
call FUNC(openUI);
}] call CFUNC(addEventHandler);
[QGVAR(responseHydrateCad), {
params [["_payload", createHashMap, [createHashMap]]];
GVAR(CADUIBridge) call ["handleHydrateResponse", [_payload]];
}] call CFUNC(addEventHandler);
[QGVAR(responseCadAssignment), {
params [["_result", createHashMap, [createHashMap]]];
GVAR(CADUIBridge) call ["handleAssignmentResponse", [_result]];
}] call CFUNC(addEventHandler);
[QGVAR(responseCadGroupUpdate), {
params [["_result", createHashMap, [createHashMap]]];
GVAR(CADUIBridge) call ["handleGroupUpdateResponse", [_result]];
}] call CFUNC(addEventHandler);