forge/arma/client/addons/cad/ui/src/topbar.html
Jacob Schmidt 45a4f7460a Integrate task contracts and CAD UI pipeline
- add the imported server task addon to the current framework with task ownership, task catalog, mission-manager attack generation, org-owned reward routing, participant notifications, and reputation syncing
- restructure org persistence so core org data, assets, fleet, and members are handled through the current Redis/extension model with matching Rust repository and service updates
- wire the client CAD addon into the framework, actor device action, shared web UI bridge pattern, and task listing/acceptance flow
- add a source-driven CAD web UI layout with ui.config.mjs and extend the shared web UI builder to support custom HTML template pages for multi-surface UIs
2026-03-28 02:20:34 -05:00

64 lines
2.3 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<div class="logo">FORGE OS</div>
<div class="controls">
<button id="btnZoomIn" class="btn">+</button>
<button id="btnZoomOut" class="btn">-</button>
<input
type="text"
id="searchBox"
placeholder="Search location..."
class="search-input"
/>
<button id="btnClose" class="btn btn-close">X</button>
</div>
<div class="info">
<span id="coordsDisplay">X: 0000 Y: 0000</span>
<span id="scaleDisplay">Scale: 1:1000</span>
</div>
<script>
window.MapLoader = {
loadCSS(path) {
return A3API.RequestFile(path).then((css) => {
const style = document.createElement("style");
style.textContent = css;
document.head.appendChild(style);
});
},
loadJS(path) {
return A3API.RequestFile(path).then((js) => {
eval(js);
});
},
loadAll(resources) {
return resources.reduce((promise, resource) => {
return promise.then(() => {
if (resource.endsWith(".css")) {
return this.loadCSS(resource);
}
if (resource.endsWith(".js")) {
return this.loadJS(resource);
}
return Promise.resolve();
});
}, Promise.resolve());
},
};
MapLoader.loadAll([
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-common.css",
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-topbar.css",
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-shared.js",
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-topbar.js",
]).catch((err) => console.error("[TOPBAR] Load error:", err));
</script>
</body>
</html>