forge/arma/client/addons/org/functions/fnc_openUI.sqf
2025-11-26 18:33:09 -06:00

32 lines
645 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: IDSolutions
* Opens the player interaction interface.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call forge_client_org_fnc_openUI;
*
* Public: No
*/
private _display = (findDisplay 46) createDisplay "RscOrg";
private _ctrl = (_display displayCtrl 1003);
_ctrl ctrlAddEventHandler ["JSDialog", {
params ["_control", "_isConfirmDialog", "_message"];
[_control, _isConfirmDialog, _message] call FUNC(handleUIEvents);
}];
_ctrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\index.html)];
// _ctrl ctrlWebBrowserAction ["OpenDevConsole"];
true;