forge/arma/client/addons/org/functions/fnc_openUI.sqf

32 lines
630 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 = createDialog ["RscOrg", true];
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;