- add the imported server task addon to the current framework with task ownership, task catalog, mission-manager attack generation, org-owned reward routing, participant notifications, and reputation syncing - restructure org persistence so core org data, assets, fleet, and members are handled through the current Redis/extension model with matching Rust repository and service updates - wire the client CAD addon into the framework, actor device action, shared web UI bridge pattern, and task listing/acceptance flow - add a source-driven CAD web UI layout with ui.config.mjs and extend the shared web UI builder to support custom HTML template pages for multi-surface UIs
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* File: fnc_openUI.sqf
|
|
* Author: IDSolutions
|
|
* Date: 2026-03-28
|
|
* Public: No
|
|
*
|
|
* Description:
|
|
* Opens the CAD map interface.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* UI opened [BOOL]
|
|
*
|
|
* Example:
|
|
* call forge_client_cad_fnc_openUI
|
|
*/
|
|
|
|
private _display = createDialog ["RscMapUI", true];
|
|
if (isNull _display) exitWith {
|
|
diag_log "[FORGE:Client:CAD] ERROR: Failed to create CAD dialog.";
|
|
false
|
|
};
|
|
|
|
private _topBarCtrl = _display displayCtrl 1002;
|
|
private _bottomBarCtrl = _display displayCtrl 1003;
|
|
private _sidePanelCtrl = _display displayCtrl 1005;
|
|
|
|
{
|
|
_x ctrlAddEventHandler ["JSDialog", {
|
|
params ["_control", "_isConfirmDialog", "_message"];
|
|
[_control, _isConfirmDialog, _message] call FUNC(handleUIEvents);
|
|
}];
|
|
} forEach [_topBarCtrl, _bottomBarCtrl, _sidePanelCtrl];
|
|
|
|
_topBarCtrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\topbar.html)];
|
|
_bottomBarCtrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\bottombar.html)];
|
|
_sidePanelCtrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\sidepanel.html)];
|
|
|
|
if !(isNil QGVAR(CADRepository)) then {
|
|
GVAR(CADRepository) call ["setOpen", [true]];
|
|
};
|
|
|
|
true
|