- Revised README.md for the Forge Client Example Addon to clarify its purpose as a template. - Enhanced MODULE_REFERENCE.md to categorize guides into Server and Extension guides and Client guides. - Created detailed usage guides for various client addons including Actor, Bank, CAD, Garage, Locker, Notifications, Organization, Phone, and Store. - Added a Client Common Usage Guide to outline shared browser UI bridge patterns. - Introduced a Client Main Usage Guide to define the foundational elements for client addons. - Established authoritative state notes and usage rules across new guides to ensure clarity on server ownership and client responsibilities.
856 B
856 B
Forge Client Notifications
Overview
The notifications addon owns the client notification HUD, notification sound, and local notification service used by other Forge client and server modules.
Dependencies
forge_client_main
Main Components
fnc_initService.sqfmanages queued and visible notifications.fnc_openUI.sqfopens the notification HUD display.fnc_handleUIEvents.sqfhandles browser/HUD events.CfgSounds.hppdefines the notification sound.
Event Surface
forge_client_notifications_recieveNotification accepts:
[_type, _title, _content, _duration]
The event plays the configured sound and adds the notification to the HUD.
Runtime Notes
The HUD opens after the virtual arsenal repository is loaded. Other addons should use this notification event instead of creating their own transient UI.