Skip to main content

Client API

📄️ UI and WebView

Every custom interface in JC4MP is a web page (HTML, CSS and JavaScript) rendered by an embedded Chromium browser and drawn over the game. The WebView table creates and controls these pages from a client script: where they sit on screen, whether they are shown, whether they take the mouse and keyboard, and how messages travel between Lua and the page's JavaScript. The small UI table holds the cursor helpers that go with them. The JavaScript side of a page is documented in WebView pages (JavaScript).