Redesign in-game menu with tabbed canvas UI and add logistics routes, secondary detonation, and RM48U tracking
build / mod (push) Failing after 15s

This commit is contained in:
2026-12-04 14:16:21 +03:00
parent 76ef94b537
commit 48ec72d3d2
18 changed files with 2461 additions and 924 deletions
+14 -1
View File
@@ -69,7 +69,7 @@ async function api(path, {method = "GET", data} = {}) {
}
}
const groups = [["units", "unit"], ["objects", "object"], ["contacts", "contact"], ["interceptors", "interceptor"], ["sites", "site"]];
const groups = [["units", "unit"], ["objects", "object"], ["contacts", "contact"], ["interceptors", "interceptor"], ["sites", "site"], ["strikes", "strike"]];
const prefs = read("view", {layers: {}, views: {}, selected: null});
prefs.layers ||= {};
prefs.views ||= {};
@@ -289,6 +289,19 @@ function showObject(opened, frame) {
nodes.push(strikeBtn);
}
}
if (kind === "strike") {
if (row.eta != null) nodes.push(paragraph(`Подлёт · ~${row.eta} с (${row.progress ?? 0}%)`));
if (row.aimX != null && row.aimZ != null) nodes.push(paragraph(`Цель · X ${Math.round(row.aimX)} · Z ${Math.round(row.aimZ)}`));
if (row.site != null && frame?.sites?.some(s => s.id === row.site)) {
nodes.push(button(`Пусковая №${row.site}`, () => select(`site:${row.site}`, true)));
}
if (row.carrier != null && frame?.units?.some(u => u.id === row.carrier)) {
nodes.push(button(`Носитель №${row.carrier}`, () => select(`unit:${row.carrier}`, true)));
}
}
if (kind === "unit" && row.job != null && frame?.units?.some(u => u.id === row.job)) {
nodes.push(button(`Цель маршрута · №${row.job}`, () => select(`unit:${row.job}`, true)));
}
if (row.target) nodes.push(button(`Контакт №${row.target}`, () => select(`contact:${row.target}`, true)));
if (row.source) {
const linked = frame?.units?.some(unit => unit.id === row.source);