HTML Texture Module Reference
Module defined in `lua/vehicle/htmlTexture.lua`. Manages HTML-based textures rendered onto vehicle surfaces, used for digital dashboards, infotainment screens, and other in-vehicle displays powered by embedded web views.
Module defined in lua/vehicle/htmlTexture.lua. Manages HTML-based textures rendered onto vehicle surfaces, used for digital dashboards, infotainment screens, and other in-vehicle displays powered by embedded web views.
See Also
- Obj: For
obj:createWebView()andobj:queueWebViewJS()methods. - Electrics: For data values displayed on HTML dashboards.
- Props: For traditional animated dashboard elements (non-HTML).
Usage Example
-- HTML textures are typically defined in JBeam and managed by the engine.
-- The obj binding provides the low-level interface:
local webViewId = obj:createWebView(512, 256) -- Create a 512x256 web texture
obj:queueWebViewJS(webViewId, "updateSpeed(" .. electrics.values.wheelspeed .. ")")GUI Streams Module Reference
Module defined in `lua/vehicle/guistreams.lua`. Manages the registration and dispatch of high-frequency data streams from the vehicle to UI apps. UI apps subscribe to specific stream categories, and this module ensures only requested data is computed and transmitted each frame.
Hydros Module Reference
Module defined in `lua/vehicle/hydros.lua`. This module simulates hydraulic actuators (hydros) and torsion hydros, primarily used for steering and complex animated parts. It also handles Force Feedbac