Files
Commonwealth-Online-Public/ui/views/CommonwealthOnline/browser/app.js
T
andrew 9447bc308f Embed server browser as main menu modal
Refactors the browser UI into a reusable `CO_Browser.create()` module and adds embedded modal styling so MULTIPLAYER opens inside the main menu instead of swapping to a separate view. Updates main-menu JS/CSS to host, animate, and route input for the browser panel while keeping nav and prompts in sync. On the C++ side, PrismaUI now drives browser show/hide and event dispatch through the main menu view, and `ServerBrowserBridge::SetView()` was added so bridge events target the active host view.
2026-07-07 17:35:15 +12:00

20 lines
398 B
JavaScript

(function () {
"use strict";
var mount = document.body;
if (!window.CO_Browser) {
console.error("[CO] CO_Browser module is required before app.js");
return;
}
var browser = window.CO_Browser.create({
mount: mount,
layout: "standalone",
exposeGlobals: true,
captureKeys: true
});
browser.show();
console.log("[CO] Standalone server browser loaded");
})();