- route new `store::category::request` bridge events from UI to SQF and hydrate category items from game configs - cache and format generated catalog entries (types, descriptions, prices, images) in the store bridge/class - update storefront UI with category loading states, image media support, and next/previous catalog pagination
36 lines
720 B
Plaintext
36 lines
720 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* File: fnc_openUI.sqf
|
|
* Author: IDSolutions
|
|
* Date: 2026-01-28
|
|
* Last Update: 2026-03-11
|
|
* Public: No
|
|
*
|
|
* Description:
|
|
* Opens the store interface.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* UI opened [BOOL]
|
|
*
|
|
* Example:
|
|
* call forge_client_store_fnc_openUI;
|
|
*/
|
|
|
|
private _display = createDialog ["RscStore", true];
|
|
private _ctrl = _display displayCtrl 1004;
|
|
|
|
_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;
|