游戏设置
调整服务端频道与活动;改动实时生效,无需重启。
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') => {