From c58168406b8f5e667f2fe55580e47f06633ae8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=AE=9D=E4=BB=99=E5=B0=8A?= Date: Wed, 4 Nov 2026 20:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=99=A8=EF=BC=9A=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E6=9B=B4=E6=96=B0=E5=85=A5=E5=8F=A3=E7=A7=BB=E5=88=B0?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=97=81=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 侧边栏顺序调整为 开始 → 游戏更新 → GM工具 → 一键换装 → 游戏设置 - 删除「设置」页面(侧边栏入口 + page-settings section) - shell.js 移除 loadSettings 函数及 setRefresh 事件监听 - shell.css 清理 .settings-* 相关样式(明暗主题两套) --- launcher/index.html | 17 +---------------- launcher/shell.css | 10 ---------- launcher/shell.js | 18 ++---------------- 3 files changed, 3 insertions(+), 42 deletions(-) diff --git a/launcher/index.html b/launcher/index.html index 5f86ff2..4deed66 100644 --- a/launcher/index.html +++ b/launcher/index.html @@ -26,12 +26,11 @@
@@ -109,20 +108,6 @@
-
-
-

设置

当前启动器实际绑定的服务端、数据库和游戏端。

-
-
服务端根目录
—
-
服务端控制
—
-
数据库
—
-
游戏客户端
—
-
服务端状态
—
-
Native API
—
-
-
-
-

游戏设置

调整服务端频道与活动;改动实时生效,无需重启。

diff --git a/launcher/shell.css b/launcher/shell.css index bfed91f..8ac4980 100644 --- a/launcher/shell.css +++ b/launcher/shell.css @@ -38,10 +38,6 @@ button,input,select{font:inherit} padding:0 18px;border-bottom:1px solid #14291f;color:var(--muted);font-size:12px; cursor:move;user-select:none} .shell-topbar button,.shell-topbar select,.shell-topbar input{cursor:pointer} -.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:10px;margin-top:14px} -.settings-card{border:1px solid #1d3a2d;background:#0b1712;padding:12px 14px;border-radius:4px} -.settings-label{font-size:11px;color:#83a393;margin-bottom:5px} -.settings-value{font:11px/1.6 Consolas,"Microsoft YaHei",monospace;color:#d5e8de;word-break:break-all} .shell-top-actions{display:flex;gap:8px;align-items:center} .shell-top-actions select{background:#0c1b16;border:1px solid #25483a;color:#bfe4d2;padding:4px 8px;border-radius:2px} .tb-btn{width:28px;height:24px;border:1px solid #25483a;background:#0c1b16;color:#a8c7b6;cursor:pointer} @@ -261,8 +257,6 @@ button,input,select{font:inherit} .shell-statusbar{background:#08080f;border-top-color:rgba(255,255,255,.08);color:#7d8198} .shell-statusbar b{color:#b8bcd0} #page-gm #gmView{background:#0b0b14} -.settings-card{background:rgba(20,20,36,.55);border-color:rgba(255,255,255,.09);border-radius:10px} -.settings-label{color:#8d91a8}.settings-value{color:#e2e4f2} /* ================= 字号整体 +2,间距放宽 ================= */ body{font-size:16px} @@ -328,10 +322,6 @@ body{font-size:16px} .lo-slot{font-size:13px;padding:9px} .lo-slot b{font-size:13px} .shell-statusbar{height:34px;font-size:13px;gap:22px;padding:0 18px} -.settings-grid{gap:14px;margin-top:18px} -.settings-card{padding:16px 18px} -.settings-label{font-size:13px} -.settings-value{font-size:13px;line-height:1.7} @media (max-width:1100px){ .stat-grid{grid-template-columns:repeat(2,1fr)} .hero-actions{flex-wrap:wrap;gap:10px} diff --git a/launcher/shell.js b/launcher/shell.js index ed46fc9..61c87dc 100644 --- a/launcher/shell.js +++ b/launcher/shell.js @@ -1,13 +1,13 @@ /* 90轮回启动器 · 单窗口页面与工具整合 */ (function () { const $ = (id) => document.getElementById(id); - const pages = ['start','gm','loadout','gamesettings','settings','changelog']; + const pages = ['start','changelog','gm','loadout','gamesettings']; let shellGmInit = false; let loConfig = null, loPage = 0, loScheme = -1; let loCooldownUntil = 0, loCooldownCharacter = '', loCooldownTimer = null; let hotkeyCapture = false; - const crumb = {start:'开始 / 本地服务端',gm:'GM工具',loadout:'工具 / 一键换装',gamesettings:'工具 / 游戏设置',settings:'设置',changelog:'更新日志'}; + const crumb = {start:'开始 / 本地服务端',changelog:'游戏更新',gm:'GM工具',loadout:'工具 / 一键换装',gamesettings:'工具 / 游戏设置'}; function shellGo(page) { if (!pages.includes(page)) page = 'start'; @@ -17,7 +17,6 @@ if (page === 'start') loadStart(); if (page === 'loadout') loadLoadout(); if (page === 'gamesettings') loadGameSettings(); - if (page === 'settings') loadSettings(); if (page === 'changelog') loadChangelog(); if (page === 'gm') { // 进入 GM:GM 覆盖整个窗口(隐藏顶部导航/面包屑/底部状态栏),并铺满工作区 @@ -476,19 +475,6 @@ saveLoadout(); }); - async function loadSettings() { - try { - const s = await api('/api/status'); - $('setServerRoot').textContent = s.server_root || '未绑定'; - $('setControl').textContent = s.control_exists ? '已找到 DNF90Control.exe' : '缺失'; - $('setDb').textContent = s.db || '未找到'; - $('setClient').textContent = s.client_dir || '未找到'; - $('setRun').textContent = s.server_running ? '运行中' : '未运行'; - $('setNative').textContent = s.native_available ? '可用' : '不可用'; - } catch (e) { /* ignore */ } - } - $('setRefresh').addEventListener('click', loadSettings); - // ==================== 游戏设置(频道开关 / 活动开关) ==================== let gsCurrentTab = 'channels'; const gsToast = (msg, type = 'info') => {